- Copy the contents of edit.js, below.
- Visit this page.
- Paste the contents of edit.js into the box labeled "Enter your javascript code here".
- Click "Convert to Bookmarklet".
- Drag the blue button that says "this link" to your bookmarks bar.
- Visit any web page.
- Click on the bookmarklet you created until a dialog appears saying "Content is now editable!"
- Click on the page anywhere and use the cursor to edit the page. Links will be disabled so you can click on them.
- Click on the bookmarklet to turn off editing and make links clickable again.
@ringmaster User
alert()
is strongly not recommended, because user is required to click on it. and it annoys users. Let users enjoy your extra functionality with minimal mouse click count. I recommend using toasts for big apps or avoid using alerts as much as possible or even use console.log().p.s. its more like UX issue, then code mistake, sorry for too strong comment before. Also its nice to get feedback so fast.