goetz..  buerkle

Posting links to del.icio.us with Opera

Who does not want to read long texts could jump directly to the button, to the sourcecode or to the bookmarklet.

Currently I am working on an update for this page (new screenshots with Opera 9.5 and the new Delicious).

In case you are using OOpera and Mento you may look for Posting links to Mento with Opera.


If you are using OOpera and del.icio.usdel.icio.us you probably looked for the same small script I looked for some time. Unfortunately I found some buttons at del.icio.usdel.icio.us/help/buttons and even more at del.icio.usdel.icio.us/help/morebuttons, but all I found there was not exactly what I needed.

I wanted to have something similar to the MozillaFirefox extension provided by del.icio.us. More detailed I wanted a button in my Opera, that opens a small pop-up window and fills out the URL field with the current URL, the description field with the current page title and the notes field with some text that maybe currently selected in the document I want to post to del.icio.us. After posting the pop-up should just close itself.

When I read HeraldA Firefox Lover's Guide to Opera I stumbled across Del.icio.us Opera Buttons, which looked quite good, but didn't match my requirements.

Then I thought about extending these buttons to get what I wanted to have. I already began to read at Introduction to Range something about the interesting part of my requirements, which is accessing selected text using JavaScript.
But then, when looking for more del.icio.us scripts I found BBetter posting to del.icio.us and also bookmarking non-URL file locations. That also was not exactly what I was looking for, but it provided the part I needed to extend the other script.

My next step was to merge some parts of all the different scripts together to create my new del.icio.us button:
post to del.icio.uspost to del.icio.us
(to install the button just drag the link up to your personal bar)


Sourcecode

opera:/button/Go%20to%20page,
%22javascript:loc=location.href;
  title=document.title;
  notes=window.getSelection();
  void(
    open('http://del.icio.us/post?v=4;noui=yes;jump=close;url='+encodeURIComponent(loc)+
      ';title='+encodeURIComponent(title)+
      ';notes='+encodeURIComponent(notes),
      'delicious','toolbar=no,width=700,height=400')
  );
%22,,%22post%20to%20del.icio.us%22,Compose%20mail


Screenshots

del.icio.us/help/thirdpartytools
del.icio.us/help/thirdpartytools opened in an Opera window, "For Opera" selected.
button highlighted
The "post to del.icio.us" button and the corresponding tooltip are highlighted.
Popup
After clicking the button this popup opens. The selected text "For Opera" is highlighted both on the page and in the notes field.


Bookmarklet

For everyone who is not using Opera but want to use this small JavaScript bookmarklet as well, or if you just want to test the script, you could take a look at this link (same source as above, but without the Opera specific parts):
post to del.icio.us

(This page in German)




zuletzt geändert von Götz Bürkle am 14.08.2008 ..

© Copyright 2004-2007 by Götz Bürkle | powered by Bürkle Services | .. suchen | .. impressum