diff --git a/background/style-manager.js b/background/style-manager.js index a82a69cb..4aee9df0 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -331,6 +331,12 @@ const styleManager = (() => { if (section.regexps && section.regexps.some(r => compileRe(r).test(url))) { return true; } + if ( + (!section.regexps || !section.regexps.length) && + (!section.urlPrefixes || !section.urlPrefixes.length) && + (!section.urls || !section.urls.length) && + (!section.domains || !section.domains.length) + ) return false; }