Index: background.js |
diff --git a/background.js b/background.js |
index 36158a2d5c129bcb5b81a9d375a72e7b24e2358f..2034beb32525e365a5bc09f6067288c093ead08d 100644 |
--- a/background.js |
+++ b/background.js |
@@ -471,7 +471,9 @@ ext.onMessage.addListener(function (msg, sender, sendResponse) |
!isFrameWhitelisted(sender.page, sender.frame, "ELEMHIDE")) |
{ |
var noStyleRules = false; |
+ var specificOnly = isFrameWhitelisted(sender.page, sender.frame, "GENERICHIDE"); |
var host = extractHostFromFrame(sender.frame); |
+ |
for (var i = 0; i < noStyleRulesHosts.length; i++) |
{ |
var noStyleHost = noStyleRulesHosts[i]; |
@@ -481,7 +483,7 @@ ext.onMessage.addListener(function (msg, sender, sendResponse) |
noStyleRules = true; |
} |
} |
- selectors = ElemHide.getSelectorsForDomain(host, false); |
+ selectors = ElemHide.getSelectorsForDomain(host, specificOnly); |
if (noStyleRules) |
{ |
selectors = selectors.filter(function(s) |