Skip to content

Instantly share code, notes, and snippets.

@mwcz
Last active January 22, 2016 13:35
Show Gist options
  • Save mwcz/186111ae3b85132fd400 to your computer and use it in GitHub Desktop.
Save mwcz/186111ae3b85132fd400 to your computer and use it in GitHub Desktop.
Godzilla Rampage
// ==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