Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Commit d783085

Browse files
Fixed weird comments in typecheat-button.js and updated livechat.com's domain.
1 parent 95a2f39 commit d783085

File tree

5 files changed

+9
-26
lines changed

5 files changed

+9
-26
lines changed

typecheat-bookmark.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
</head>
2424
<body style="font-family: Roboto, Arial, sans-serif;">
2525
<h1>Drag the bookmark below into your bookmarks bar</h1>
26-
<a style="color: black; text-decoration: none; padding: 20px; background-color: lightgray; text-align: center; border-radius: 25px;" href="javascript:/* TypeCheat - A JS script to cheat on certain online typing tests Copyright (C) 2020 hackermancool This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ var tText,tWords,cWord,tField,workWord,url=window.location.href.split(&quot;/&quot;)[2].replace(&quot;www.&quot;,&quot;&quot;),site=-1,altMode=0;switch(url){case&quot;10fastfingers.com&quot;:console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: 10FastFingers\n~~~~~~~~~~~~~~~~~~~&quot;),site=0,&quot;text&quot;==window.location.href.split(&quot;/&quot;)[3]&&(altMode=1);break;case&quot;typeracer.com&quot;:case&quot;play.typeracer.com&quot;:console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypeRacer\n~~~~~~~~~~~~~~~~~~~&quot;),site=1;break;case&quot;typingtestnow.com&quot;:console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypingTestNow\n~~~~~~~~~~~~~~~~~~~&quot;),site=2;break;case&quot;bing.com&quot;:console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: Bing Test\n~~~~~~~~~~~~~~~~~~~&quot;),site=3;break;case&quot;livechatinc.com&quot;:console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: LiveChat Inc\n~~~~~~~~~~~~~~~~~~~&quot;),site=4;break;case&quot;quicktypingtest.com&quot;:console.log(&quot; ~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: QuickTypingTest\n ~~~~~~~~~~~~~~~~~~~&quot;),site=5;break;case&quot;typing-speed-test.aoeu.eu&quot;:console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: AOEU Test\n~~~~~~~~~~~~~~~~~~~&quot;),site=6;break;case&quot;indiatyping.com&quot;:console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: India Typing\n~~~~~~~~~~~~~~~~~~~&quot;),site=7}switch(site){case 0:tText=document.getElementById(&quot;row1&quot;),tWords=[];for(var i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);tField=null,(cWord=0)==altMode?tField=document.getElementById(&quot;inputfield&quot;):1==altMode&&(tField=document.getElementById(&quot;text_typed&quot;)),tField.addEventListener(&quot;keyup&quot;,function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 1:tText=document.querySelector(&quot;#gwt-uid-15 > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(1) > td > table > tbody > tr:nth-child(1) > td&quot;),tWords=tText.innerText.split(&quot; &quot;),cWord=0,(tField=document.querySelector(&quot;#gwt-uid-15 > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(2) > td > input&quot;)).addEventListener(&quot;keydown&quot;,function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 2:tText=document.getElementsByClassName(&quot;sample-text&quot;)[0],tWords=[];for(i=0;i<tText.children.length;i++)for(var j=0;j<tText.children[i].children.length;j++)tWords.push(tText.children[i].children[j].innerText);cWord=0,(tField=document.getElementById(&quot;practice-input&quot;)).addEventListener(&quot;keydown&quot;,function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 3:tText=document.getElementById(&quot;edu_promptText&quot;),tWords=[],workWord=&quot;&quot;;for(i=0;i<tText.children.length;i++)for(j=0;j<tText.children[i].children.length;j++)&quot;space&quot;==tText.children[i].children[j].className?(tWords.push(workWord),workWord=&quot;&quot;):workWord+=tText.children[i].children[j].innerText;cWord=0,(tField=document.getElementById(&quot;edu_inputText&quot;)).addEventListener(&quot;keydown&quot;,function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)});break;case 4:tText=document.getElementsByClassName(&quot;test-prompt&quot;)[0],tWords=[];for(i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);cWord=0,(tField=document.getElementById(&quot;test-input&quot;)).addEventListener(&quot;keydown&quot;,function(e){32==e.keyCode&&(tField.innerText=tWords[cWord],cWord++,tText.lastChild.innerText!=tWords.slice(-1)&&tWords.push(tText.lastChild.innerText))});break;case 5:tText=document.querySelector(&quot;#text-display&quot;),tWords=[],workWord=&quot;&quot;;for(i=0;i<tText.children.length;i++){workWord=&quot;&quot;;for(j=0;j<tText.children[i].children.length;j++)workWord+=tText.children[i].children[j].innerText;tWords.push(workWord)}cWord=0,(tField=document.getElementById(&quot;text-input&quot;)).addEventListener(&quot;keydown&quot;,function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)});break;case 6:tText=document.getElementById(&quot;words&quot;),tWords=[];for(i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);cWord=0,(tField=document.getElementById(&quot;input&quot;)).addEventListener(&quot;keyup&quot;,function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 7:tText=document.getElementById(&quot;blockrandom&quot;).contentDocument.getElementById(&quot;unicodeText&quot;),tWords=[];for(i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);cWord=0,(tField=document.getElementById(&quot;blockrandom&quot;).contentDocument.getElementById(&quot;toType&quot;)).addEventListener(&quot;keyup&quot;,function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)})}">TypeCheat</a>
26+
<a style="color: black; text-decoration: none; padding: 20px; background-color: lightgray; text-align: center; border-radius: 25px;" href="javascript:/* * TypeCheat - A JS script to cheat on certain online typing tests * Copyright (C) 2020 hackermancool * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ var tText,tWords,cWord,tField,workWord,url=window.location.href.split('/')[2].replace('www.',''),site=-1,altMode=0;switch(url){case'10fastfingers.com':console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: 10FastFingers\n~~~~~~~~~~~~~~~~~~~'),site=0,'text'==window.location.href.split('/')[3]&&(altMode=1);break;case'typeracer.com':case'play.typeracer.com':console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypeRacer\n~~~~~~~~~~~~~~~~~~~'),site=1;break;case'typingtestnow.com':console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypingTestNow\n~~~~~~~~~~~~~~~~~~~'),site=2;break;case'bing.com':console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: Bing Test\n~~~~~~~~~~~~~~~~~~~'),site=3;break;case'livechat.com':console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: LiveChat\n~~~~~~~~~~~~~~~~~~~'),site=4;break;case'quicktypingtest.com':console.log(' ~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: QuickTypingTest\n ~~~~~~~~~~~~~~~~~~~'),site=5;break;case'typing-speed-test.aoeu.eu':console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: AOEU Test\n~~~~~~~~~~~~~~~~~~~'),site=6;break;case'indiatyping.com':console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: India Typing\n~~~~~~~~~~~~~~~~~~~'),site=7}switch(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++)tWords.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=[],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++)});break;case 4:tText=document.getElementsByClassName('test-prompt')[0],tWords=[];for(i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);cWord=0,(tField=document.getElementById('test-input')).addEventListener('keydown',function(e){32==e.keyCode&&(tField.innerText=tWords[cWord],cWord++,tText.lastChild.innerText!=tWords.slice(-1)&&tWords.push(tText.lastChild.innerText))});break;case 5:tText=document.querySelector('#text-display'),tWords=[],workWord='';for(i=0;i<tText.children.length;i++){workWord='';for(j=0;j<tText.children[i].children.length;j++)workWord+=tText.children[i].children[j].innerText;tWords.push(workWord)}cWord=0,(tField=document.getElementById('text-input')).addEventListener('keydown',function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)});break;case 6:tText=document.getElementById('words'),tWords=[];for(i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);cWord=0,(tField=document.getElementById('input')).addEventListener('keyup',function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 7:tText=document.getElementById('blockrandom').contentDocument.getElementById('unicodeText'),tWords=[];for(i=0;i<tText.children.length;i++)tWords.push(tText.children[i].innerText);cWord=0,(tField=document.getElementById('blockrandom').contentDocument.getElementById('toType')).addEventListener('keyup',function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)})}">TypeCheat</a>
2727
</body>
2828
</html>

typecheat-button.js

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,6 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
*/
18-
/*
19-
* TypeCheat - A JS script to cheat on certain online typing tests
20-
* Copyright (C) 2020 Adam Thompson-Sharpe
21-
*
22-
* This program is free software: you can redistribute it and/or modify
23-
* it under the terms of the GNU General Public License as published by
24-
* the Free Software Foundation, either version 3 of the License, or
25-
* (at your option) any later version.
26-
*
27-
* This program is distributed in the hope that it will be useful,
28-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
29-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30-
* GNU General Public License for more details.
31-
*
32-
* You should have received a copy of the GNU General Public License
33-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
34-
*/
3518
// Check current site
3619
let url = window.location.href.split('/')[2].replace('www.', '');
3720
let site = -1;
@@ -55,8 +38,8 @@ switch(url) {
5538
console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: Bing Test\n~~~~~~~~~~~~~~~~~~~');
5639
site = 3;
5740
break;
58-
case 'livechatinc.com':
59-
console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: LiveChat Inc\n~~~~~~~~~~~~~~~~~~~');
41+
case 'livechat.com':
42+
console.log('~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: LiveChat\n~~~~~~~~~~~~~~~~~~~');
6043
site = 4;
6144
break;
6245
case 'quicktypingtest.com':
@@ -172,7 +155,7 @@ function bingCheat() {
172155
// Change button colour to show that it has activated
173156
document.getElementById('edu_answer').children[0].children[0].getElementsByTagName('button')[0].style = 'color: #0F0;';
174157
}
175-
// LiveChat Inc
158+
// LiveChat
176159
function liveChatCheat() {
177160
// Generate wordlist
178161
tText = document.getElementsByClassName('test-prompt')[0];

0 commit comments

Comments
 (0)