| Index: background.js |
| =================================================================== |
| --- a/background.js |
| +++ b/background.js |
| @@ -155,6 +155,7 @@ |
| let subscriptionDetails = { |
| [`${subscriptionServer}/easylistgermany+easylist.txt`]: { |
| title: "EasyList Germany+EasyList", |
| + filters: ["-ad-banner.", "-ad-big.", "-ad-bottom-", "-ad-button-"], |
| installed: true |
| }, |
| [`${subscriptionServer}/exceptionrules.txt`]: { |
| @@ -183,6 +184,7 @@ |
| this.url = url; |
| this._disabled = false; |
| this._lastDownload = 1234; |
| + this.filters = []; |
| this.homepage = "https://easylist.adblockplus.org/"; |
| this.downloadStatus = params.downloadStatus; |
| @@ -191,6 +193,7 @@ |
| { |
| this.disabled = !!details.disabled; |
| this.title = details.title || ""; |
| + this.filters = this.filters.concat(details.filters); |
| } |
| } |
| Subscription.prototype = |
| @@ -316,6 +319,10 @@ |
| } |
| Filter.fromText = (text) => new Filter(text); |
| + function ActiveFilter() |
| + { |
| + } |
| + |
| function BlockingFilter() |
| { |
| } |
| @@ -326,6 +333,7 @@ |
| RegExpFilter.typeMap = Object.create(null); |
| modules.filterClasses = { |
| + ActiveFilter, |
| BlockingFilter, |
| Filter, |
| RegExpFilter |