Created
April 14, 2021 15:30
-
-
Save cairdcoinheringaahing/ad7307fd650a18906d7745980738f1f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Þe best userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Þorns everywhere! | |
// @author You | |
// @match https://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
new MutationObserver(_=>(r=n=>n.nodeType===3?n.textContent=n.textContent.replace(/th/gi,d=>d[0]==d[0].toLowerCase()?"þ":"Þ"):[...n.childNodes].map(r))(document.body)).observe(document,{attributes:0,childList:1,subtree:1}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment