Class: ElemHideExceptions

elemHideExceptions~ElemHideExceptions

elemHideExceptions implementation.

Members

(private) _exceptions :Set.<module:filterClasses.ElemHideException>

Set containing known element hiding exceptions

Type:
Source:

(private) _exceptionsBySelector :Map.<string, Set.<module:filterClasses.ElemHideException>>

Lookup table, lists of element hiding exceptions by selector

Type:
Source:

Methods

add(exception)

Adds a new element hiding exception.

Parameters:
Name Type Description
exception module:filterClasses.ElemHideException
Source:

clear()

Removes all known element hiding exceptions.

Source:

getException(selector, domainopt, nullable) → (nullable) {module:filterClasses.ElemHideException}

Checks whether an exception rule is registered for a selector on a particular domain.

Parameters:
Name Type Attributes Description
selector string
domain string <optional>
<nullable>
Source:
Returns:
Type
module:filterClasses.ElemHideException

has(exception) → {boolean}

Checks whether an element hiding exception exists.

Parameters:
Name Type Description
exception module:filterClasses.ElemHideException
Source:
Returns:
Type
boolean

hasExceptions(selector) → {boolean}

Checks whether any exception rules are registered for a selector.

Parameters:
Name Type Description
selector string
Source:
Returns:
Type
boolean

remove(exception)

Removes an existing element hiding exception.

Parameters:
Name Type Description
exception module:filterClasses.ElemHideException
Source: