Created
June 8, 2020 23:25
-
-
Save nathanielbd/1f0dcd92ca8e17de9d25703072212d87 to your computer and use it in GitHub Desktop.
Script for trolling on typeracer.com
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
var unselectables = document.querySelectorAll("[unselectable='on']"); | |
var text; | |
for (var i = 0; i < unselectables.length; i++) { | |
text += unselectables[i].textContent; | |
} | |
text = text.replace("undefined", ""); | |
var j = 0; | |
document.querySelector(".txtInput").addEventListener("mousemove", function() { | |
document.querySelector(".txtInput").value += text[j]; | |
j++; | |
}); | |
// moving the mouse along the input bar will now type the passage | |
// if you type >100 wpm, the site makes you do another test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment