How to enable Firefox Plug-in Options button?

In Firefox, if you go to Tools → Add-ons, each has an Options button in the list of extensions. I would like to enable this for my extension and take the browser to a webpage where they can set options related to my extension. The extension is an XPCOM extension, so if I can just register for a callback on a button click, that would be perfect.

Any advice is appreciated.

0


a source to share


2 answers


The options (or preferences) button in the Firefox Add-ons window is controlled by a tag <em:optionsURL/>

(or attribute em:optionsURL

in <RDF:description/>

) in the install.rdf extension.

More information on em:optionsURL

developer.mozilla.org:



https://developer.mozilla.org/en/Install_Manifests#optionsURL
https://developer.mozilla.org/en/Adding_preferences_to_an_extension

+2


a source


install.rdf
......
<em:optionsType>3</em:optionsType>
<em:optionsURL>resource://@UserAgentChanger/options.htm</em:optionsURL>
......

      



0


a source







All Articles