Module: filterClasses

Classes

ActiveFilter
AllowingFilter
BlockingFilter
CommentFilter
ContentFilter
ElemHideBase
ElemHideEmulationFilter
ElemHideException
ElemHideFilter
Filter
InvalidFilter
SnippetFilter
URLFilter

Members

(inner) knownFilters :Map.<string, module:filterClasses.Filter>

Cache for known filters, maps string representation to filter objects.

Type:
Source:

(inner) resourceMap :Map.<string, string>

Map of internal resources for URL rewriting.

Type:
  • Map.<string, string>
Source:

Methods

(static) isActiveFilter(filternullable) → {boolean}

Checks whether the given filter is an active filter.

Filters of type blocking, allowing, elemhide, elemhideexception, elemhideemulation, and snippet are considered active; filters of type invalid and comment are not considered active.

Parameters:
Name Type Attributes Description
filter Filter <nullable>

The filter.

Source:
Returns:

Whether the filter is active.

Type
boolean

Type Definitions

HttpHeader

Type:
  • Object
Properties:
Name Type Attributes Description
name string
value string <nullable>
Source: