| Index: lib/filterStorage.js | 
| =================================================================== | 
| --- a/lib/filterStorage.js | 
| +++ b/lib/filterStorage.js | 
| @@ -29,6 +29,12 @@ | 
| let {Subscription, SpecialSubscription, ExternalSubscription} = require("subscriptionClasses"); | 
| let {FilterNotifier} = require("filterNotifier"); | 
| let {Utils} = require("utils"); | 
| +let FilterHits = null; | 
| +try | 
| +{ | 
| +  ({FilterHits} = require("filterHits")); | 
| +} | 
| +catch (e) {} | 
|  | 
| /** | 
| * Version number of the filter storage file format. | 
| @@ -323,14 +329,17 @@ | 
| /** | 
| * Increases the hit count for a filter by one | 
| * @param {Filter} filter | 
| +   * @param {String} hostname of top window where the match originated in | 
| */ | 
| -  increaseHitCount: function(filter) | 
| +  increaseHitCount: function(filter, hostname, thirdParty) | 
| { | 
| if (!Prefs.savestats || !(filter instanceof ActiveFilter)) | 
| return; | 
|  | 
| filter.hitCount++; | 
| filter.lastHit = Date.now(); | 
| +    if (Prefs.sendstats && FilterHits) | 
| +      FilterHits.increaseFilterHits(filter, hostname, thirdParty); | 
| }, | 
|  | 
| /** | 
|  |