Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * play.typeracer.com helper thing
- *
- * Paste into browser console before game.
- * Press "Space" to start and keep pressing to insert words (or hold it down for >300 wpm).
- * Also if it screws up you have to reload the page. (sorry) (tested on safari and firefox)
- *
- * Made by Mini
- */
- document.onkeydown=b;var d,e,f=!1; function b(a){if(32===(a.keyCode?a.keyCode:a.which))if(f)d.value=e.shift(),1===e.length&&(f=!1);else{d=document.body.getElementsByClassName("txtInput")[0];e=null;a=document.body.getElementsByClassName("nonHideableWords")[0].getElementsByTagName("*");for(var c=0;c<a.length;c++)if(a[c].id.startsWith("nhwRightgwt-uid-")){e=a[c].innerHTML.split(" ");e.shift();e.unshift(document.getElementById("nhwMiddlegwt-uid-"+(a[c].id.substr(16,17)-2)).innerHTML);break}f=!0;b({keyCode:32})}};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement