User JS (17)

9 Name: #!/usr/bin/anonymous : 2007-11-10 10:13 ID:Heaven

javascript:(function(){document.body.innerHTML=document.body.innerHTML.replace(new RegExp(prompt('regex?'),'g'),prompt('replacement string?'))})()
^-- This doesn't work for me.

javascript:(function(){document.body.innerHTML=document.body.innerHTML.replace(prompt('find?'),prompt('replacement string?'))})()
^-- This doesn't work either.

I tested them by bookmarking them and running them on this page. No resulting changes, but on the other hand no errors either.

This thread has been closed. You cannot post in this thread any longer.