Skip to content

Instantly share code, notes, and snippets.

@hayamiz
Created September 2, 2008 16:03
Show Gist options
  • Save hayamiz/8423 to your computer and use it in GitHub Desktop.
Save hayamiz/8423 to your computer and use it in GitHub Desktop.
// Ubiquity plugin
// delicious
CmdUtils.CreateCommand({
name: "delicious",
icon: "http://delicious.com/favicon.ico",
author: {name: "Y. Hayamizu", email: "y.hayamizu@gmail.com"},
description: "An Ubiquity plugin for bookmarking on delicious",
takes: {notes: noun_arb_text},
execute: function(directObject){
var notes = directObject.text;
f = 'http://delicious.com/save?url='
+ encodeURIComponent(Application.activeWindow.activeTab.uri.spec)
+ '&title='
+ encodeURIComponent(window.document.title)
+ '&notes='
+ encodeURIComponent(notes)
+ '&v=5&';
Utils.openUrlInBrowser(f);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment