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; |
This won't help to win the race.You should not type (or copy & paste) whole text at a time. Instead, do like this whenever you press any key it will type the correct character.
Cool
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Avoid leaving comments in Hindi 😛 Your profile might get visitors from across the globe. Although, they won't be checking the typeracer hack but still develop good habits while commenting code and also avoid such instructions as code comments