Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change firefox preferences (about:config) using the new WebExtensions api?

To change the settings (about:config) with the old API you would simply do:

require('sdk/preferences/service').set('media.webrtc.debug.multi_log', true);

I can't find anything on the subject for the new WebExtensions add-ons of Firefox. Is it not available yet?

like image 848
Arman Avatar asked May 15 '16 17:05

Arman


People also ask

How do I change about config in Firefox?

Type 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.

How do I access Firefox Preferences?

To access the Preferences window, navigate to Tools → Options on Windows, Edit → Preferences on Linux, or Firefox → Preferences on OS X.

Where are Firefox extension settings stored?

Most add-on data is stored in a folder in the Firefox user profile. However, some information is stored in the profile folder also. It's possible that there is a problem with the file(s) that store the extensions registry. Type about:support in the address bar and press enter.


1 Answers

This is not possible, and likely, never will be.

Source: official WebExtensions FAQ https://wiki.mozilla.org/WebExtensions/FAQ#Will_I_have_access_to_about:config_or_the_preferences.3F

Also, you might be interested in this discussion on mozilla-community.org: https://discourse.mozilla-community.org/t/webextension-read-write-access-to-about-config/12268

like image 74
Tim Avatar answered Nov 01 '22 07:11

Tim