赞
踩
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:
- /*Enable userChrome.js */
- /* Copyright (c) 2017 Haggai Nuchi
- Available for use under the MIT License:
- https://opensource.org/licenses/MIT
- */
-
- @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
-
- toolbarbutton#alltabs-button {
- -moz-binding: url("userChrome.xml#js");
- }
You will need userChrome.xml
(slightly modified from the version available in Haggai Nuchi's GitHub repository):
- <?xml version="1.0"?>
- <!-- Copyright (c) 2017 Haggai Nuchi
- Available for use under the MIT License:
- http
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。