查看单个帖子
bold
 
bold 的头像
超级会员
 
资 料:
注册日期: Jun 2002
帖子: 1,086 声望值: 4
精华: 0,解答: 5
#12 旧 2019-05-04, 17:52:24 默认
bold 当前离线  

解決辦法,臨時:
firefox console run:

// Re-enable *all* extensions

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();


大道無形
回复时引用此帖