Replace specified phrases on a page

Latest Version

Version
2.0.1
Update
January 13, 2024
Size
23.74KiB
Developer
Category
Users
925
Rating
4.33333 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Storage
Tabs
See more

Text Rewriter Extension

Arbitrary substitution of any visible text on a page.

Rewrite customizable patterns in a page. Created mostly for personal amusement, inspired by XKCD #1288 and \"butt to butt.\" By default provides a sensible \"mispell\" -> \"misspell\" replacement.

Supports any Yavascripp regular expressions, including backrefs and captures. I just visit the visible text nodes on the page and use nodeValue.replace for each provided pattern. This means if there is an overlapping pair of patterns A -> B and B -> C, then both A and B go to C.

Clicking the icon in the taskbar disables the addon for that domain. For example maybe you went a little overzealous with the substitutions and want to disable it on Slack because of possible... misunderstandings.

Also has an experimental live update feature that will perform replacements on any text that appears even after the page loaded (such as Youtube captions).
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Text Rewriter", "description": "Replace specified phrases on a page", "author": "Peter Elmers", "version": "2.0.1", "options_ui": { "page": "data/prefs.html" }, "action": { "default_icon": "data/icon.png" }, "content_scripts": [ { "matches": [ "http://*/*", "https://*/*" ], "js": [ "data/text-rewriter.js" ], "all_frames": false, "run_at": "document_idle" } ], "permissions": [ "storage", "tabs" ], "background": { "service_worker": "lib/main.js" }, "icons": { "48": "data/icon.png", "64": "data/icon64.png" }}
Read more

Similar Extensions

User reviews

icon

いつみくの (ID: 0000009b4fdab1d9) Voted 5 ★ - Updated 05/20/2023 JSON import/export and dynamic replacing is so powerful!! 動的に、つまり新しく現れた要素も再読み込み無しに1秒未満ですぐに書き換えられる。

icon

금종남 (ID: 0000003d1aca3fe0) Voted 4 ★ - Updated 07/25/2022 doesn't work. since this july. 2022

icon

Mike Geesing (ID: 0000003bc3a31a8f) Voted 5 ★ - Updated 05/12/2022 One of the best, compared to others this addon has features that others doesn't have. The experimental update feature is what I needed. Good job, recommended!

icon

Johnny Sun (ID: 00000052ca68f8a8) Voted 1 ★ - Updated 12/06/2020 doesn't work

icon

Mari Mar (ID: 000000b14382b237) Voted 5 ★ - Updated 02/05/2020 Thanks! Very, very good work!