Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Game programming (http://www.go4expert.com/forums/game-programming-forum/)
-   -   Javascript website editing trick . (http://www.go4expert.com/forums/javascript-website-editing-trick-t27083/)

kumkum01 3Nov2011 17:05

Javascript website editing trick .
 
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 !*


:embarasse:embarasse

shabbir 3Nov2011 17:57

Re: Javascript website editing trick .
 
This will actually not messup anything but you will be able to edit the page in your browser only.

mfred90 4Jun2012 15:55

Re: Javascript website editing trick .
 
hey I have try this code but its not working in Mozilla Firefox. is there any problem with my browser or something different.

shabbir 4Jun2012 17:21

Re: Javascript website editing trick .
 
Quote:

Originally Posted by mfred90 (Post 95498)
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.

mialuzzatto 24Sep2015 17:43

Re: Javascript website editing trick .
 
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.


All times are GMT +5.5. The time now is 02:09.