Skip to content

Instantly share code, notes, and snippets.

@tpenguinltg
Created March 28, 2015 03:01
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 tpenguinltg/5d3c9ece5783bee37724 to your computer and use it in GitHub Desktop.
Save tpenguinltg/5d3c9ece5783bee37724 to your computer and use it in GitHub Desktop.
Random string from /r/YouGotTold
z=(function(t){a=[];w=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,false);while(n=w.nextNode())a.push(n);return a;})(document.body);alert(z[Math.floor(Math.random()*z.length)].textContent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment