Last active
February 13, 2018 17:28
-
-
Save harshhx17/e11d38d33fe2d396c6d93bb3219a91b5 to your computer and use it in GitHub Desktop.
Type Racer Hack
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
//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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool