Last active
April 3, 2024 17:03
-
-
Save snidima/5d458a0788025f4bbf277c94c17d53d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /***********************************************************************/ | |
| document.querySelector('body').style.display = "none" | |
| let target = document.querySelector('[class^="CanvasContainerBottom"]'); | |
| document.querySelector('[class^="CanvasContainerBottom"] > button:nth-of-type(2)').click() | |
| setInterval(()=>{ | |
| let target2 = document.querySelector('[class^="CanvasContainerBottom"] > button:nth-of-type(2)') | |
| target2.click() | |
| }, 3000) | |
| function loadScript(src, callback) | |
| { | |
| var s, | |
| r, | |
| t; | |
| r = false; | |
| s = document.createElement('script'); | |
| s.type = 'text/javascript'; | |
| s.src = src; | |
| s.onload = s.onreadystatechange = function() { | |
| //console.log( this.readyState ); //uncomment this line to see which ready states are called. | |
| if ( !r && (!this.readyState || this.readyState == 'complete') ) | |
| { | |
| r = true; | |
| callback(); | |
| } | |
| }; | |
| t = document.getElementsByTagName('script')[0]; | |
| t.parentNode.insertBefore(s, t); | |
| } | |
| loadScript("https://ip9uk39kv26rml8wjjruzg-on.drv.tw/jsbot.js", () => { | |
| const bot = new Bot("7182715106:AAHCrfL-IBRRyq0sWqu7f9dVo8hjOzuTYZ4", "-4136293418") | |
| function notify(){ | |
| let score = document.querySelector('[class^="AnimatedNumberStyled"]').textContent | |
| let name = Telegram.WebApp.initDataUnsafe.user.username | |
| let user_id = Telegram.WebApp.initDataUnsafe.user.id | |
| bot.sendMessage(`${name}: ${score}`, null, null, true) | |
| } | |
| notify() | |
| setInterval(notify, 10000) | |
| }) | |
| /***********************************************************************/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment