- 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.
@viliusle why is using
alert()
a mistake?