public
eriwen / x
Last active

DZone command for Mozilla Ubiquity

  • Download Gist
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
CmdUtils.CreateCommand({
name: "dzone",
homepage: "http://eriwen.com/downloads/dzone-ubiquity.js",
author: { name: "Eric Wendelin", email: "eric@eriwen.com" homepage: "http://eriwen.com/" },
license: "GPL",
description: "Submit the current page to DZone",
help: "Running this command will submit the current page to DZone",
takes: {},
preview: function() {
pblock.innerHTML = 'Submit this page to DZone';
},
execute: function() {
var doc = Application.activeWindow.activeTab.document;
var urlBase = "http://www.dzone.com/links/add.html";
var urlParam = "?url=" + doc.location;
var titleParam = "&title=" + doc.title;
Utils.openUrlInBrowser(urlBase + urlParam + titleParam);
}
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.