Created
October 17, 2016 06:36
-
-
Save lccxx/533efc32e1e36b7862088f1ed9a4cadd to your computer and use it in GitHub Desktop.
Telegram bot "Math Battle" cheat script
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
window.setInterval(function() { var vx = document.getElementById("task_x").innerText, op = { "+": "+", "–": "-", "×": "*", "/": "/" }[document.getElementById("task_op").innerText], vy = document.getElementById("task_y").innerText, res = document.getElementById("task_res").innerText, r_btn = document.getElementById("button_correct"), w_btn = document.getElementById("button_wrong"); console.log(vx, op, vy, res, r_btn, w_btn); if (eval(vx + op + vy) == res * 1) r_btn.click(); else w_btn.click() }, 500) |
Can i still play Math battle on a browser ? Share the URL
How can you do this on an iPhone or and iPad ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi
you can put this code in your browser consol (Inspect Element)