Script for cheating in 10ff.net typing test
Note. 1
It basically is selecting the highlited text in the test (which is the current word that you are going to type) setting it to a variable
and setting the input field's value to that variable
and dispatching the input event every 1 / 1000 of a second
Press ctrl + shift + i or F12 and paste it in the console
If you don't like pasting it in everytime, here's another version
setInterval(function() {
let text = document.querySelector(".highlight").textContent + " ";
document.querySelector("input").value = text
var inputEvent = new InputEvent("input");
document.querySelector("input").dispatchEvent(inputEvent)
}, 1);
If you like always cheating, this script makes your life easier
This script creates a button on the page so that you don't need to paste the script in everytime,
you just need to press the button
- Install a userscript extension like Tampermonkey
- Paste in this code
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://10ff.net
// @icon https://www.google.com/s2/favicons?sz=64&domain=10fastfingers.com
// @grant none
// ==/UserScript==
(function() {
//alert("script made by g4o2 button is at the bottom left")
var sheet = window.document.styleSheets[0];
sheet.insertRule('button{height:60px;width:150px;background:darkgrey;border-radius:10px;border:solid 3px orange;color:orange;}', sheet.cssRules.length);
let btn = document.createElement("button");
btn.innerHTML = "SUPER SPEED";
btn.onclick = function hack() {
}
var myHoverInterval = null;
btn.addEventListener("click", function() {
if (myHoverInterval != null) {
return;
}
myHoverInterval = setInterval(function() {
let text = document.querySelector(".highlight").textContent + " ";
document.querySelector("input").value = text
var inputEvent = new InputEvent("input");
document.querySelector("input").dispatchEvent(inputEvent)
}, 1);
});
document.body.appendChild(btn);
})();
- When you load up the page, there will be a grey / orange at the bottom left of the page
- Press it and you're off to cheating 😎
Footnotes
-
I recommend you not to cheat 👽 ↩