Index: lib/filterListener.js |
=================================================================== |
--- a/lib/filterListener.js |
+++ b/lib/filterListener.js |
@@ -141,16 +141,31 @@ |
for (let i = 0; i < filter.subscriptions.length; i++) |
{ |
if (!filter.subscriptions[i].disabled) |
hasEnabled = true; |
} |
if (!hasEnabled) |
return; |
+ if (filter.needsTrust) |
+ { |
+ let hasTrust = false; |
+ for (let i = 0; i < filter.subscriptions.length; i++) |
+ { |
+ if (filter.subscriptions[i].trusted) |
+ { |
+ hasTrust = true; |
+ break; |
+ } |
+ } |
+ if (!hasTrust) |
+ return; |
+ } |
+ |
if (filter instanceof RegExpFilter) |
defaultMatcher.add(filter); |
else if (filter instanceof ElemHideBase) |
{ |
if (filter instanceof ElemHideEmulationFilter) |
ElemHideEmulation.add(filter); |
else |
ElemHide.add(filter); |