Make Wikipedia articles more interesting

Paste the following code in the address bar after you’ve loaded a Wikipedia page and have some fun – I suggest replacing the name of the article with ‘lollipops’ as a starting point.

You can drag this link in the bookmarks bar to use this script again and again or just paste the code below into the address bar to try it out:

Replace page text

javascript:var a=prompt("Replace what:");var b=prompt("With what:");document.body.innerHTML=document.body.innerHTML.replace(RegExp(a, "ig"), b);void(0);

01:36 AM on Sunday, 24/05/2009

Say something!

what is void(0) supposed to do?

murphy @ 02:09 AM on Sunday, 24/05/2009

That's just something you need to add to javascript: urls to make them work properly - it makes the return value of the code a void value so that no browser errors get generated.

Brenton @ 03:28 AM on Saturday, 04/07/2009