It turns out that you can put JavaScript in bookmarks just by making the "protocol" part of the URL "javascript".
These bookmarks can consequently be used as a kind of macro to extend the surf and search capabilities of WebBrowsers. Things that bookmarklets can do include: