/ Published in: HTML
Find and Replace anything on (almost) any page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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?"))