Skip to content

Instantly share code, notes, and snippets.

@cho45
Created July 23, 2009 09:02
Show Gist options
  • Save cho45/152565 to your computer and use it in GitHub Desktop.
Save cho45/152565 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name ヒウィッヒヒー
// @namespace http://lowreal.net/
// @include *
location.href = "javascript:"+encodeURIComponent(uneval(function () {
document.body.addEventListener("DOMNodeInserted", (function me (e) {
var walker = document.createTreeWalker(e.target, NodeFilter.SHOW_TEXT, {
acceptNode : function (node) { return NodeFilter.FILTER_ACCEPT }
}, true);
while (walker.nextNode()) with (walker.currentNode)
nodeValue = nodeValue.replace(/twitter/gi, "ヒウィッヒヒー");
return me;
})({ target: document.body }), false);
}))+"()";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment