Pretend to Hack a Website
For a prank, you can pretend to hack a website. The methods given here do not affect the website content; what you change is only visible on your computer. As soon as the pages is refreshed, it will all be back to normal.
Steps
First Method
- Go to the page you want to hack. Wait for it to be loaded fully. If you do it before, it will only edit what has already loaded.
- Copy this code into the URL bar:
- javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
- Hit Stop. If it worked correctly, the links will have turned into a more saturated blue color, and when you click somewhere you'll be able to edit text.
- Edit. You can change text by highlighting it and typing. You can stretch or delete images just by clicking on them. Or, you can just highlight the whole page and hit delete.
- Type the following code to make the page uneditable again:
- javascript: document.body.contentEditable = 'false'; document.designMode = 'off'; void 1
- Once you have made the page uneditable again, left-click in the URL Bar and press ESC. This will reset the URL to the page you are on, making it look authentic. Or, you can open another tab and go back to the edited page!
Bookmark Method
- Create a new bookmark. For the URL put this: --> javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0 <-- Then save the bookmark as (for example) "edit page".
- Create a second bookmark. For the URL put this: --> javascript: document.body.contentEditable = 'false'; document.designMode = 'off'; void 1 <-- Save it as (for example) "End Editing".
- Click on the "edit page" bookmark to edit the page you are on. Click the "End Editing" bookmark to make the site appear to be authentic.
Tips
- You can use this technique to remove ads.
- This can be a good way to prank friends!
- You should have JavaScript enabled to do this. If you do not, you can simply enable it in your browser preferences.
Related Articles
- Hack-Windows