Best Wiki Replace (XKCD Inspired)
Inspired by: http://xkcd.com/1485/
What regex/words and wiki/site would you choose?
var a=document.getElementsByTagName('body')[0].innerHTML;a=a.replace(/militia/g,'fanclub').replace(/Militia/gi,'Fanclub');document.getElementsByTagName('body')[0].innerHTML=a;void(0);
var a=document.getElementsByTagName('body')[0].innerHTML;a=a.replace(/bro/gi,'friend').replace(/mance/gi,'ship');document.getElementsByTagName('body')[0].innerHTML=a;void(0);
...and for the 12 year old in us all: var a=document.getElementsByTagName('body')[0].innerHTML;a=a.replace(/ ?([Ss])apiens/gi,'$1exual');document.getElementsByTagName('body')[0].innerHTML=a;void(0);
NB:code done as a one liner so it's easy to copy/paste to your address bar; just prefix with javascript: and hit enter for this to run on the site of your choice.My best so far (simple but works well):
Site: http://en.wikipedia.org/wiki/Programming_language
Script:
javascript:var a=document.getElementsByTagName('body')[0].innerHTML;a=a.replace(/Program(\w\w+)*/gmi,'curse').replace(/language/gmi,'word');document.getElementsByTagName('body')[0].innerHTML=a;void(0);
0 comments
[ 3.1 ms ] story [ 12.7 ms ] threadNo comments yet.