Class: SnippetFilter

SnippetFilter(text, domainsopt, script)

new SnippetFilter(text, domainsopt, script)

Class for snippet filters
Parameters:
Name Type Attributes Description
text string see Filter()
domains string <optional>
see ContentFilter()
script string Script that should be executed
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