Last active
September 18, 2024 08:43
-
-
Save NabiKAZ/10ab0c25c0703d5d3f5b9b4acd500c66 to your computer and use it in GitHub Desktop.
Running Hamster Telegram game on computer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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
اسکریپت برای من رو فایرفاکس کار نکرد ولی ازش ایده گرفتم یکی دیگه نوشتم. مرسی.
https://gist.github.com/the-pesar/e38af534814b3dd46b9144f7806339ff