Index: messageResponder.js |
=================================================================== |
--- a/messageResponder.js |
+++ b/messageResponder.js |
@@ -220,17 +220,17 @@ |
callback(filter instanceof BlockingFilter); |
break; |
case "filters.get": |
if (message.what == "cssproperties") |
{ |
var filters = []; |
var checkWhitelisted = require("whitelisting").checkWhitelisted; |
- if (!checkWhitelisted(sender.page, sender.frame, |
+ if (Prefs.enabled && !checkWhitelisted(sender.page, sender.frame, |
RegExpFilter.typeMap.DOCUMENT | |
RegExpFilter.typeMap.ELEMHIDE)) |
{ |
filters = CSSRules.getRulesForDomain(sender.frame.url.hostname); |
filters = filters.map(function(filter) |
{ |
return { |
prefix: filter.selectorPrefix, |