Replaces straight quotes with curly/smart quotes for a better reading experience on wtr-lab.com, without breaking site functionality.

Tired of jarring straight quotes (") and apostrophes (') breaking your immersion while reading novels on wtr-lab.com? This script is a simple, lightweight, and intelligent solution that automatically converts all quotes to their elegant, typographically correct “curly” counterparts.
It works seamlessly in the background to enhance your reading experience, making the text appear cleaner and more professional, just as it would in a published book.
"text") with proper opening and closing “smart quotes” (“text”).it’s, Administrator’s), abbreviated years (’88), and single-quoted text (‘word’).“He said, ‘Help me!’”).--) into proper em-dashes (—).wtr-lab.com that load new chapters without a full page refresh. It will automatically process new content as you navigate.This script goes far beyond a simple search-and-replace. It uses a robust, pattern-based engine to handle complex edge cases that other scripts miss.
✅ Fixes Popover/Tooltip Bugs: The core logic was rebuilt to surgically modify only the text content without breaking the website's interactive HTML elements. Term definition popovers will now work perfectly while the script is active.
✅ Context-Aware Across HTML Tags: The script maintains context even when words are split by styling tags (e.g., <span>). This prevents errors where an apostrophe at the beginning of a text block is mistaken for an opening quote.
<em>Administrator</em>'s is correctly converted to <em>Administrator</em>’s, not <em>Administrator</em>‘s.✅ Advanced Apostrophe Detection: It uses robust, pattern-aware rules to differentiate between contractions/possessives and nested single quotes. This ensures correct formatting even when a quote is followed by punctuation, a common failure point for other scripts.
“They’re protesting the term ‘Sinners’,” he said. is formatted perfectly....interpret equality as ‘being able to do whatever they want.’ is also handled correctly.✅ Intelligent Contextual Conversion: Instead of a simple character-by-character check, the script now analyzes the entire paragraph's text at once. This allows it to use advanced, pattern-based rules (inspired by professional typography tools) to correctly identify opening/closing quotes and apostrophes, even in complex or ambiguous sentences.
✅ Safe and Efficient: It uses a TreeWalker to efficiently find and change only text, leaving all HTML elements and their functionality intact. A MutationObserver ensures it only runs when a new chapter is loaded, keeping your browser fast.
✅ Configurable Logging: For developers or users providing feedback, logging can be enabled/disabled via the Tampermonkey menu, keeping your browser console clean.
https://wtr-lab.com. The script will run automatically.If you encounter a word or a sentence where the quotes are not replaced correctly, please open a ticket on the Feedback tab. Suggestions for improvement are always welcome.