加载解压后的扩展对 Firefox 不起作用

Loading unpacked extensions doesn't work Firefox

"This addon could not be installed because it appears to be corrupt"

我在安装解压缩的扩展程序时遇到上述错误。 我只是使用 Winrar 解压缩扩展,然后将文件夹拖到 Firefox addon/extension 页面。

加上压缩到 addon.xpi 也不起作用。

我的目标:我正在编辑一个扩展以满足我的需要,但它似乎不起作用。

我假设 Firefox 有一些 kindoff 签名或其他东西,我如何禁用它或编辑扩展以满足要求。

我是运行58.0(64位)

使用调试(Mozilla about:debugging)加载扩展时出现以下错误

edited.xpioriginal.xpi 都有错误。 (但是 edited.xpi 通过 load temporary extension 加载,但不会为拖动方法加载。)

Reading manifest: Error processing background.persistent: Event pages are not currently supported. This will run as a persistent background page.
Reading manifest: Error processing permissions.4: Value "identity.email" must either: must either [must either [be one of ["clipboardRead", "clipboardWrite", "geolocation", "idle", "notifications"], be one of ["bookmarks"], be one of ["find"], be one of ["history"], be one of ["activeTab", "tabs"], be one of ["browserSettings"], be one of ["cookies"], be one of ["topSites"], be one of ["webNavigation"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["browsingData"], be one of ["devtools"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["pkcs11"], be one of ["geckoProfiler"], be one of ["sessions"], be one of ["contextualIdentities"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], be one of ["theme"], or match the pattern /^experiments(\.\w+)+$/], or must either [be one of ["<all_urls>"], match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/]
Reading manifest: Error processing oauth2: An unexpected property was found in the WebExtension manifest.
Reading manifest: Error processing options_page: An unexpected property was found in the WebExtension manifest.

这是来自浏览器控制台的错误:

          1516983623806 addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing background.persistent: Event pages are not currently supported. This will run as a persistent background page.
1516983623811   addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing permissions.4: Value "identity.email" must either: must either [must either [be one of ["clipboardRead", "clipboardWrite", "geolocation", "idle", "notifications"], be one of ["bookmarks"], be one of ["find"], be one of ["history"], be one of ["activeTab", "tabs"], be one of ["browserSettings"], be one of ["cookies"], be one of ["topSites"], be one of ["webNavigation"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["browsingData"], be one of ["devtools"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["pkcs11"], be one of ["geckoProfiler"], be one of ["sessions"], be one of ["contextualIdentities"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], be one of ["theme"], or match the pattern /^experiments(\.\w+)+$/], or must either [be one of ["<all_urls>"], match the pattern /^(https?|wss?|file|ftp|\*):\/\/(\*|\*\.[^*/]+|[^*/]+)\/.*$/, or match the pattern /^file:\/\/\/.*$/]
1516983623812   addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing oauth2: An unexpected property was found in the WebExtension manifest.
1516983623812   addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Error processing options_page: An unexpected property was found in the WebExtension manifest.
1516983623816   addons.xpi  WARN    Please specify whether you want browser_style or not in your options_ui options.
1516983623829   addons.xpi  WARN    Add-on {487609b5-5ca6-4c62-8523-11f3e1db851c} is not correctly signed.
1516983623830   addons.xpi  WARN    Add-on {487609b5-5ca6-4c62-8523-11f3e1db851c} is not correctly signed.
1516983623830   addons.xpi  WARN    Invalid XPI: signature verification failed

希望有一个解决方案,可以在不通过临时方法安装的情况下安装扩展。

  • 在浏览器控制台(而非 Web 控制台)中查找与您加载的插件相关的错误。
  • 您尝试过使用 about:debugging 吗?
  • 在 Firefox Nightly 中,您可以通过在 about:config 中将 xpinstall.signatures.required 设置为 false 来禁用签名。出于安全原因,这在其他版本上无效。