A Useless (or not) Javascript Hack
June 12th, 2007Since I haven’t posted for over a month, I figured I could at least share this useless Javascript hack. Actually it may have some use but the ethics may be questionable… Anyway, it’s quite fun! On any Web page, enter the following in your browser’s address bar and hit enter. You can then delete and edit the Web page contents.
javascript: document.body.contentEditable = "true"; document.designMode= "on"; void 0

For example, I went to Google and did a search for the “best blog ever”. Needless to say Da Vinci Planet wasn’t number 1 (or 2, or 3…), but then after pasting the text above into the address bar I was able to edit the Web page and voilà I’m number 1!

June 12th, 2007 at 10:33 pm
This post is really interesting (or not).
June 21st, 2007 at 2:21 pm
Any way to insert pics into a hacked page?
Changing text is nice but changing pics would be better!
July 14th, 2007 at 1:54 am
Here’s a way to change all the images on the page (all in one-line).
javascript:var d=document;d.body.contentEditable=”true”;d.designMode=”on”;for(i=0;i
July 14th, 2007 at 1:56 am
Lost my post.. hope you see this line: Add this before the end of the void 0
for(i=0; i
July 14th, 2007 at 1:57 am
too bad can’t post code.. the trick is to use document.images and loop the index and affect the src attribute to force an image
May 1st, 2008 at 4:17 pm
anyway to save this?