Firefox Add-ons Auto-Reactivation Script

Job ID: 39234663

Budget: $10 – $50 USD

Hello,

My mozilla firefox version 94 keeps disabling my old addons every X minute automatically. I activate them manually but it keeps disabling them. I need a script executable by windows that will open this page on firefox (about:addons) then open console on firefox to run the firefox script below automatically. I will run it once every 30 minutes because firefox keeps disabling my firefox addons. I use firefox version 94.

Script to run in firefox cosole automatically is:

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

Thanks...