Skip to content

Instantly share code, notes, and snippets.

@dmd
Forked from that4chanwolf/gist:8921631
Last active February 10, 2017 14:56
Show Gist options
  • Save dmd/9e201860a88b672e9d388caf47813d7e to your computer and use it in GitHub Desktop.
Save dmd/9e201860a88b672e9d388caf47813d7e to your computer and use it in GitHub Desktop.
Cloud2butt
// ==UserScript==
// @name data2dick
// @include *
// ==/UserScript==
(function() {
var textnodes = document.evaluate("//body//text()[not(ancestor::script) and not(ancestor::style)]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),
node, text;
for(var i = 0; i < textnodes.snapshotLength; i++) {
node = textnodes.snapshotItem(i);
text = node.data;
text = text.replace(/big data/i, "big schlong");
text = text.replace(/data lake/i, "jizz puddle");
node.data = text;
}
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment