Replaces text based on a mapping with exact matching and site-specific filtering
This Tampermonkey userscript performs automated text replacement across websites based on a customizable mapping dictionary. It is specifically designed to handle site-specific filtering and case-sensitivity toggles.
sefaria.org) or applied globally.true) or case-insensitive (false).\b) to ensure it only replaces whole words and not fragments within larger words.MutationObserver to watch for changes in the DOM, ensuring that text loaded dynamically is also replaced.The script uses a mapping object where each entry follows this format:
"Original Word": [ExactMatch (Boolean), AllowedSites (Array), "Replacement Word"]
true, the script only replaces the exact casing provided.[]), the replacement applies to all websites.