火星守望者
精华
|
战斗力 鹅
|
回帖 0
注册时间 2012-6-22
|
本帖最后由 ashunicorn 于 2019-5-5 01:46 编辑
补充一个临时方法,如果勾选了实验性推送还不行的话(比如我)
1. 首先进入about:config,把devtools.chrome.enabled设置为true
2. 用Ctrl/Command+Shift+J开启火狐控制台
3. 在控制台窗口下方的命令栏输入以下内容后回车:
——火狐版本57及以上——
- async function set_addons_as_signed() {
- Components.utils.import("resource://gre/modules/addons/XPIDatabase.jsm");
- Components.utils.import("resource://gre/modules/AddonManager.jsm");
- let addons = await XPIDatabase.getAddonList(a => true);
- for (let addon of addons) {
- // The add-on might have vanished, we'll catch that on the next startup
- if (!addon._sourceBundle.exists())
- continue;
- if( addon.signedState != AddonManager.SIGNEDSTATE_UNKNOWN )
- continue;
- addon.signedState = AddonManager.SIGNEDSTATE_NOT_REQUIRED;
- AddonManagerPrivate.callAddonListeners("onPropertyChanged",
- addon.wrapper,
- ["signedState"]);
- await XPIDatabase.updateAddonDisabledState(addon);
- }
- XPIDatabase.saveChanges();
- }
- set_addons_as_signed();
复制代码
——火狐版本小于等于56——
- async function set_addons_as_signed() {
- Components.utils.import("resource://gre/modules/addons/XPIProvider.jsm");
- Components.utils.import("resource://gre/modules/AddonManager.jsm");
- let XPIDatabase = this.XPIInternal.XPIDatabase;
-
- let addons = await XPIDatabase.getAddonList(a => true);
-
- for (let addon of addons) {
- // The add-on might have vanished, we'll catch that on the next startup
- if (!addon._sourceBundle.exists())
- continue;
-
- if( addon.signedState != AddonManager.SIGNEDSTATE_UNKNOWN )
- continue;
-
- addon.signedState = AddonManager.SIGNEDSTATE_NOT_REQUIRED;
- AddonManagerPrivate.callAddonListeners("onPropertyChanged",
- addon.wrapper,
- ["signedState"]);
-
- await XPIProvider.updateAddonDisabledState(addon);
-
- }
- XPIDatabase.saveChanges();
- }
-
- set_addons_as_signed();
复制代码
来源:https://news.ycombinator.com/item?id=19824410
这个脚本的作用会关闭当前所有插件的签名检查,生效期是24小时,到期了重新做一次就行
|
评分
-
查看全部评分
|