+ var tText,tWords,cWord,tField,url=window.location.href.split("/")[2],site=-1,altMode=0;switch("10fastfingers.com"==url||"www.10fastfingers.com"==url?(console.log("~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: 10FastFingers\n~~~~~~~~~~~~~~~~~~~"),site=0,"text"==window.location.href.split("/")[3]&&(altMode=1)):"play.typeracer.com"==url||"typeracer.com"==url?(console.log("~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypeRacer\n~~~~~~~~~~~~~~~~~~~"),site=1):"typingtestnow.com"==url||"www.typingtestnow.com"==url?(console.log("~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypingTestNow\n~~~~~~~~~~~~~~~~~~~"),site=2):"www.bing.com"!=url&&"bing.com"!=url||(console.log("~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: Bing Test\n~~~~~~~~~~~~~~~~~~~"),site=3),site){case 0:tText=document.getElementById("row1"),tWords=[];for(var i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);tField=null,(cWord=0)==altMode?tField=document.getElementById("inputfield"):1==altMode&&(tField=document.getElementById("text_typed")),tField.addEventListener("keyup",function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 1:tText=document.querySelector("#gwt-uid-15 > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(1) > td > table > tbody > tr:nth-child(1) > td"),tWords=tText.innerText.split(" "),cWord=0,(tField=document.querySelector("#gwt-uid-15 > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(2) > td > input")).addEventListener("keydown",function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 2:tText=document.getElementsByClassName("sample-text")[0],tWords=[];for(i=0;i<tText.children.length;i++)for(var j=0;j<tText.children[i].children.length;j++)words.push(tText.children[i].children[j].innerText);cWord=0,(tField=document.getElementById("practice-input")).addEventListener("keydown",function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 3:tText=document.getElementById("edu_promptText"),tWords=[];var workWord="";for(i=0;i<tText.children.length;i++)for(j=0;j<tText.children[i].children.length;j++)"space"==tText.children[i].children[j].className?(tWords.push(workWord),workWord=""):workWord+=tText.children[i].children[j].innerText;cWord=0,(tField=document.getElementById("edu_inputText")).addEventListener("keydown",function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)})}">TypeCheat</a>
0 commit comments