Skip to content

Instantly share code, notes, and snippets.

@harishanchu
Last active March 5, 2022 02:53
Show Gist options
  • Save harishanchu/6852325 to your computer and use it in GitHub Desktop.
Save harishanchu/6852325 to your computer and use it in GitHub Desktop.
typingclub.com cheat js
//Before you start typing open your developer console and paste the following script
//To enable/disable faking press (cntrl+b).
//Now pressing any key will result in to correct key press.
//Script also produces random mistakes with random characters so that viewers will think you are not faking.
var enable = false;
$(document).unbind("keydown"), $(document).keydown(function (e) {
if (e.which === 66 && (e.ctrlKey || e.metaKey)) {
if (enable) enable = false;
else enable = true
}
if (enable) {
r = parseInt(13 * Math.random()), key = 1 == r ? String.fromCharCode(97 + Math.round(25 * Math.random())) : $("#arena .sel").html(), lesson_keydown(key)
} else {
if (lesson.mode == "finished") return;
var t = e.keyCode ? e.keyCode : e.charCode;
var n = e.shiftKey ? "S" : "";
var i = e.ctrlKey ? "C" : "";
var s = e.altKey ? "A" : "";
var o = n + i + s + t;
if (kb_map[o]) chr = kb_map[o];
else if (t == 13 || t == 8) {
if (t == 13) chr = "enter";
if (t == 8) chr = "backspace"
} else return; if (chr == " ") chr = " ";
lesson_keydown(chr)
}
})
@bakugou5
Copy link

bakugou5 commented Feb 2, 2021 via email

@hi1692
Copy link

hi1692 commented Mar 5, 2022

whut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment