Skip to content

Instantly share code, notes, and snippets.

@lukekarrys
Created August 16, 2011 20:18
Show Gist options
  • Save lukekarrys/1150059 to your computer and use it in GitHub Desktop.
Save lukekarrys/1150059 to your computer and use it in GitHub Desktop.
Anthonyify
function walk(a,b){var c,d,e=0;do c||(c=b.call(a,e)===!1),!c&&(d=a.firstChild)?++e:(d=a.nextSibling)?c=0:(d=a.parentNode,--e,c=1),a=d;while(e>0)}walk(document.documentElement,function(){if(this.nodeType==3)this.nodeValue=this.nodeValue.replace(/./g,"ANTHONY")});
@lukekarrys
Copy link
Author

Credit for the walk function goes to cowboy for https://gist.github.com/958000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment