My extended del.icio.us post bookmarklet for Firefox

Don't panic, I won't join the masses in praising del.icio.us for it's greatness. I have just used it for quite some time now and got slightly addicted to it. Of course I don't use it without any alterations to the standard workflow — that would be dishonourable for any programmer. One thing that I use almost daily is an extended post bookmarklet. It differs from the default posting bookmarklet mainly in these aspects:

  • Selected text get's quoted and inserted into the extended description. Thus, if you select two words on a page and click the post bookmarklet, the extended description will be "two words", including the quotes.
  • If no text is selected, the bookmarklet tries to find a page description in the HTML meta information. If something usefull is found, it get's used as the extended description.
  • Exceptions are caught and displayed as an alert. Sometimes the JavaScript functions used to get text properties are blocked by security features of your browser. If this happens, the results are displayed and the bookmarklet continues to do it's job.

Feel free to use this bookmarklet. Updated will be announced at this page. To use this bookmarklet you will need to create a bookmark with the following link. One of several ways to do that is to simply drag it to your bookmarks toolbar:

del.icio.us post Version 1.1

Update: Fixed the quotation. Now you should get the complete bookmarklet when copying it.

Additional note: Of course, if you want to use the bookmarklet, you will have to replace my del.icio.us username with yours after copying it. To do that, drag and drop the link to your bookmarks toolbar, right click the newly created bookmark and choose "Properties". In the properties dialog, find the name "rompe" in the bookmark address (it's near the end) and replace it with your username. Press "OK". That's it!