From 6a71a1906435ebd47d7c3fcd643ad7b1aca2cbed Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 10 Oct 2020 08:56:36 +0300 Subject: [PATCH] check if a script is enabled before executing it as module --- profile/chrome/utils/boot.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/chrome/utils/boot.jsm b/profile/chrome/utils/boot.jsm index 9eaa27e..fe528a3 100644 --- a/profile/chrome/utils/boot.jsm +++ b/profile/chrome/utils/boot.jsm @@ -99,7 +99,7 @@ let _uc = { let file = files.getNext().QueryInterface(Ci.nsIFile); if (/\.uc\.js$/i.test(file.leafName)) { let script = _uc.getScriptData(file); - if(script.inbackground){ + if(script.inbackground && script.isEnabled){ try{ Cu.import(`chrome://userscripts/content/${script.filename}`) }catch(e){