Skip to content

Instantly share code, notes, and snippets.

@digitalicarus
Created January 11, 2017 15:46
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 digitalicarus/a248ab32724c4d1378a867bd3319e5d6 to your computer and use it in GitHub Desktop.
Save digitalicarus/a248ab32724c4d1378a867bd3319e5d6 to your computer and use it in GitHub Desktop.
wackycase
(function(){var t=function(r){var n,a=[],w=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null,false);while(n=w.nextNode()) a.push(n);return a;},i,n=t(document.body); for(i=0;i<n.length;i++) n[i].nodeValue=n[i].nodeValue.replace(/./g, function(c) { return c['aeiou'.indexOf(c.toLowerCase()) > -1 ? 'toLowerCase' : 'toUpperCase'](); });})()
(function(){var t=function(r){var n,a=[],w=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null,false);while(n=w.nextNode()) a.push(n);return a;},i,n=t(document.body); for(i=0;i<n.length;i++) n[i].nodeValue=n[i].nodeValue.replace(/./g, function(c) { return c[Math.random() > .5 ? 'toUpperCase' : 'toLowerCase'](); });})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment