diff --git a/common/modules/config.jsm b/common/modules/config.jsm index f2a632ca..c3cce1e8 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -51,6 +51,24 @@ var ConfigBase = Class("ConfigBase", { Local: function Local(dactyl, modules, window) let ({modes} = modules) ({ + init: function init() { + + let append = + + + ; + for each (let [id, [name, key, uri]] in Iterator(this.sidebars)) { + append.XUL::menupopup[0].* += + + append.XUL::broadcasterset[0].* += + + } + + util.overlayWindow(window, { append: append.elements() }); + }, get browser() window.gBrowser, get tabbrowser() window.gBrowser, diff --git a/pentadactyl/content/config.js b/pentadactyl/content/config.js index f8ca97fa..29c94b07 100644 --- a/pentadactyl/content/config.js +++ b/pentadactyl/content/config.js @@ -16,51 +16,6 @@ var Config = Module("config", ConfigBase, { Local: function Local(dactyl, modules, window) let ({ config } = modules) ({ - init: function init() { - init.superapply(this, arguments); - - util.overlayWindow(window, { - append: - - - - - - - - - - - - - - .elements() - }); - }, dialogs: { about: ["About Firefox", @@ -200,6 +155,13 @@ var Config = Module("config", ConfigBase, { "sanitizer", "tabs" ], + + sidebars: { + viewAddons: ["Add-ons", "A", "chrome://mozapps/content/extensions/extensions.xul"], + viewConsole: ["Console", "C", "chrome://global/content/console.xul"], + viewDownloads: ["Downloads", "D", "chrome://mozapps/content/downloads/downloads.xul"], + viewPreferences: ["Preferences", "P", "about:config"] + } }, { }, { commands: function (dactyl, modules, window) {