Class Prefs
Defined in: Prefs.jsm.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Prefs()
This object allows easy access to Adblock Plus preferences, all defined
preferences will be available as its members.
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
Prefs.defaultBranch
Retrieves the preferences branch containing default preference values.
|
| <static> |
Prefs.patternsfile
Backwards compatibility, this pref is optional
|
| <static> |
Prefs.privateBrowsing
Will be set to true if the user enters private browsing mode.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
Prefs.addListener(listener)
Adds a preferences listener that will be fired whenever preferences are
reloaded
|
| <static> |
Prefs.removeListener(listener)
Removes a preferences listener
|
| <static> |
Prefs.shutdown()
Called on module shutdown.
|
| <static> |
Prefs.startup()
Called on module startup.
|
Class Detail
Prefs()
This object allows easy access to Adblock Plus preferences, all defined
preferences will be available as its members.
Field Detail
<static>
Prefs.defaultBranch
Retrieves the preferences branch containing default preference values.
<static>
Prefs.patternsfile
Backwards compatibility, this pref is optional
<static>
{Boolean}
Prefs.privateBrowsing
Will be set to true if the user enters private browsing mode.
Method Detail
<static>
Prefs.addListener(listener)
Adds a preferences listener that will be fired whenever preferences are
reloaded
- Parameters:
- {Function} listener
<static>
Prefs.removeListener(listener)
Removes a preferences listener
- Parameters:
- {Function} listener
<static>
Prefs.shutdown()
Called on module shutdown.
<static>
Prefs.startup()
Called on module startup.