Skip to content

Instantly share code, notes, and snippets.

@harshhx17
Last active February 13, 2018 17:28
Show Gist options
  • Save harshhx17/e11d38d33fe2d396c6d93bb3219a91b5 to your computer and use it in GitHub Desktop.
Save harshhx17/e11d38d33fe2d396c6d93bb3219a91b5 to your computer and use it in GitHub Desktop.
Type Racer Hack
//hack for type racer
var harsh = document.getElementsByTagName('span');
for(var i = 0;i<15;i++)
{
var a = harsh[i].className;
var b = harsh[i+1].className;
typeof(a)
if(a === "lblUsername" && b!="lblUsername")
break;
}
var har = harsh[i+1].innerHTML + harsh[i+2].innerHTML + harsh[i+3].innerHTML;
document.getElementsByClassName('txtInput')[0].value = har;
@harshhx17
Copy link
Author

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment