-
-
Save thegamerx1/22e6d6ceb4c2d8001fbaee792062ea6a to your computer and use it in GitHub Desktop.
Typeracer 100% hack
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
function sleep(ms) {return new Promise(resolve => setTimeout(resolve, ms));} | |
function triggerKeyboardEvent(e,t,n){var c=document.createEventObject?document.createEventObject():document.createEvent("Events");c.initEvent&&c.initEvent(n,!0,!0),c.keyCode=t,c.which=t,e.dispatchEvent?e.dispatchEvent(c):e.fireEvent("onkeydown",c)} | |
$=$$ | |
content = $('table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(1) > td > table > tbody > tr:nth-child(1) > td > div > div')[3].textContent.split(''); | |
i = 0; | |
function a() { | |
if (i == content.length) return; | |
input = $('table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(2) > td > input')[0] | |
input.focus() | |
input.value += content[i++]; | |
triggerKeyboardEvent(input, input.value.charCodeAt(0), "keydown") | |
input.click() | |
triggerKeyboardEvent(input, input.value.charCodeAt(0), "keypress") | |
triggerKeyboardEvent(input, input.value.charCodeAt(0), "keyup") | |
setTimeout(a, 50 * Math.random()) | |
} | |
function checkFlag() { | |
checkfor = $('div.popupContent > table > tbody > tr > td > table > tbody > tr > td > div.timeDisplay > span.time')[0].textContent | |
checkfor = checkfor.replace(/([:])/g, "") | |
if (checkfor == 0) { | |
setTimeout(a, 550) | |
} else { | |
console.log(checkfor) | |
window.setTimeout(checkFlag, 250) | |
} | |
} | |
checkFlag() |
Author
thegamerx1
commented
Aug 23, 2019
how do i download it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment