瀏覽單個文章
rufus
Regular Member
 

加入日期: May 2002
文章: 94
暫時解法,剛試過可以 據說能撐24小時 Orz...
https://www.reddit.com/r/firefox/co...bkhzjy/?depth=1

先把about:config裡的devtools.chrome.enabled改true

按ctrl+shift+j 在跳出來的畫面貼上下面的東西再Enter

// 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();
舊 2019-05-04, 06:22 PM #18
回應時引用此文章
rufus離線中