Delicious bookmarklet in new foreground window

For bookmarking I use the delicious bookmarklet. It’s a nice tool, but I was always annoyed by the bookmarking interface opening in the same tab. I made some slight changes to the javascript so that opens in a new window on the foreground (inspired by a blog post on The Plug Automatic). It allows me to still see the website while I bookmark it. If I want to copy a sentence or look for tag ideas on the bookmarked page I can still do so, without loosing everything I already entered in the form.

Here is the code:

javascript: (function(){ d=document; te=getSelection()+''; t=encodeURIComponent(te); u=encodeURIComponent(d.location.href); ti=encodeURIComponent(d.title); w=open('http://del.icio.us/new/CHANGEME?v=4&jump=close&url='+u+'&extended='+t+'&title='+ti,'delicious','location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=800,height=850,modal=yes,dependent=yes'); setTimeout('w.focus()',1000) })();

To adapt it for your use, just drag and drop this link: “Add to del.icio.us” to your toolbar and replace “CHANGEME” by your delicious username. Simple but useful ;)

Update : Added a trick to close the window automatically after submitting (found on Hugo’s Blog)


About this entry