Here’s a nifty little javascript code trick that allows you to edit any website that is displayed on your browser. Of course, this doesn’t mean that you’re actually editing the page on the server. This code will only allow you edit the page that is displayed on your browser, while the actual page located on the server is untouched.
Just paste the following lines into the address of your browser and press enter. Start editing the page and then, if you want, save the page using the browser’s “Save page” feature.
javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0
Try it on this page :)
Why could this be useful? Well for bloggers or web designers, this is a very fast way to see how certain text would look like on your page with certain words. Besides editing the text, you can also move any image around.
And if you have a colleague or a friend who’s has a website or blog, open the site on your browser, paste this code, enter words like “HACKED BY BADAZZ”, get a snapshot, email it and say the site has been hacked. That would be funny! Hopefully the laughter will help you get over the punches you’ll receive though.
via blogstorm
8 Responses
Kay Kastum
July 8th, 2008 at 12:18 pm
Comment #1
Hmm.. macam tidak bulih pun.?
Kay Kastum
July 8th, 2008 at 12:23 pm
Comment #2
Hmmm I use the code from the site you found and it works… tapi macam sama jak..?
mrbadak
July 8th, 2008 at 1:59 pm
Comment #3
once u paste and press enter.. u click on any text and type something.. masi nda buli ka?
Kay Kastum
July 8th, 2008 at 2:03 pm
Comment #4
Hmmm if I use your code here cannot work, but the other site can. Is it because yours ada space between the word “javascript: document..”?
SabahanPride
July 8th, 2008 at 3:40 pm
Comment #5
yaaa.. pandai kao ni kay.. haha.. :P
mrbadak
July 8th, 2008 at 3:55 pm
Comment #6
memang pun si Kay pandai, can become a web developer suda dia.
actually, without the space a smiley will appear there, but i tried even with the space in between, ok saja. heck, i’ve disabled the plugin and removed the space, so everything’s good.
Kay Kastum
July 8th, 2008 at 4:06 pm
Comment #7
Don’t play-play. :))
sunsuron
July 9th, 2008 at 3:57 pm
Comment #8
If you can’t most probably because of the smart quote. Get rid of it.
javascript:document.body.contentEditable=true;document.designMode=on;void(0);
RSS feed for comments on this post · TrackBack URI
Leave a reply