Skip to content

Instantly share code, notes, and snippets.

@motemen
Created May 24, 2009 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motemen/117014 to your computer and use it in GitHub Desktop.
Save motemen/117014 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name s/Bishoujo/Ijoufu/g
// @namespace http://subtech.g.hatena.ne.jp/motemen/
// ==/UserScript==
function ijoufize (node) {
var children = node.childNodes;
for (var i = 0; i < children.length; i++) {
if (children[i].nodeType == children[i].TEXT_NODE) {
children[i].nodeValue = children[i].nodeValue.replace(/美少女/g, '偉丈夫');
} else {
ijoufize(children[i]);
}
}
}
ijoufize(document.body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment