Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@eriwen /x

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
Something went wrong with that request. Please try again.