Create a gist now

Instantly share code, notes, and snippets.

@eriwen /x
Created Apr 17, 2009

What would you like to do?
DZone command for Mozilla Ubiquity
name: "dzone",
homepage: "",
author: { name: "Eric Wendelin", email: "" homepage: "" },
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 = "";
var urlParam = "?url=" + doc.location;
var titleParam = "&title=" + doc.title;
Utils.openUrlInBrowser(urlBase + urlParam + titleParam);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment