mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2026-03-16 03:41:18 -07:00
check if a script is enabled before executing it as module
This commit is contained in:
parent
28c285d982
commit
6a71a19064
1 changed files with 1 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue