Class: ElemHide

ElemHide()

new ElemHide()

Container for element hiding filters
Source:

Methods

(static) add(filter)

Add a new element hiding filter
Parameters:
Name Type Description
filter ElemHideFilter
Source:

(static) clear()

Removes all known filters
Source:

(static) generateStyleSheetForDomain(domain, specificOnlyopt, includeSelectorsopt, includeExceptionsopt) → {ElemHideStyleSheet}

Generates a style sheet for a given domain based on the current set of filters.
Parameters:
Name Type Attributes Default Description
domain string The domain.
specificOnly boolean <optional>
false Whether selectors from generic filters should be included.
includeSelectors boolean <optional>
false Whether the return value should include a separate list of selectors.
includeExceptions boolean <optional>
false Whether the return value should include a separate list of exceptions.
Source:
Returns:
An object containing the CSS code and the list of selectors.
Type
ElemHideStyleSheet

(static) remove(filter)

Removes an element hiding filter
Parameters:
Name Type Description
filter ElemHideFilter
Source: