Last active
January 22, 2016 13:35
-
-
Save mwcz/186111ae3b85132fd400 to your computer and use it in GitHub Desktop.
Godzilla Rampage
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 Godzilla Rampage | |
// @namespace godzilla.substitution.fun | |
// @description Replaces 'God' with 'Godzilla' | |
// @version 1.0.0 | |
// @grant none | |
// @include http://* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== | |
//////////////////////////////////////////////////////////////////////// | |
// // | |
// INSTALLATION INSTRUCTIONS! // | |
// // | |
// http://userscripts-mirror.org/about/installing.html // | |
// // | |
//////////////////////////////////////////////////////////////////////// | |
// original credit to http://userscripts-mirror.org/scripts/review/182635 | |
$('*').contents().filter(function() { | |
return this.nodeType == Node.TEXT_NODE && this.nodeValue.trim() !== ''; | |
}).each(function() { | |
this.nodeValue = this.nodeValue.replace(/(god)/ig, '$1zilla'); | |
};) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment