I've been searching far and wide through the web for some tiny bit of light, but found nothing. I need to create a Firefox extension that, among a few other things, changes the value of one of the about:config variables. None of the tutorials I've found covers that issue, so I don't know where to start. Can anyone throw me a link, or some lines of code or explanation, just to help me get started? Thanks in advance.
Opening about:configType about:config in the address bar and press Enter. A warning page may appear. Click Accept the Risk and Continue to go to the about:config page. Click Show All to view all preferences currently set in the profile or use the Search preference name box to filter the list.
Let users show their personality: Browser extensions can manipulate the content of web pages; for example, letting users add their favorite logo or picture as a background to every page they visit. Extensions may also enable users to update the look of the Firefox UI, the same way standalone theme add-ons do.
Not possible, details in Is it possible to create a Firefox WebExtension that changes about:config settings? How?
The about:config values are accessed via the preferences system. The reason you preface your extension's prefs with extensions.myextension is because you need to make sure you don't collide with Firefox's or another extension's preferences.
To get a firefox preference just use the same preference name as you see in about:config. If you notice, you'll see that you also see all of the extension prefs in about:config too.
https://developer.mozilla.org/en/XUL_School/Handling_Preferences * https://developer.mozilla.org/en/Code_snippets/Preferences
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With