Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/subscriptionClasses.js

Issue 29854576: Issue 6859 - Create special subscription group for snippet filters (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Aug. 12, 2018, 11:20 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/data/patterns.ini » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/subscriptionClasses.js
===================================================================
--- a/lib/subscriptionClasses.js
+++ b/lib/subscriptionClasses.js
@@ -17,17 +17,18 @@
"use strict";
/**
* @fileOverview Definition of Subscription class and its subclasses.
*/
const {ActiveFilter, BlockingFilter,
- WhitelistFilter, ElemHideBase} = require("./filterClasses");
+ WhitelistFilter, ElemHideBase,
+ SnippetFilter} = require("./filterClasses");
const {FilterNotifier} = require("./filterNotifier");
const {extend} = require("./coreUtils");
/**
* Abstract base class for filter subscriptions
*
* @param {string} url download location of the subscription
* @param {string} [title] title of the filter subscription
@@ -298,17 +299,18 @@
if (this._lastDownload)
buffer.push("lastDownload=" + this._lastDownload);
}
});
SpecialSubscription.defaultsMap = new Map([
["whitelist", WhitelistFilter],
["blocking", BlockingFilter],
- ["elemhide", ElemHideBase]
+ ["elemhide", ElemHideBase],
+ ["snippet", SnippetFilter]
]);
/**
* Creates a new user-defined filter group.
* @param {string} [title] title of the new filter group
* @return {SpecialSubscription}
*/
SpecialSubscription.create = function(title)
« no previous file with comments | « no previous file | test/data/patterns.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld