Index: lib/elemHideFF.js |
=================================================================== |
--- a/lib/elemHideFF.js |
+++ b/lib/elemHideFF.js |
@@ -45,19 +45,22 @@ port.on("elemhideEnabled", ({frames, isP |
{ |
if (!Prefs.enabled) |
return {enabled: false}; |
let hit = Policy.isFrameWhitelisted(frames, true); |
if (hit) |
{ |
let [frameIndex, contentType, docDomain, thirdParty, location, filter] = hit; |
- if (!isPrivate) |
- FilterStorage.increaseHitCount(filter); |
- return { |
- enabled: false, |
- contentType, docDomain, thirdParty, location, |
- filter: filter.text, filterType: filter.type |
- }; |
+ if (contentType != "GENERICHIDE") |
+ { |
+ if (!isPrivate) |
+ FilterStorage.increaseHitCount(filter); |
+ return { |
+ enabled: false, |
+ contentType, docDomain, thirdParty, location, |
+ filter: filter.text, filterType: filter.type |
+ }; |
+ } |
} |
- else |
- return {enabled: true}; |
+ |
+ return {enabled: true}; |
}); |