Class: ActiveFilter

ActiveFilter(text, domainsopt)

new ActiveFilter(text, domainsopt)

Abstract base class for filters that can get hits
Parameters:
Name Type Attributes Description
text string see Filter()
domains string <optional>
Domains that the filter is restricted to separated by domainSeparator e.g. "foo.com|bar.com|~baz.com"
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).
Source:
Yields:
Type
ActiveFilter

serialize() → {string}

Serializes the filter for writing out on disk.
Inherited From:
Source:
Yields:
Type
string