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;
@akashdeepgoel
Copy link

akashdeepgoel commented Jan 31, 2018

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

@ydlamba
Copy link

ydlamba commented Feb 2, 2018

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.

@harshhx17
Copy link
Author

Cool

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