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

Commit a82ac35

Browse files
Added instructions on adding TypeCheat to your bookmarks bar
1 parent c4178dc commit a82ac35

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ If you go moderately fast, you will get a message asking you to do a test to con
2020
If you go too fast, an alert box will appear saying that they believe you have cheated.
2121

2222
## Use
23+
### Bookmarks bar
24+
1. [Download TypeCheat](https://github.com/hackermancool/TypeCheat/archive/master.zip)
25+
2. Open the `typecheat-bookmark.html` file in whatever browser you'd like.
26+
3. Drag and drop the item labeled "TypeCheat" into your bookmarks bar.
27+
4. Click the bookmark on a supported site, and TypeCheat will activate.
28+
29+
### Copy-paste
2330
0. Ensure that you're on a supported site
2431
1. Copy the contents of [`typecheat.min.js`](https://raw.githubusercontent.com/MysteryBlokHed/TypeCheat/master/typecheat.min.js) or [`typecheat-button.min.js`]. The first will instantly run the code, and the other will create a button to be pressed first.
2532
2. Open the developer console (Ctrl+Shift+J on Chrome/Chromium Edge)

typecheat-bookmark.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<!--
3+
TypeCheat - A JS script to cheat on certain online typing tests
4+
Copyright (C) 2020 hackermancool
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
-->
19+
<html>
20+
<head>
21+
<title>TypeCheat Bookmark</title>
22+
<meta charset="utf-8">
23+
</head>
24+
<body style="font-family: Roboto, Arial, sans-serif;">
25+
<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="
27+
javascript:/*
28+
* TypeCheat - A JS script to cheat on certain online typing tests
29+
* Copyright (C) 2020 hackermancool
30+
*
31+
* This program is free software: you can redistribute it and/or modify
32+
* it under the terms of the GNU General Public License as published by
33+
* the Free Software Foundation, either version 3 of the License, or
34+
* (at your option) any later version.
35+
*
36+
* This program is distributed in the hope that it will be useful,
37+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
38+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39+
* GNU General Public License for more details.
40+
*
41+
* You should have received a copy of the GNU General Public License
42+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
43+
*/
44+
var tText,tWords,cWord,tField,url=window.location.href.split(&quot;/&quot;)[2],site=-1,altMode=0;switch(&quot;10fastfingers.com&quot;==url||&quot;www.10fastfingers.com&quot;==url?(console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: 10FastFingers\n~~~~~~~~~~~~~~~~~~~&quot;),site=0,&quot;text&quot;==window.location.href.split(&quot;/&quot;)[3]&&(altMode=1)):&quot;play.typeracer.com&quot;==url||&quot;typeracer.com&quot;==url?(console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypeRacer\n~~~~~~~~~~~~~~~~~~~&quot;),site=1):&quot;typingtestnow.com&quot;==url||&quot;www.typingtestnow.com&quot;==url?(console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: TypingTestNow\n~~~~~~~~~~~~~~~~~~~&quot;),site=2):&quot;www.bing.com&quot;!=url&&&quot;bing.com&quot;!=url||(console.log(&quot;~~~~~~~~~~~~~~~~~~~\n TypeCheat Active! \nSite: Bing Test\n~~~~~~~~~~~~~~~~~~~&quot;),site=3),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++)words.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=[];var 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++)})}">TypeCheat</a>
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)