Class ElemHideFilter
Extends
ActiveFilter.
Defined in: FilterClasses.jsm.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
ElemHideFilter(text, domains, selector)
Class for element hiding filters
|
| Field Attributes | Field Name and Description |
|---|---|
|
CSS selector for the HTML elements that should be hidden
|
|
|
Host name or domain the filter should be restricted to (can be null for no restriction)
|
- Fields borrowed from class ActiveFilter:
- disabled, domains, domainSource, hitCount, lastHit
- Fields borrowed from class Filter:
- subscriptions, text
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
ElemHideFilter.fromText(text, domain, tagName, attrRules, selector)
Creates an element hiding filter from a pre-parsed text representation
|
- Methods borrowed from class ActiveFilter:
- _generateDomains, _getDomains, isActiveOnDomain, isActiveOnlyOnDomain, serialize
- Methods borrowed from class Filter:
- toString
Class Detail
ElemHideFilter(text, domains, selector)
Class for element hiding filters
- Parameters:
- {String} text
- see Filter()
- {String} domains
- (optional) Host names or domains the filter should be restricted to
- {String} selector
- CSS selector for the HTML elements that should be hidden
Field Detail
domainSeparator
- See:
- ActiveFilter.domainSeparator
{String}
selector
CSS selector for the HTML elements that should be hidden
{String}
selectorDomain
Host name or domain the filter should be restricted to (can be null for no restriction)
Method Detail
<static>
{ElemHideFilter or InvalidFilter}
ElemHideFilter.fromText(text, domain, tagName, attrRules, selector)
Creates an element hiding filter from a pre-parsed text representation
- Parameters:
- {String} text
- same as in Filter()
- {String} domain
- domain part of the text representation (can be empty)
- {String} tagName
- tag name part (can be empty)
- {String} attrRules
- attribute matching rules (can be empty)
- {String} selector
- raw CSS selector (can be empty)
- Returns:
- {ElemHideFilter or InvalidFilter}