Skip to content

Instantly share code, notes, and snippets.

@Cycymomo
Last active December 21, 2015 12:19
Show Gist options
  • Save Cycymomo/6304624 to your computer and use it in GitHub Desktop.
Save Cycymomo/6304624 to your computer and use it in GitHub Desktop.
// 140bytes - http://www.developpez.net/forums/d1362763/webmasters-developpement-web/javascript/ludique-defis-code-en-tweet/
// by @Lcfvs
// NodeFilter.SHOW_TEXT === 4
(function(n,e){
var t=document.createTreeWalker(n,4),p='nodeValue',i;while(t.nextNode()){i=t.currentNode;i[p]=i[p].replace(e,'')}
})(document.body,/e/ig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment