Computer Science Canada

A bit of javascript editing.

Author:  WOIKeller [ Sun Jul 19, 2009 1:12 pm ]
Post subject:  A bit of javascript editing.

code:
javascript /:document.body.contentEditable='true';%20document.designMode='on';%20void%200

code:
javascript /:document.body.contentEditable='false';%20document.designMode='off';%20void%200


Copy and paste this code into your URL bar of your browser to have some fun editing ANY website. Now keep in mind that this doesn't actually save the changes but it dose let you have a heck of a lot of fun with websites. Try it on CompSci for instance.

P.S. Just as a side note the first turns it on and the second turns it off. As well remove the " /" after javascript for it to work.

P.P.S. I have only tested this with FireFox but it 'Should' work on any major browser.

Author:  Tony [ Sun Jul 19, 2009 1:45 pm ]
Post subject:  RE:A bit of javascript editing.

Why not just use Firebug or similar dev tools in WebKit?

Author:  DtY [ Mon Jul 20, 2009 11:24 am ]
Post subject:  Re: A bit of javascript editing.

WOIKeller @ Sun Jul 19, 2009 1:12 pm wrote:
P.P.S. I have only tested this with FireFox but it 'Should' work on any major browser.

It only works in netscape based browsers

Author:  andrew. [ Mon Jul 20, 2009 12:58 pm ]
Post subject:  RE:A bit of javascript editing.

Doesn't work for me. I tried it with Firefox 3.5 and Safari 4.0.2 on Mac and it doesn't work. It just brings up that stupid Rogers 404 search page. God, I hate Rogers, but at least it's better than Bell (where I live).

Author:  Aziz [ Mon Jul 20, 2009 1:32 pm ]
Post subject:  Re: RE:A bit of javascript editing.

Tony @ Sun Jul 19, 2009 2:45 pm wrote:
Why not just use Firebug or similar dev tools in WebKit?


Firebug is the best tool for this. Edit HTML, CSS, and script. Great for dev AND trying to break/hack your pages!

Author:  WOIKeller [ Tue Jul 21, 2009 9:23 pm ]
Post subject:  RE:A bit of javascript editing.

I guess Firebug would work better then that but it seems rather cool to be able to do some fun editing with some simple java script.


: