Del.icio.us bookmarklet that opens in new tab (or window)

Written . Tagged Bookmarklets, JavaScript.

I assume this has been done many times before, but a quick google didn’t turn it up, so I’ll blog it.

This is a very slight modification of the “official” del.icio.us bookmarklet, that opens the submission page in a new tab (or a new window, depending on your browser settings): Add to del.icio.us

I want it in a new tab because I often decide to bookmark things when in the middle of reading them, and so having the page replaced with the submission page is annoying.

The code is simply:

1
void(window.open('http://del.icio.us/post?v=4;url='+encodeURIComponent(location.href)+';title='+encodeURIComponent(document.title)))