Skip to content

About

Tampermonkey userscript for Monkeytype that rewrites every keystroke to the correct character for 100% typing-test accuracy. Works with Violentmonkey in Chrome, Firefox and Edge.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Monkeytype Force Correct Userscript — Tampermonkey Script for Monkeytype

A Tampermonkey userscript for Monkeytype that rewrites every keystroke into the next expected character, so your typing test always reads 100% accuracy — works in Chrome, Firefox, Edge, Opera and Brave with Tampermonkey or Violentmonkey.

One-click install button for the Monkeytype Force Correct userscript in Tampermonkey or Violentmonkey

One click is all it takes. With Tampermonkey or Violentmonkey installed, the button above opens the install screen directly — no copying, no pasting, no dashboard.

License: MIT Version No dependencies

Monkeytype typing test running the Force Correct Tampermonkey userscript, showing 100% accuracy and the on-screen "force correct: on" indicator in the bottom right corner


Table of Contents


What it does

Monkeytype reads your typing from a single hidden #wordsInput textarea. This userscript listens for the browser's beforeinput event in the capture phase — before Monkeytype's own listener runs — cancels the real character, and writes the character Monkeytype was expecting instead. Spaces are handled too: pressing space finishes the current word rather than submitting it short.

The result is a typing test where every key you press lands on the correct letter, at whatever speed you actually type.

Diagram showing the Monkeytype Force Correct userscript intercepting a beforeinput event for a mistyped key, calling preventDefault, and writing the expected character into the hidden wordsInput field so Monkeytype counts it as correct

Features

  • Every keystroke corrected — any key becomes the next expected character in the active word.
  • Smart space handling — space completes the remainder of the current word instead of submitting a partial one.
  • Automatic word advance — once a word is full, the next key emits the space and moves you on.
  • Accuracy-safe — the synthetic InputEvent carries matching data, so Monkeytype's accuracy counter never records a miss.
  • F8 toggle — turn correction on and off mid-test, with an on-screen status indicator.
  • Drift resync — recovers cleanly if you toggle mid-word or switch test modes.
  • Zero dependencies, zero permissions — a single file, @grant none, no network calls, no data collection.
  • Works across Monkeytype modes — time, words, quote, punctuation and numbers.

Installation

  1. Install a userscript manager for your browser:

  2. Click the install button — this is the whole installation:

    One-click install button for the Monkeytype Force Correct userscript in Tampermonkey or Violentmonkey

    Same link as plain text: monkeytype-force-correct.user.js

    Prefer a pinned version? The releases page carries every tagged build. Note that GitHub serves release assets as file downloads, so those links save the script to disk instead of opening the install screen — use the button above for a true one-click install.

    Your userscript manager detects the .user.js extension and opens its install screen automatically.

  3. Confirm the install in the Tampermonkey or Violentmonkey dialog.

  4. Open monkeytype.com and start typing.

Manual installation
  1. Open the Tampermonkey dashboard and use Utilities → File, or the + tab to create a new script.
  2. Copy the contents of monkeytype-force-correct.user.js.
  3. Paste it in, replacing the template, and press Ctrl + S.

Usage

Action Result
Start typing on Monkeytype Every keystroke is rewritten to the correct character
Press Space mid-word The rest of the word is filled in, then the word is submitted
Press any key on a finished word A space is emitted and you advance to the next word
Press F8 Toggles correction on/off — an indicator appears bottom-right

The script is enabled the moment a Monkeytype page loads. Press F8 to type normally again; press it once more to switch correction back on.

Configuration

Edit the CFG block at the top of the script to change its behaviour:

const CFG = {
  completeWordOnSpace: true, // space fills the rest of the word instead of submitting it short
  spaceOnOverflow: true,     // once the word is full, the next key emits the space and submits it
  blockExtraChars: true,     // used only when spaceOnOverflow is false: swallow keys past the end
  toggleKey: 'F8',           // press to enable/disable
  startEnabled: true,        // set false to start every page load with correction off
};
Option Default Description
completeWordOnSpace true Space auto-completes the current word. Set false to submit the word as-is.
spaceOnOverflow true Typing past the end of a word emits a space instead of an extra letter.
blockExtraChars true Only used when spaceOnOverflow is false: swallows keys past the word end.
toggleKey 'F8' Any KeyboardEvent.key value.
startEnabled true Whether correction is active on page load.

