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 is all it takes. With Tampermonkey or Violentmonkey installed, the button above opens the install screen directly — no copying, no pasting, no dashboard.
- What it does
- Features
- Installation
- Usage
- Configuration
- How it works
- Compatibility
- FAQ
- Contributing
- Disclaimer
- License
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.
- 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
InputEventcarries matchingdata, 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.
-
Install a userscript manager for your browser:
- Tampermonkey — Chrome, Firefox, Edge, Opera, Brave, Safari
- Violentmonkey — Chrome, Firefox, Edge
-
Click the install button — this is the whole installation:
Same link as plain text:
monkeytype-force-correct.user.jsPrefer 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.jsextension and opens its install screen automatically. -
Confirm the install in the Tampermonkey or Violentmonkey dialog.
-
Open monkeytype.com and start typing.
Manual installation
- Open the Tampermonkey dashboard and use Utilities → File, or the + tab to create a new script.
- Copy the contents of
monkeytype-force-correct.user.js. - Paste it in, replacing the template, and press Ctrl + S.
| 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.
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. |
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:
- Registers a
beforeinputlistener ondocumentin the capture phase, which runs before Monkeytype's own listener on the textarea. - Reads the active word from
#words .word.active, skipping anyletter.extranodes Monkeytype appended. - Calls
preventDefault()so the browser never inserts the real character. - Sets
input.valueto the corrected text and dispatches a syntheticInputEventwithinputType: 'insertText'and matchingdata.
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.
| 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+).
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.
Issues and pull requests are welcome. When reporting a bug, include your browser, userscript manager version, and the Monkeytype mode you were in.
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.
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.