Javascript website editing trick .

kumkum01's Avatar, Join Date: Apr 2011
Go4Expert Member
Hi..........
You can try this to mess up with your friends*
. So to do the trick just copy the script below and paste onto the address bar while you are on the website you want to edit!
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
After that you can simply click & drag what you want to modify !*


0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
This will actually not messup anything but you will be able to edit the page in your browser only.
0
mfred90's Avatar, Join Date: Mar 2012
Banned
hey I have try this code but its not working in Mozilla Firefox. is there any problem with my browser or something different.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by mfred90 View Post
hey I have try this code but its not working in Mozilla Firefox. is there any problem with my browser or something different.
You missed the code.
0
mialuzzatto's Avatar, Join Date: Aug 2015
Ambitious contributor
Hello,

This is just an example. You can use it for anything like showing wrong traffic stats or for fooling people by showing that someone said something about them on Facebook or Twitter. It depends only on your creativity. But I would advise you to stay ethical and use it for entertainment purposes only.

To use this trick, all you need to do is just copy the code given below and paste it in your address bar after you have opened the website you wish to edit. And start editing.

javascript:document.body.contentEditable%20=%20'tr ue';%20document.designMode='on';%20void%200

You can capture a screenshot by pressing the Print Screen key or by using the Snipping Tool if you use Windows 7 or Windows Vista. If you wish to again make the website non-editable to give a more authentic look, copy and paste the code given below in the address bar after you are done editing (does not work in Firefox).

javascript:document.body.contentEditable%20=%20'fa lse';%20document.designMode='off';%20void%200

Or, alternatively you can use the following bookmarklets by dragging them to your Bookmarks bar.

1. Edit this Website
2. Done Editing

The editing that you do will however be temporary as it is not server-sided. You can also save the modified website through your browser by File>Save. This works on all common web browsers including Chrome, Firefox, Opera and Internet Explorer.