Usually you want to ask something on the Web, you will take a screenshot, then use the image editing tool to draw arrows and notes. Then send it to someone else to wait for a reply. It gets more complicated if you don’t have photo editing and note taking tools. With the way below, with just 1 piece of code, you will easily change the content of any Website to your liking and take a picture. This is also a trick to make Fake News prank your friends.
Join the channel Telegram belong to AnonyViet 👉 Link 👈 |
How to change the content of any Website with 1 line of Code
Instead of pressing F12 click on each content, then search for the element to change. Then this code will help you simplify a lot.
javascript:document.body.contentEditable="true"; document.designMode="on"; void 0
This script allows you to edit text content on any Website.
How to use Code to edit Website content
Step 1: Go to the Website you want to edit the content.
Step 2: Press F12select via Console tab. Paste the code above and press Enter.
Step 3: Return to the main interface of the Website. Friend Click on the position you want to change content of that Website. You can highlight, delete, add text as you like to change the content on a normal text editor.
Quick tip on all Websites.
To make the line of code faster, you can save it to your browser’s Bookmark.
Step 1: Click Ctrl + Shift + CANCEL to display the Bookmarks Bar
Step 2: Right-click on the Bookmarks Bar and select Add Page
The screen will display the content you need to create Bookmark:
- Name: name as you like. Example: Edit Website
- URL: paste the code above and press Save
Now on your Bookmark bar there will be a Bookmark named Edit Website. You just need to go to the Website you want to edit the content and Click on Edit Website just created. Then make changes to the content. Don’t have to press F12 for each Webstie half way.
This is just a fun trick for you to know more JavaScript code. After editing, if you close the browser or press F5 to reload the page, the content will return to the way it was.