WTR Lab Uncensor

Replaces censored words with their uncensored counterparts on wtr-lab.com chapter pages for a better reading experience, without breaking site functionality.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

May akda
MasuRiii
Mga pang araw araw na pag install
0
Kabuuan na installs
24
Mga Rating
0 0 0
Bersyon
1.3.2
Nilikha
2025-10-20
Na update
2026-06-24
Laki
42.4 KB
Lisensya
MIT
Nalalapat sa

WTR Lab Uncensor

Version License: MIT TypeScript Built with Webpack Greasy Fork GitHub Issues GitHub Stars

ko-fi

A lightweight userscript that replaces censored words with their uncensored counterparts on wtr-lab.com chapter pages. It restores the original text without breaking site functionality, navigation, or event listeners.

Features

Censorship Removal

  • Automatic Replacement — detects censored tokens (e.g. f**k, sh*t, b*tch) in chapter text and restores the original words.
  • Comprehensive Dictionary — ships with 174 canonical censored/uncensored pairs covering profanity, slurs, and common obfuscation patterns.
  • Case-Insensitive Matching with Case Reconstruction — all entries are lowercase; the engine reconstructs ALL-CAPS, Title-Case, or lowercase from the original censored token at replacement time.
  • Punctuation-Aware — word-boundary matching preserves surrounding punctuation, quotes, and whitespace; replacements never bleed into adjacent words.
  • Aho-Corasick Engine — uses an O(n+m) multi-pattern automaton instead of a giant alternation regex for faster, scalable matching.
  • Conservative Fallback Decoder — automatically decodes novel censored variants not in the dictionary when exactly one profanity word matches on length + preserved letter positions. Ambiguous tokens are left unchanged, guaranteeing ~0% false positives.
  • Expanded Profanity Coverage — 150-word fallback list sourced from Google-profanity-words, rominf/profanity-filter, the Surge AI profanity dataset, and Wiktionary censored spellings.

Safe DOM Processing

  • Text-Node Traversal — walks only text nodes, leaving element nodes, attributes, and event listeners intact.
  • Processed Marking — each chapter body is marked after processing to avoid duplicate work on re-renders.
  • MutationObserver — watches for dynamically loaded chapter content (SPA navigation) and re-processes automatically.

Debugging

  • Toggle Logging — a userscript manager menu command enables console logging of processed chapter elements for troubleshooting.
  • Settings Persistence — the logging preference is saved locally via GM_ APIs.

Installation

  1. Install a userscript manager such as Tampermonkey, Violentmonkey, ScriptCat, or Stay.
  2. Install the script from Greasy Fork or download the latest .user.js from the dist/ directory on GitHub.
  3. Navigate to any chapter page on wtr-lab.com.

Usage

  1. Navigate to any chapter page on wtr-lab.com (e.g., wtr-lab.com/en/novel///*).
  2. Censored words are replaced automatically — no interaction required.
  3. To enable debug logging, click the userscript manager extension icon and select Toggle Logging.

Target Pages

Permissions and APIs

The script uses the following userscript manager APIs:

  • GM_getValue / GM_setValue — Persist the logging toggle preference
  • GM_registerMenuCommand — Add the Toggle Logging menu entry

All permissions are minimal and necessary for core functionality.

Support

License

MIT. See the LICENSE file on GitHub.