Search code examples
javascriptfirefoxfirefox-addonfirefox-addon-sdkmozilla

Mozilla "add on" sdk, simple-pref module, dynamic options (options that depend on previous options)


I wrote a Firefox add-on using the Mozilla add-on SDK that changes the color of certain websites based on their category. I have four categories, and 10 websites in each. I would like an radio option to be the first preference, and then the following preferences be dependent on whether the first preference is category 1, category 2, etc, etc. Is this possible with simple-pref? I cannot find any add-on sdk tutorials online besides Mozillas documentation (which is very sparse)


Solution

  • That is not possible. Simple-prefs are static. You'd have to create your own html site and open that with a button from simple-prefs for a dynamic preferences interface for example.