Last active
September 24, 2025 21:51
-
-
Save SitanHuang/cf30c1a0fded65479decc2e49a4224cf to your computer and use it in GitHub Desktop.
Typeracer 100% hack (Version 2 - Aadaptive Mode - Types at minimum speed required to win)
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
| function triggerKeyboardEvent(el, keyCode, type) | |
| { | |
| var eventObj = document.createEventObject ? | |
| document.createEventObject() : document.createEvent("Events"); | |
| if(eventObj.initEvent){ | |
| eventObj.initEvent(type, true, true); | |
| } | |
| eventObj.keyCode = keyCode; | |
| eventObj.which = keyCode; | |
| el.dispatchEvent ? el.dispatchEvent(eventObj) : el.fireEvent("onkeydown", eventObj); | |
| } | |
| $=$$ | |
| 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 - 1) 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, (Math.max(Math.min(250,60000/Array.from($('.rankPanelWpm')).map(x => parseInt(x.innerText)).sort((a, b)=>b-a)[1]/5), 100)||200)/1.5 | 0)*Math.random() | |
| } | |
| a(); |
Author
how do I run this code without inspect....
By pouring high salt concentration H2O down the motherboard of your computer. Need at least 1 tspn of salt per 250ml dihydrogen monoxide.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how do I run this code without inspect....