A bookmarklet is a bookmark whose URL starts with javascript:. They are
handy for automating repeatable actions.
Using them normally requires mouse navigation, which is not always straightforward.
Hacklets collects every javascript: bookmark in your bookmark store and
surfaces it in the commands palette. Type its name, press Enter,
and the bookmarklet runs against the current page.
A quick example
The following bookmarklet displays an alert dialog:
javascript:alert('Hello')
However, as bookmarklets become more complex, updating them via the bookmark manager becomes difficult. Hacklets offers a Script Editor that makes editing a breeze.
What you can do
- Search them — bookmarklets appear in the commands palette like any other command, with your other scripts and built-ins.
- Run them anywhere — a bookmarklet runs on whichever page is active, reading the page’s DOM and JavaScript.
- Edit them — bookmarklets open in the Script Editor where you can change the code and save straight back to your bookmarks.
- Create new ones — write a new bookmarklet from scratch in the script editor and it’s added to your bookmarks, immediately searchable.
Press Cmd+Shift+P, search for your bookmarklet, and run it.
Related
- Script Editor — create and edit bookmarklets.
- Scripts — run local folder scripts the same way.