Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cairdcoinheringaahing/ad7307fd650a18906d7745980738f1f1 to your computer and use it in GitHub Desktop.
Save cairdcoinheringaahing/ad7307fd650a18906d7745980738f1f1 to your computer and use it in GitHub Desktop.
// ==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