搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to automatically configure custom extension in Mozilla Firefox 91.4.0esr.

  • 無回覆
  • 3 有這個問題
  • 10 次檢視
more options

Hello all,

I've been trying to automatically configure the Firefox to start with the custom extension, but with no success. The extension is working if I select the manifest.json from the about:debugging temporary add button. Or when I try to upload the xpi file from my computer. The environment that I'm currently working on is Linux with RedHat distribution 7.9.

I have he following configuration directories:

  • Bulleted list item /usr/lib64/firefox/defaults/pref/autoconfig.js which contains the following properties(pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);

pref("general.config.obscure_value", 0); pref("general.config.filename", "firefox.cfg");

  • Bulleted list item /usr/lib64/firefox/firefox.cfg which contains the following properties:

pref("extensions.autoDisableScopes", 0); pref("extensions.enabledScopes", 15);

The custom extensions is packed in an .xpi file which is located in /home/<user>/.mozilla/extensions/preventrightclick/preventrightclick.xpi

The content of the preventrightclick.xpi is in the images below. I've tried multiple locations for this xpi in order to be automatically installed, such as: /usr/share/mozilla/extensions/preventrightclick/preventrightclick.xpi /home/<user>/.mozilla/firefox/<profileId>/extensions/preventrightclick.xpi Nothing worked, strange is that the extensions can be installed manually.

If you have any clues, or what could I try, please let me know. Thanks!

Hello all, I've been trying to automatically configure the Firefox to start with the custom extension, but with no success. The extension is working if I select the manifest.json from the about:debugging temporary add button. Or when I try to upload the xpi file from my computer. The environment that I'm currently working on is Linux with RedHat distribution 7.9. I have he following configuration directories: * Bulleted list item /usr/lib64/firefox/defaults/pref/autoconfig.js which contains the following properties(pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); pref("general.config.obscure_value", 0); pref("general.config.filename", "firefox.cfg"); * Bulleted list item /usr/lib64/firefox/firefox.cfg which contains the following properties: pref("extensions.autoDisableScopes", 0); pref("extensions.enabledScopes", 15); The custom extensions is packed in an .xpi file which is located in /home/<user>/.mozilla/extensions/preventrightclick/preventrightclick.xpi The content of the preventrightclick.xpi is in the images below. I've tried multiple locations for this xpi in order to be automatically installed, such as: /usr/share/mozilla/extensions/preventrightclick/preventrightclick.xpi /home/<user>/.mozilla/firefox/<profileId>/extensions/preventrightclick.xpi Nothing worked, strange is that the extensions can be installed manually. If you have any clues, or what could I try, please let me know. Thanks!
附加的畫面擷圖