Skip to content

Instantly share code, notes, and snippets.

@szupie
Created January 3, 2009 20:27
Show Gist options
  • Save szupie/42925 to your computer and use it in GitHub Desktop.
Save szupie/42925 to your computer and use it in GitHub Desktop.
Ubiquity command to show add-ons window
CmdUtils.CreateCommand({
names: ["open add-ons window", "open addons window"],
description: "Opens the Add-ons window",
icon: "chrome://mozapps/skin/xpinstall/xpinstallItemGeneric.png",
author: { name: "szupie", email: "szupie@gmail.com"},
preview: function(pblock) {
pblock.innerHTML = "Opens the Add-ons window";
},
execute: function(object) {
const EMURL = "chrome://mozapps/content/extensions/extensions.xul";
const EMFEATURES = "chrome,toolbar,dialog=no,resizable";
Utils.currentChromeWindow.openDialog(EMURL, "", EMFEATURES);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment