Skip to content

Instantly share code, notes, and snippets.

@NabiKAZ
Last active June 21, 2024 01:47
Show Gist options
  • Save NabiKAZ/10ab0c25c0703d5d3f5b9b4acd500c66 to your computer and use it in GitHub Desktop.
Save NabiKAZ/10ab0c25c0703d5d3f5b9b4acd500c66 to your computer and use it in GitHub Desktop.
Running Hamster Telegram game on computer
// Programmer: @NabiKAZ (https://twitter.com/NabiKAZ) and Thanks for Erfan (https://github.com/ErfanBahramali)
// To run Hamster Telegram game on computer. Enter Telegram from this link https://web.telegram.org/k/
// Then open the game. When the "Play on your mobile" error appeared. Copy and paste this code in
// your browser console. Both the game is run in the opened window and the address written in the console
// can be run in a separate and full-screen browser.
// Caution: You are responsible for possible risks such as banning.
// The game link: https://t.me/Hamster_kombat_bot/start?startapp=kentId101554083
console.log("Use this address in your browser:", document.getElementsByTagName('iframe')[0].src = document.getElementsByTagName('iframe')[0].src.replace(/(tgWebAppPlatform=)[^&]+/, "$1android"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment