Is it possible to create a Firefox WebExtension that changes about:config settings? How?
Asked Answered
A

1

4

I would like to create a WebExtension that provides toggle buttons for some of the settings in about:config (e.g. permissions.default.image).

  • Is it possible to do this in WebExtensions?
  • If so, what is the API?

I belive that this question predates WebExtensions: A Firefox extension that changes a value in the about:config

This question is actually about print dialogs: Is it possible to set config settings on Firefox from a Addon

Anglocatholic answered 25/4, 2018 at 13:16 Comment(0)
G
8

This is not possible. Your best bet is to open a page informing your users of what they need to do in order to use your extension.

A limited amount of preferences is available in browserSettings and privacy.

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/browserSettings https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/privacy

You could also write a native messaging program which changes the preferences on disk level. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging

Garment answered 25/4, 2018 at 14:8 Comment(1)
Not only browserSettings, but also privacy provides BrowserSetting objects.Antoineantoinetta

© 2022 - 2024 — McMap. All rights reserved.