Last active
December 19, 2018 17:29
-
-
Save ettorerizza/871ff7434be3131d3d11eb06d7283cd1 to your computer and use it in GitHub Desktop.
Replace text bookmarklet
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
<a "href=javascript:function replaceText(ot,nt,n){n=n||document.body;var cs=n.childNodes,i=0;while(n=cs[i]){if(n.nodeType==Node.TEXT_NODE){n.textContent=n.textContent.replace(ot,nt);}else{replaceText(ot,nt,n);};i++;}};replaceText('surréalisme','romantisme');">Surréaliste!</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment