Pattern Mapping Replacer - Multi-Site

Replaces text based on a mapping with exact matching and site-specific filtering

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

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

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
Kreezxil
Instalaciones diarias
1
Instalaciones totales
1
Calificaciones
0 0 0
Versión
1.2
Creado
21/03/2026
Actualizado
21/03/2026
Tamaño
2.88 KB
Licencia
MIT; explicity from MIT license, you must link back to this script.
Funciona en
Todos los sitios

Pattern Mapping Replacer - Multi-Site

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.

Core Features

  • Dynamic Text Replacement: Replaces specific words or phrases within the visible text of a webpage.
  • Site-Specific Filtering: Replacements can be restricted to specific domains (e.g., sefaria.org) or applied globally.
  • Case Sensitivity Control: Each entry in the mapping can be set to either an exact match (true) or case-insensitive (false).
  • Whole Word Matching: Uses regex word boundaries (\b) to ensure it only replaces whole words and not fragments within larger words.
  • Live Updates: Utilizes a MutationObserver to watch for changes in the DOM, ensuring that text loaded dynamically is also replaced.
  • Protected Elements: Automatically ignores script tags, style blocks, textareas, and input fields to prevent breaking site functionality.

Configuration Structure

The script uses a mapping object where each entry follows this format:
"Original Word": [ExactMatch (Boolean), AllowedSites (Array), "Replacement Word"]

  • ExactMatch: If true, the script only replaces the exact casing provided.
  • AllowedSites: An array of domain strings. If the array is empty ([]), the replacement applies to all websites.
  • Replacement: The string that will replace the original pattern.

Notes

  • Other array variables can be defined for sites, so that you can easily tailor matches to any sites.
  • You don't have to use the array variables, you can manually define the arrays in each section. I recommend the variables.