A few years ago, bookmarklets (or favlets) were a lot more common than they are now. Most of their common features were either implemented in browsers or turned into extensions.
At times, they still remain the easiest way to quickly extend a browser’s functionality without having to find an extension.
This is also a solution that works across all major browsers, be it Safari, Firefox or any Chromium based browsers.
Creating a bookmarklet
There are 3 ways to create a bookmarklet:
- Using the
- Directly calling a native function:
Sharing a bookmarklet
Bookmarklets can be shared in two ways:
- Manually adding the bookmarklet to your browser’s bookmarks
- Creating an HTML link as follows that can be dragged into the bookmark bar:
Bookmarklets are generally minified into a single line of code to be embedded in your HTML.
Examples of bookmarklets
Open the current page in the site archive.ph to bypass paywalls or archive it:
Open the current page in the Wayback Machine:
Scroll to the top of the page:
Enter edit mode: