Javascript - Edit Any Webpage Trick

Suggested by Peter Jones - 08 Sep 2008

Here's a neat JavaScript trick that allows you to edit any webpage on any site using just your browser. Of course, you are only changing the site in your own computers memory cache, and not on the actual site itself.

Go to any website and paste this JavaScript string into the URL address bar in your browser:

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

Now you will have the ability to edit most items on the webpage. How you can use this trick - try making up some wacky headline about aliens or even yourself on the www.nytimes.com news website and taking a snapshot to send to your friends, etc. The neat things you can do with this are endless!

This works best in Microsoft Internet Explorer as other browsers, such as Firefox and Chrome, disallow in-line editing like this.

Comments (1)

I've bookmarked the javascript, though one can almost do it as easily in Google Chrome by Inspect Element. Though this gives you more flexibility (as you can edit the html, and not just text), it can be harder for not very technologically-inclined people. Timothy - Jan 8 2011 12:39PM