Skip to content

Instantly share code, notes, and snippets.

@NabiKAZ
Last active September 18, 2024 08:43
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"));
@NabiKAZ
Copy link
Author

NabiKAZ commented Aug 18, 2024

خیلی ممنون توی افزونه اضافه کردم https://github.com/maanimis/TelegramMiniAppTools
👍

@the-pesar
Copy link

اسکریپت برای من رو فایرفاکس کار نکرد ولی ازش ایده گرفتم یکی دیگه نوشتم. مرسی.
https://gist.github.com/the-pesar/e38af534814b3dd46b9144f7806339ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment