new WhitelistFilter(text, regexpSource, contentTypeopt, matchCaseopt, domainsopt, thirdPartyopt, sitekeysopt)
Class for whitelist filters
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
text |
string | see Filter() | |
regexpSource |
string | see RegExpFilter() | |
contentType |
number |
<optional> |
see RegExpFilter() |
matchCase |
boolean |
<optional> |
see RegExpFilter() |
domains |
string |
<optional> |
see RegExpFilter() |
thirdParty |
boolean |
<optional> |
see RegExpFilter() |
sitekeys |
string |
<optional> |
see RegExpFilter() |
- Source:
Extends
Members
text :string
String representation of the filter
Type:
- string
- Inherited From:
- Source:
type :string
Filter type as a string, e.g. "blocking".
Type:
- string
- Inherited From:
- Source:
Methods
(package) [undefined]() → {ActiveFilter}
Yields the filter itself (required to optimize Matcher).
- Inherited From:
- Source:
Yields:
- Type
- ActiveFilter
serialize() → {string}
Serializes the filter for writing out on disk.
- Inherited From:
- Source:
Yields:
- Type
- string