Customize your internet with text replacement strategies.
Text Customizer Extension
This extension runs through webpages, applying your find and replace rules. You can define rules in the extension's options page. They simply consist in :
- Match : either a string or a regular expression
- Replacement : either a string or a function that receives arguments (node, match), where 'node' is the DOM node in which there was a match and 'match' the result array (as returned by RegExp.prototype.exec())
So you can simply find/replace strings ('keyboard' -> 'leopard' for instance) or take it to another level and use custom functions to apply CSS to substrings, move them through the DOM and so forth.
You can configure the extension through the extensions page (chrome://extensions/)
Read more
- Match : either a string or a regular expression
- Replacement : either a string or a function that receives arguments (node, match), where 'node' is the DOM node in which there was a match and 'match' the result array (as returned by RegExp.prototype.exec())
So you can simply find/replace strings ('keyboard' -> 'leopard' for instance) or take it to another level and use custom functions to apply CSS to substrings, move them through the DOM and so forth.
You can configure the extension through the extensions page (chrome://extensions/)
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Text Customizer", "version": "1.0", "description": "Customize your internet with text replacement strategies.", "icons": { "128": "assets/icon-128.png", "48": "assets/icon-48.png", "24": "assets/icon-24.png" }, "homepage_url": "https://github.com/Whisno/Chrome-Text-Customizer", "content_scripts": [ { "js": ["text_customizer.js", "main.js"], "matches": [""], "run_at": "document_end" } ], "options_page": "options.html", "permissions": [ "storage" ]}
Read more