-
-
Save szupie/42925 to your computer and use it in GitHub Desktop.
Ubiquity command to show add-ons window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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