Saturday, December 18, 2010

How To Edit Any Website Using Javascript

I stumbled upon this cool piece of Javascript today. Using this, you can visually edit (WYSIWYG) any website online using just your browser. Of course, the changes won’t be saved and this trick is pretty useless, but it may come handy to impress your n00b friends.
Just navigate to any site you want to visit, copy this line of JS code into the address bar and press Enter.

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

The whole site turns editable and you can screw it up as you want. You can use it to test the look of your website and edit it fast without any softwares and without having to tinker with the source. A few n00bs I showed it to even thought I hacked the site. Whoa!

No comments:

Post a Comment