Created
February 29, 2012 01:32
-
-
Save feross/1936829 to your computer and use it in GitHub Desktop.
typeracer.com cheat js
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
// Feross Aboukhadijeh - Apr 12 2010 | |
// | |
// Script I hacked together to cheat on TypeRacer.com. You use it by waiting for the typing game | |
// to start. Once it starts, open up Firebug, paste in this code, and run it. Now, just press | |
// space to auto-type each word. I made the user push space, as opposed to advancing the words | |
// automatically because I believe the site looks for a keypress event before evaluating the contents | |
// of the input box. I could not figure out how to fake a user keypress event. Perhaps this is | |
// disallowed for browser security reasons? | |
// | |
// Next todo: Site detects the unbelievable WPM and asks you to do a captcha test. | |
wordNumber = 0; | |
function PrintNextWord() { | |
word = answerArr[wordNumber]; | |
inputs[0].value = word; | |
wordNumber++; | |
} | |
// setup - run once | |
document.onkeypress = PrintNextWord; | |
firstWord = null; | |
for (i=0; i<99; ++i) { | |
firstWord = document.getElementById("nhwMiddlegwt-uid-" + i); | |
if (firstWord != null) { | |
break; | |
} | |
} | |
answer = null; | |
for (i=0; i<99; ++i) { | |
answer = document.getElementById("nhwRightgwt-uid-" + i); | |
if (answer != null) { | |
break; | |
} | |
} | |
answer = firstWord.innerHTML + answer.innerHTML; | |
// alert(answer); | |
answerArr = answer.split(" "); | |
inputs = document.getElementsByTagName("input"); | |
PrintNextWord(); |
Virus shit 🗡️ men i detected virus on .JD file...
hey
just get good dumb asses bitch im fast
FAST
how to use?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Funny, I made one as well: https://github.com/ScratchMan544/typeracer-hack/blob/master/bookmarklet.js