当前位置:   article > 正文

2019年,禁止firefox新老版本强制校验扩展签名_火狐浏览器旧版签名

火狐浏览器旧版签名

Disable add-on signing check in Release (all) versions of Firefox

Firefox version 65+ (or so)

The following instructions will disable signature checking on Firefox for the Firefox profile in which you install the files. You are going to be adding some files to the chrome directory under your Firefox Profile directory.

I've tested this on Firefox 66.0.3+.

IIRC, some slightly different code was needed for Firefox 65, I believe I left that code in disable-add-on-signing.js when I modified it for Firefox 66, but I'm not sure about that.

We're going to use a technique which allows you to run arbitrary JavaScript code in the browser context from files stored in your Firefox profile directory. I found how to do this from Haggai Nuchi's GitHub repository: Firefox Quantum compatible userChrome.js.

On Windows, your Firefox profile directory will be %appdata%\Mozilla\Firefox\Profiles\[profileID]. If you have only one profile, the [profileID] will be the only directory in the %appdata%\Mozilla\Firefox\Profiles directory. If you have multiple profiles, you will need to select the one(s) you want to install this hack into.

Once you get to your profile directory, your will need to create a directory called chrome, if it does not already exist. You will be adding the 3 files below to that directory:

  • userChrome.css
  • userChrome.xml
  • disable-add-on-signing.js

You will then need the following code in userChrome.css, which is available from Haggai Nuchi's GitHub repository:

  1. /*Enable userChrome.js */
  2. /* Copyright (c) 2017 Haggai Nuchi
  3. Available for use under the MIT License:
  4. https://opensource.org/licenses/MIT
  5. */
  6. @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  7. toolbarbutton#alltabs-button {
  8. -moz-binding: url("userChrome.xml#js");
  9. }

You will need userChrome.xml (slightly modified from the version available in Haggai Nuchi's GitHub repository):

  1. <?xml version="1.0"?>
  2. <!-- Copyright (c) 2017 Haggai Nuchi
  3. Available for use under the MIT License:
  4. http
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/308874
推荐阅读
相关标签
  

闽ICP备14008679号