Class ElemHide
Defined in: ElemHide.jsm.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
ElemHide()
Element hiding component
|
| Field Attributes | Field Name and Description |
|---|---|
| <private> <static> |
ElemHide._applying
Will be set to true if apply() is running (reentrance protection).
|
| <private> <static> |
ElemHide._needsApply
Will be set to true if an apply() call arrives while apply() is already
running (delayed execution).
|
| <static> |
ElemHide.applied
Inidicates whether the element hiding stylesheet is currently applied.
|
| <static> |
ElemHide.isDirty
Indicates whether filters have been added or removed since the last apply() call.
|
| <static> |
ElemHide.styleURL
Retrieves the currently applied stylesheet URL
|
| Method Attributes | Method Name and Description |
|---|---|
| <private> <static> |
ElemHide._generateCSSContent()
|
| <static> |
ElemHide.add(filter)
Add a new element hiding filter
|
| <static> |
ElemHide.apply()
Generates stylesheet URL and applies it globally
|
| <static> |
ElemHide.clear()
Removes all known filters
|
| <static> |
ElemHide.getFilterByKey(key)
Retrieves an element hiding filter by the corresponding protocol key
|
| <static> |
ElemHide.init()
Called on module startup.
|
| <static> |
ElemHide.remove(filter)
Removes an element hiding filter
|
| <static> |
ElemHide.unapply()
Unapplies current stylesheet URL
|
Field Detail
<private> <static>
{Boolean}
ElemHide._applying
Will be set to true if apply() is running (reentrance protection).
<private> <static>
{Boolean}
ElemHide._needsApply
Will be set to true if an apply() call arrives while apply() is already
running (delayed execution).
<static>
{Boolean}
ElemHide.applied
Inidicates whether the element hiding stylesheet is currently applied.
<static>
{Boolean}
ElemHide.isDirty
Indicates whether filters have been added or removed since the last apply() call.
<static>
{String}
ElemHide.styleURL
Retrieves the currently applied stylesheet URL
Method Detail
<private> <static>
ElemHide._generateCSSContent()
<static>
ElemHide.add(filter)
Add a new element hiding filter
- Parameters:
- {ElemHideFilter} filter
<static>
ElemHide.apply()
Generates stylesheet URL and applies it globally
<static>
ElemHide.clear()
Removes all known filters
<static>
{Filter}
ElemHide.getFilterByKey(key)
Retrieves an element hiding filter by the corresponding protocol key
- Parameters:
- {String} key
<static>
ElemHide.init()
Called on module startup.
<static>
ElemHide.remove(filter)
Removes an element hiding filter
- Parameters:
- {ElemHideFilter} filter
<static>
ElemHide.unapply()
Unapplies current stylesheet URL