diff --git a/src/js/cosmetic-filtering.js b/src/js/cosmetic-filtering.js index 1f54e0b79..e4b66eb6f 100644 --- a/src/js/cosmetic-filtering.js +++ b/src/js/cosmetic-filtering.js @@ -1199,7 +1199,7 @@ FilterContainer.prototype.retrieveDomainSelectors = function(request) { /******************************************************************************/ FilterContainer.prototype.getFilterCount = function() { - return this.acceptedCount; + return this.acceptedCount - this.duplicateCount; }; /******************************************************************************/ diff --git a/src/js/storage.js b/src/js/storage.js index f3d358966..beb3edeed 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -288,7 +288,7 @@ if ( µb.remoteBlacklists.hasOwnProperty(path) ) { var entry = µb.remoteBlacklists[path]; entry.entryCount = snfe.acceptedCount + cfe.acceptedCount - acceptedCount; - entry.entryUsedCount = entry.entryCount - snfe.duplicateCount - cfe.duplicateCount + duplicateCount; + entry.entryUsedCount = entry.entryCount - (snfe.duplicateCount + cfe.duplicateCount - duplicateCount); } };