xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
1.06k stars 88 forks source link

The (old) about:config folder broken in Firefox v120+ #297

Open StavrosTsik opened 10 months ago

StavrosTsik commented 10 months ago

The (old) about:config folder here: https://github.com/xiaoxiaoflood/firefox-scripts/tree/master/chrome/utils/aboutconfig is broken in Firefox v120 and newer versions. The warning is not centered -as seen in the photo below- and when I press the "I accept the risk!" button, it does nothing.

about_config

UCyborg commented 6 months ago

You can fix it by modifying single line in /chrome/utils/aboutconfig/config.js near the top after initial comments:

From:

const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");

To:

const Services = globalThis.Services || ChromeUtils.import("resource://gre/modules/Services.jsm").Services;