How it works

Monkeytype does not read keydown or keypress — it reads the value of a hidden #wordsInput textarea plus the input events fired against it. So the script:

  1. Registers a beforeinput listener on document in the capture phase, which runs before Monkeytype's own listener on the textarea.
  2. Reads the active word from #words .word.active, skipping any letter.extra nodes Monkeytype appended.
  3. Calls preventDefault() so the browser never inserts the real character.
  4. Sets input.value to the corrected text and dispatches a synthetic InputEvent with inputType: 'insertText' and matching data.

Because the synthetic event's data matches the character written, the accuracy counter treats it as a clean hit. The script also resyncs its buffer against the target word if the two drift apart — for example when you toggle it on halfway through a word.

Compatibility

Browser / Manager Supported Notes
Google Chrome Yes Tested on current stable
Mozilla Firefox Yes Tested on current stable
Microsoft Edge Yes Chromium-based
Opera / Brave / Vivaldi Yes Chromium-based
Safari Untested Should work via Tampermonkey for Safari
Tampermonkey Yes Recommended
Violentmonkey Yes Fully supported
Greasemonkey Untested Greasemonkey 4+ sandboxes differ; prefer Violentmonkey on Firefox
Mobile browsers No Monkeytype's mobile input path is not covered

Requires a browser supporting the beforeinput event (Chrome 60+, Firefox 87+, Edge 79+, Safari 10.1+).

FAQ

Does this work on the Monkeytype leaderboard? No, and it is not meant to. Monkeytype runs server-side validation and its own anti-cheat on submitted results. Treat this as a local practice and muscle-memory tool — see the disclaimer.

Does it change my WPM? Not directly. You still type at your own speed; the script only changes which character is registered. Your WPM is whatever your keypress rate produces without stopping to fix errors.

Can I turn it off without uninstalling? Yes — press F8. A small indicator confirms the new state. Set startEnabled: false if you would rather it start disabled on every page load.

Nothing happens when I type. What is wrong? Check that the script is enabled in your userscript manager, that you are on https://monkeytype.com/*, and reload the page. The script runs at document-idle, so a hard reload (Ctrl + Shift + R) usually clears it up.

Does it work in quote or zen mode? Quote, time, words, punctuation and numbers all work. Zen mode has no expected word to correct against, so the script effectively does nothing there.

Does it send any data anywhere? No. The script is @grant none, makes no network requests, and stores nothing. Read the source — it is under 130 lines.

Why does my keyboard layout produce different characters? The script writes the character Monkeytype expects, so the test language's alphabet is what appears, regardless of your layout. That is intended behaviour.

How do I update it? Tampermonkey and Violentmonkey check the @updateURL in this repository automatically. You can also force a check from your manager's dashboard.

Contributing

Issues and pull requests are welcome. When reporting a bug, include your browser, userscript manager version, and the Monkeytype mode you were in.

Disclaimer

This userscript is published for educational purposes and for practising typing without the interruption of correcting mistakes. Using it to submit results to Monkeytype's public leaderboards, or to misrepresent your typing speed to anyone else, goes against the spirit of the site and likely its terms. Use it on your own account, for your own practice. The author accepts no responsibility for accounts actioned as a result of misuse.

This project is not affiliated with, endorsed by, or connected to Monkeytype, Tampermonkey or Violentmonkey.

License

Released under the MIT License.


Keywords: monkeytype userscript, monkeytype tampermonkey script, monkeytype force correct, monkeytype auto correct, monkeytype accuracy script, typing test userscript, violentmonkey monkeytype, greasemonkey typing script.

About

Tampermonkey userscript for Monkeytype that rewrites every keystroke to the correct character for 100% typing-test accuracy. Works with Violentmonkey in Chrome, Firefox and Edge.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages