We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS



Returns a sidebar object, which contains several methods for registering add-ons with browser.


window.sidebar.addPanel("Google", "http://www.google.com/", "");

Note: the third empty parameter is required!


The sidebar object returned has the following methods:

Method Description
addPanel(title, contentURL, customizeURL) 已废弃 Gecko 23 Adds a sidebar panel. See Creating a Firefox sidebar for details on sidebars in Firefox 2 and later.
addPersistentPanel(title, contentURL, customizeURL) 已废弃 Gecko 23 Adds a sidebar panel, which is able to work in the background. This only works in SeaMonkey or Firefox 1.x; Firefox 2 and later will just do addPanel().
addSearchEngine(engineURL, iconURL, suggestedTitle, suggestedCategory) Installs a search engine. See Adding search engines from web pages for details.
addMicrosummaryGenerator(generatorURL) 已废弃 Gecko 6 Installs a microsummary generator.


Mozilla-specific. Not part of any standard.


此页面的贡献者: ziyunfei, felix_wang
最后编辑者: felix_wang,