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
/
Copy pathtypecheat-button.min.js
18 lines (18 loc) · 6.96 KB
/
typecheat-button.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
* 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/>.
*/
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}function tenFastCheat(){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++)}),document.getElementById("ads-speedtest-view-container").children[0].style="width: 100%; color: #0F0;"}function typeRacerCheat(){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++)}),document.getElementsByClassName("navigation")[0].children[0].style="width: 100%; color: #0F0;"}function typingTestNowCheat(){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++)}),document.getElementsByClassName("row")[0].children[0].style="width: 100%; color: #0F0;"}function bingCheat(){tText=document.getElementById("edu_promptText"),tWords=[];let e="";for(let t=0;t<tText.children.length;t++)for(let n=0;n<tText.children[t].children.length;n++)"space"==tText.children[t].children[n].className?(tWords.push(e),e=""):e+=tText.children[t].children[n].innerText;cWord=0,(tField=document.getElementById("edu_inputText")).addEventListener("keydown",function(e){32==e.keyCode&&(tField.value+=tWords[cWord],cWord++)}),document.getElementById("edu_answer").children[0].children[0].getElementsByTagName("button")[0].style="color: #0F0;"}function liveChatCheat(){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))}),document.querySelector(".u-flex.u-flex-col-rev").children[2].style="color: #0F0;"}function quickTypingCheat(){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++)}),document.getElementById("navbarResponsive").children[0].style="width: 100%; color: #0F0;"}function aoeuCheat(){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++)}),document.getElementById("score").lastChild.style="color: #0F0;"}function indiaTypingCheat(){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++)}),document.getElementsByClassName("t3-sidebar")[0].children[0].style="color: #0F0;"}switch(site){case 0:document.getElementById("ads-speedtest-view-container").innerHTML='<button style="width: 100%;" onclick="tenFastCheat();">Start TypeCheat</button>';break;case 1:document.getElementsByClassName("navigation")[0].innerHTML='<button style="width: 50%;" onclick="typeRacerCheat();">Start TypeCheat</button>'+document.getElementsByClassName("navigation")[0].innerHTML;break;case 2:document.getElementsByClassName("row")[0].innerHTML='<button style="width: 100%;" onclick="typingTestNowCheat();">Start TypeCheat</button>';break;case 3:document.getElementById("edu_answer").children[0].children[0].innerHTML+='<button onclick="bingCheat();">Start TypeCheat</button>';break;case 4:document.querySelector(".u-flex.u-flex-col-rev").innerHTML+='<button onclick="liveChatCheat();">Start TypeCheat</button>';break;case 5:document.getElementById("navbarResponsive").innerHTML='<button style="width: 100%;" onclick="quickTypingCheat();">Start TypeCheat</button>'+document.getElementById("navbarResponsive").innerHTML;break;case 6:document.getElementById("score").innerHTML+='<button onclick="aoeuCheat();">Start TypeCheat</button>';break;case 7:document.getElementsByClassName("t3-sidebar")[0].innerHTML='<button onclick="indiaTypingCheat();">Start TypeCheat</button>'}