Firefox Tips: Howto re-enable all disabled extensions

Firefox Tips: Howto re-enable all disabled extensions

// If you're using Ubuntu, just following step 1) else
// goto step 2)

// ###############
// Step 1
// ###############

1) about:config

1) a) Set xpinstall.signatures.required to false .

// ###############
// Step 2
// ###############

2) about:config
2) a) Set devtools.chrome.enabled to true.

2) b) Open browser console by pressing:- CTRL + Shift + J
2) b) i) or press F12 (then goto Console)

2) c) Copy & paste the following into browser console:-


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

2) d) Press Enter key (at browser console).

Comments