Little Fighter Empire - Forums
Javascript code edit - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: General Zone (https://lf-empire.de/forum/forumdisplay.php?fid=23)
+--- Forum: Programming (https://lf-empire.de/forum/forumdisplay.php?fid=50)
+--- Thread: Javascript code edit (/showthread.php?tid=4898)



Javascript code edit - ethanara - 04-27-2010

i learned this thing from one of my friends.
go to a site, for example google.com
then delete google.com in the adress bar and paste this little code in:
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0

then you can edit the whole site, but you friend cant see it if he goes on google
if you wouldnt do that anymore goto google.com again

one of my friends tried this on google while we talked in skype, and he got a little shock and said "ups, i deleted google!"


RE: Javascript code edit - Alblaka - 04-27-2010

You know, you're not editing Google, but just what your browser is showing atm?

What you just said is like "Hey, i take the newspaper, paint it black and HEY IT'S BLACK!"

HEY I lol'd ;D - Simoneon


RE: Javascript code edit - Som1Lse - 04-27-2010

Delete the "document.designMode = 'on';" part. It only causes trouble.
And use "javascript: document.body.contentEditable = 'false'; void 0".
To go back to the normal webpage.