Crul, (edited )

Not that I’m aware of. I think they are so simple that there isn’t very much to say about them. They are just plain javascript that works as if you typed it on the console. Although, there a couple of tricky things.

EDIT: I’m not saying javascript is simple. Bookmarklets can be very complex, but that’s just javascript. If you know how to do it on the browser console, you just need to write it in a one-liner and it will work as a bookmark (with the caveats that I talk about later).

For the basics, see this article: What are Bookmarklets? How to Use JavaScript to Make a Bookmarklet in Chromium and Firefox

If you follow that post, there will be no problem. But you will have issues if you don’t use the “auto-executed anonymous function” wrapper.

And, as the post says, you need to write all semicolons and brackets { } to avoid funny things when removing line breaks.

EDIT-2: I forgot to mention the %s part, I think that’s not its intended use. I know it from keyworded regular-non-js bookmarks used for searches. See Using keyword searches - MozillaZine Knowledge Base. The great part is that it also works with bookmarklets :).

The other tricky part is the inconvenience of editing them after some time if you don’t have a pretty-formatted version. I’ve been able to hack a script to read bookmarklets from Firefox places DB, pretty-format, open in VIM and re-convert them to one-liners after the edition. I wasn’t able to save them automatically to Firefox because some secure-hash stauff, so I still need to copy-paste them manuall at the end.

See this post: Script for easy bookmarklet edition [Windows] : firefox

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • SuperSentai
  • feritale
  • Testmaggi
  • KbinCafe
  • Ask_kbincafe
  • TheResearchGuardian
  • KamenRider
  • All magazines