Skip to content

Instantly share code, notes, and snippets.

@yoozoosato
Created September 3, 2010 06:30
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 yoozoosato/563509 to your computer and use it in GitHub Desktop.
Save yoozoosato/563509 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name s/cloud/online/g
// @namespace http://somethingnew2.com/js/monkeys/
// @description buzz word killer.
// @author SATO Yozo
// @version 0.1
// ==/UserScript==
(function() {
var suffix = 'オンライン';
function buzzkiller(elem) {
if (elem.nodeType === 1) {
for (var i = 0; i < elem.childNodes.length; ++i) {
buzzkiller(elem.childNodes[i]);
}
} else if (elem.nodeType === 3) {
elem.nodeValue = elem.nodeValue.replace(/(クラウド)/g, suffix);
}
}
buzzkiller(document.body);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment