Skip to content

Instantly share code, notes, and snippets.

@nathanielbd
Created June 8, 2020 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanielbd/1f0dcd92ca8e17de9d25703072212d87 to your computer and use it in GitHub Desktop.
Save nathanielbd/1f0dcd92ca8e17de9d25703072212d87 to your computer and use it in GitHub Desktop.
Script for trolling on typeracer.com
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