How do Bookmarklets work?
This tells the browser that it's not a standard URL.
Copy a frequently used string to the clipboard
Fetch data from an api
we can also use this to fetch data from an api, and display it in the console.
As you can see, the code is one-liner. This is because bookmarklets don't support multi-line code.
Take in mind that you can use the
; to separate multiple statements.
Expanding Your Bookmarklet Library
The power of bookmarklets is limited only by your imagination. You can automate numerous tasks that you frequently perform on your browser. For more ideas and inspiration, check out these repositories: