This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
typecheat-bookmark.html
28 lines (25 loc) · 5.35 KB
/
typecheat-bookmark.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<!--
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/>.
-->
<html>
<head>
<title>TypeCheat Bookmark</title>
<meta charset="utf-8">
</head>
<body style="font-family: Roboto, Arial, sans-serif;">
<h1>Drag the bookmark below into your bookmarks bar</h1>
<a style="color: black; text-decoration: none; padding: 20px; background-color: lightgray; text-align: center; border-radius: 25px;" href="javascript:let 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(let e=0;e<tText.children.length;e++)tWords.push(tText.children[e].innerText);cWord=0,tField=null,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('.inputPanel').firstChild.firstChild.firstChild.firstChild.firstChild.firstChild,tWords=tText.innerText.split(' '),cWord=0,(tField=document.querySelector('.txtInput')).addEventListener('keydown',function(e){32==e.keyCode&&(tField.value=tWords[cWord],cWord++)});break;case 2:tText=document.getElementsByClassName('sample-text')[0],tWords=[];for(let e=0;e<tText.children.length;e++)for(let t=0;t<tText.children[e].children.length;t++)tWords.push(tText.children[e].children[t].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(let e=0;e<tText.children.length;e++)for(let t=0;t<tText.children[e].children.length;t++)'space'==tText.children[e].children[t].className?(tWords.push(workWord),workWord=''):workWord+=tText.children[e].children[t].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('tst-input-wrapper')[1],tWords=[];for(let e=0;e<tText.children.length;e++)tWords.push(tText.children[e].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(let e=0;e<tText.children.length;e++){workWord='';for(let t=0;t<tText.children[e].children.length;t++)workWord+=tText.children[e].children[t].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(let e=0;e<tText.children.length;e++)tWords.push(tText.children[e].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(let e=0;e<tText.children.length;e++)tWords.push(tText.children[e].innerText);cWord=0,(tField=document.getElementById('blockrandom').contentDocument.getElementById('toType')).addEventListener('keyup',function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)})}">TypeCheat</a>
</body>
</html>