diff --git a/userChrome.js b/userChrome.js index 91d24e7..34fe1ff 100644 --- a/userChrome.js +++ b/userChrome.js @@ -18,6 +18,12 @@ be modified when you are in root/admin mode. // https://mike.kaply.com/2016/09/08/debugging-firefox-autoconfig-problems/ lockPref("a.b.c.d", "1.2.3.4"); // Debugging Firefox AutoConfig Problems +const { AddonManager } = +ChromeUtils.importESModule("resource://gre/modules/AddonManager.sys.mjs"); +//find the modules here: https://searchfox.org/mozilla-central/source/toolkit/modules +const { FileUtils } = +ChromeUtils.importESModule("resource://gre/modules/FileUtils.sys.mjs"); + // userChrome.js file for [Firefox program folder] // file name must match the name in [Firefox program folder]\defaults\pref @@ -108,12 +114,6 @@ try { Services.obs.addObserver(this, 'final-ui-startup', false); } - const { AddonManager } = - Components.utils.import("resource://gre/modules/AddonManager.jsm"); - - const { FileUtils } = - Components.utils.import("resource://gre/modules/FileUtils.jsm"); - ConfigJS.prototype = { observe: async function observe(subject, topic, data) {