←back to thread

1318 points xvector | 1 comments | | HN request time: 0.225s | source
Show context
pritambaral ◴[] No.19824780[source]
Run this in your Browser Console[1] to delay signature checking for a day:

    function set_xpi_sign_time_now() {
        const {Services} =  ChromeUtils.import("resource://gre/modules/Services.jsm");
        const now = (new Date()).getTime() / 1000;
        Services.prefs.setIntPref('app.update.lastUpdateTime.xpi-signature-verification', now);
    }
    
    set_xpi_sign_time_now();

EDIT: Changed `Components.utils.import` to `ChromeUtils.import` because apparently Beta and Nightly versions have removed the former, while the latter was introduced in 60.

This does the equivalent of setting in about:config the time of last signature verification to the current time. By default, Firefox re-checks signatures in 24 hours (or so I read somewhere here). I like the temporary effect of this, compared to the permanent disabling of signature verification suggested elsewhere.

----

1: https://developer.mozilla.org/en-US/docs/Tools/Browser_Conso...

replies(3): >>19824794 #>>19824823 #>>19825204 #
l0b0 ◴[] No.19825204[source]
Outside of about:addons I get this in Firefox 66.0.3 in Linux:

> ReferenceError: ChromeUtils is not defined

Also, this doesn't seem to help with currently disabled add-ons, unless I'm missing something. Trying to reinstall Adblock Plus, for example, still results in

> Download failed. Please check your connection.

replies(2): >>19825311 #>>19825319 #
1. pritambaral ◴[] No.19825311[source]
> Outside of about:addons ...

You seem to be trying in a standard Web Console, not the Browser Console.