Last active
December 1, 2016 04:50
-
-
Save miklb/8536fdb43ed8564689cb to your computer and use it in GitHub Desktop.
bookmarklet to hide "IFTTT" from a page. (specifically pinboard). Completely cribbed from this [Stack Overflow](https://gist.github.com/miklb/8536fdb43ed8564689cb/edit) solution.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:function htmlreplace(a,b,element){if(!element)element=document.body;var nodes=element.childNodes;for(var n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){nodes[n].textContent=nodes[n].textContent.replace(new RegExp(a,'gi'),b);}else{htmlreplace(a,b,nodes[n]);}}}htmlreplace('IFTTT',''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment