Change or Edit any Website inside Browser -JavaScript Hack !!

How would you feel if you could change any web page from within your Browser , just let your imagination run wild and think of what fun it could be, for example you could change your online results to show you as highest scorer in college or make your adsense earning look in millions ( Now Stop imagining !) Let’s do it .

1) Open the  the web page you want to edit.

 

2) In the browser’s address bar, paste this code:

JavaScript:document.body.contentEditable='true'; document.designMode='on'; void 0

3) Now click on the part of the page you want to edit and start changing, deleting and adding text/image .

When you are done , I would not mind you posting your creativity down here in comments (screenshot or something !!)

  • Share/Bookmark

49 Responses to “Change or Edit any Website inside Browser -JavaScript Hack !!”

  1. litu says:

    what is this is it hacking. dont lie ever. it is not possible through this

  2. virendra says:

    this code works,,but we canmt save the changes made by us in the website,,,
    if u have any idea ,,,just tel me how can i save the save the changes…thata i made

  3. ss says:

    vvvvvvvvvvvvvvvvvvvvvvvvvv

  4. ss says:

    sssssssssss

  5. Me says:

    this works but u cant save the changes! :(

  6. araman says:

    How do u save the changes?

  7. smitty says:

    You people are idiots!! Of course you can’t save it. You dumb asses.

  8. bob says:

    It’s possible to save the changes using another trick :
    http://code.google.com/p/lwe/ ;)

  9. Accendrez says:

    this is basic javascript injection hacking.
    for those of you questioning how to “save your changes” I would simply reply that if you don’t know enough javascript, you have no place making any amateur attempts. Along with that, this site has given the implication that this level of hacking is “fun” and “carefree.”
    That is a disturbingly childish take on the matter. If you don’t have the maturity to use your skills responsibility, you don’t deserve them. Of you looking into how to save your changes, have you questioned the reprecautions? No you have not for they don’t have anything to do with you. I bare witness to the common characteristic of highschool freshmen as you do something “cool” and “badass” because you’re “fearless” and “edgy.” I am glad that the author didn’t hand out any dangerous information, but let this be a lesson for all you “cool” prepubescent children. I know you think, “it’s only a website,” but your illegitimate understanding of the inner workings of not only the anthropology, but economy of the internet, misguides you.

    So again, before asking “how do you save the changes?” perhaps you should ask yourself if it’s really worth it? Their is a difference between a soldier and a child with a gun. It is the same with hackers and you all.

  10. araman says:

    Yea..I guess Accendrez is rite….Why try to edit n save someone else’s hardwork??? im positive that i wont like anyone who messes with my site.!

  11. hehe says:

    wow.. umm.. maybe he meant “repercussions” not “reprecautions”? “bear” witness.. for God’s sake, wrong “there”

    I might BE a soldier with a gun, but I know proper grammar and spelling.. good job Mr. “I-know-how-to-use-words-I-don’t-understand”

  12. bob says:

    @accendrez
    Tools like “Live Website Editor” ( http://code.google.com/p/lwe/ ) help you persist the state of modified web pages, but the changes only affect your browsing sessions, not others.
    It’s not some badass-carefree-illegitimate-hacking :)

    Though it can be fun, it is also very handy for these types of people:
    - browsing users who’d like to do some minor visual changes (ie: change some text in the google homepage)
    - people who make screenshots of webapps, for ensuring that real data won’t be displayed in presentations

    Regards,
    bob

  13. Dave says:

    Have you ever heard of windows screenshot? When you visually edit the webpage, take a screenshot, save as a jpg and post it here.

  14. D_triple-7 says:

    The save the changes bit might have something to do with a site that trains hackers…www.hackthissite.org it’s a legal hacker training ground and one of the missions requires the saving of such changes. ^_^

  15. Please, can you PM me and tell me few more thinks about this, I am really fan of your blog…gets solved properly asap.

  16. GreenOrange says:

    lolLOLOOOOOOOOLLLL @ Accendrez
    dont worry everyone, he’s just another 100% NOOB on the hacker scene.

    wait.

    what am i saying?
    the guy has no idea what he’s talking about.

    economy of the internet? dude, wtf…

    this is an f’in joke kid. get a life. this is javascript is javascript. if u have no idea what it does “oh he wants to save it u dont understand i am zen i am jedi i am 1337 h4xx0r” then please stfu.

    this… really pisses me off…

    for all ye ppl who dont know what true haxxordom is, go to phrack.
    if u cant do that, kill urself. using a web browser while not understanding the finesse of search engines (viz. mainly google) may maim or seriously injure you.
    see? that made sense. i know “big” words too. u just make me feel wierd, soo nooby, never seen anything like it…

  17. ob says:

    i did try it did not work

  18. Vivek says:

    It sure works, tested in opera 9+ and Firefox 3+ versions and should work in other browsers too

  19. araman says:

    I definitely think that this is for a fun..sure it works…but who wants to perma-change a website that developers and code specialists made by hours of hard work?????? if u wanna do so……consult a doc….seriously…hw wud u feel if ur site was renamed hoobalo instead of yahoo??!!!!!

  20. in meinem RSS-Reader ein. Help me, please

  21. Levi says:

    Tricked my teacher into giving me A’s

  22. Vivek says:

    @Levi Nice use of this trick buddy , will love to see some more impressive uses

  23. Goran says:

    I turned all my grades to A’s, B’s, and C’s from the original grades I got for messingaround and not doing homework. I only changed it for my parents because we all know, or we should, that it doesn’t get saved. I’ve used this trick before for messing around with friends in school and one time convinced an administrator that local fox news reported that his son had been arrested for drug possession and resisting arrest. I wrote an entire article on the site and watched him run out of the room looking pissed as hell. Childish I admit, but useful for getting school personnel off your back.

  24. Vivek says:

    2->Goran , Clever use I must say, It must had been fun doing that , I tried something similar with my friend’s marks in the college end semester exams and It was fun .

  25. davo says:

    i tryed it, i couldnt get it to do anything. lets see, i went to the site. deleted what was in the address bar, then pasted the code. nothing happened and i couldnt change anything. can somone please help me.

  26. tim says:

    it dosnt work WFT!!!!!!!!!!!!!!!!!!!!

  27. Gibbz says:

    GreenOrange and Accendrez, now thats scary……………. the trick faire to play with around kids!
    chau

  28. Anup says:

    I have used this once!

  29. GreenOrange says:

    o.O
    i dont even remember writing this. actually.. i do. let me make something clear:

    THIS IS NOT HACKING

    this is just changing what you, ie, the client, sees.

    simple dimple. ;)

  30. Vivek says:

    Yes GreenOrange@JoeWilliamTurner , but this is about modifying the default behavior and tinkering into stuff which can be called a hack .. and the process Hacking :)

  31. Fremont says:

    Related Story, twitter got passwords stolen on sunday. I guess no site is uncrackable.

  32. Syn says:

    You have to press enter? copy, paste and enter ._. if you dont know that or you somehow fucked up the code, your loss

  33. EdgeTaken Entertainment says:

    acually you can save it. how do i know? think of it as my misspent youth ^_^! cant remember how but im sure you can google it or something…

  34. matt says:

    To save it press file save as and put .html

  35. Vivek says:

    @Matt you cant save the modified page, the modification is done in the DOM and so the browser does not know how to save it ..

  36. Hi, I found this article while searching for help with JavaScript. I’ve recently switched browsers from Safari to Internet Explorer 7. Now I seem to have a issue with loading JavaScript. Every time I go on a website that needs Javascript, the page freezes and I get a “runtime error javascript.JSException: Unknown name”. I cannot seem to find out how to fix it. Any help is greatly appreciated! Thanks

  37. @Vivek Actually, I just tested (Firefox 3.6), if you choose “View Page Source” from the context menu, it shows the modified version… At least after you leave the design mode via:

    javascript:document.body.contentEditable=’false’; document.designMode=’off’; void 0;

    I surely bet you can copy and paste the “source code” into a new HTML document (notepad is your friend) and save it as page.html, so you can view it later on.
    And well, I guess the only use of that trick is to impress people, nothing else… (be creative ;-) )

  38. pikato says:

    it works for every bloody website its just that i can’t save it on line so if any one knows how to do so, kindly fil me in

  39. Chris says:

    You obviously cant save the changes to the real website because youd be arrested faster then you can read the javascript code.. lol

  40. 1 says:

    JavaScript:document.body.contentEditable=’true’; document.designMode=’on’; void 0

  41. Handsome1 says:

    I didnt pay my phone bill for a month and went to my cell phone companys website and change my page as if i paid it. then printed it out. i then went into my cell phone company and bytched at them for not updated my payment and the changed it!!!!!!!!!!

  42. admin says:

    Well Handsome1, this is misuse of this kind of technique, you can use it as a prank or for fun , but please dont do this illegally , I beg you to acknowledge your social & moral responsibility and not repeat such act in future & so do all others reading this technique..Please..

  43. Arnaud says:

    If you are using Google Chrome, here is a nifty extension that allow not only to edit any web page of any website, but also saves it for any time you choose to return to the page. Yes you read it right: changes persist.

    Its name is “Live Website Editor” and can be found right here:
    https://chrome.google.com/extensions/detail/aimajdllbabbccdcmekjkapemehehmjc

    You’ll find a 40′ seconds demo on the extension page as well.

    What do you think?

  44. admin says:

    Thanks @Arnaud , that was a nice tip & chrome is for sure a great browser

  45. mariosms says:

    pls i will like to learn much from you

  46. lol I made a great one. Got my wife really pissed off at me though. I do not recommend this to any of us married folk.

    Went to the lottery website and changed the winning numbers to the numbers on our ticket. Told the wife to check the numbers and she freaked out and started screaming for joy and almost called to quit her job. I had to put a stop to that so I refreshed the page and now she hates life and me. lol I don’t recommend this. She may be conjuring up a divorce now lol.

  47. Bivy says:

    I can always use another javascript hack. Thanks!

  48. ratedz says:

    Arnaud do you smoke crack live website can only mess with the page yur on.Guess thats what crack does to the brain.

Leave a Reply

You Searched It

javascript edit code (532)how to hack a website and change it (454)javascript code to edit websites (391)how to change a website with javascript (371)javascript website edit code (308)javascript change website (265)javascript to change website (239)javascript hack any website (232)java script code to edit websites (180)website changer (160)how to change any website (134)change any website javascript (129)change any website (127)code to change websites (120)javascript edit website (112)how to change websites with javascript (111)change websites with javascript (110)change website javascript (103)change a website with javascript (102)javascript code to change websites (95) 10,808 views