Return to Snippet

Revision: 59669
at September 24, 2012 10:47 by sjmog


Initial Code
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(prompt("What do you want to replace?"),prompt("What do you want to replace it with?"))

Initial URL


Initial Description
Find and Replace anything on (almost) any page.

Initial Title
Ventriloquist Bookmarklet

Initial Tags


Initial Language
HTML