最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is it possible to create a Firefox WebExtension that changes about:config settings? How? - Stack Overflow

programmeradmin1浏览0评论

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

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

Share Improve this question asked Apr 25, 2018 at 13:16 sdgfsdhsdgfsdh 37.3k31 gold badges161 silver badges291 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 9

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/en-US/Add-ons/WebExtensions/API/browserSettings https://developer.mozilla/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/en-US/Add-ons/WebExtensions/Native_messaging

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论