[Greasemonkey] A Google/del.icio.us userscript idea

Lenny Domnitser ldrhcp at gmail.com
Wed Nov 9 16:05:09 EST 2005


On 11/9/05, Dan Phiffer <dan at phiffer.org> wrote:
> Use case: I search for "tuna sandwich" and Google brings up http://
> www.starkist.com/recipes/sandwiches/classictuna.html among a host of
> other tuna-related links. A Greasemonkey script pays attention to
> which link I click on and upon the click event, bookmarks this page
> with the tags "tuna" and "sandwich".

Very clever. I don't see why this has to be Greasemonkey, though.
Here's my new ">del.icio.us" bookmarklet (unbreak the lines):

javascript:var t,q=document.referrer.match(/q=([^&]+)/);
if(q){t='&tags='+q[1];}else{t=''}location.href=
'http://del.icio.us/ldrhcp?url='+encodeURIComponent(location.href)+
'&title='+encodeURIComponent(document.title)+t;


More information about the Greasemonkey mailing list