Function Reference

_FFPrefReset

Resets a config entry

#Include <FF.au3>
_FFPrefReset($sName)

 

Parameters

$sName Name of the config entry.

 

Return Value

Success: Returns 1
Failure: Returns 0 and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
4 ($_FF_ERROR_InvalidValue)
8 ($_FF_ERROR_NoMatch)

 

Remarks



 

Links

https://developer.mozilla.org/en/nsIPrefBranch
http://kb.mozillazine.org/About:config_entries

 

Related

_FFPrefSet, _FFPrefGet

 

Example

#Include <FF.au3>

_FFConnect()

If _FFIsConnected() Then
	; changing HTTP-proxy port:
	_FFPrefSet("network.proxy.http", "localhost")
	_FFPrefReset("network.proxy.http")

	; disabling image loading
	_FFPrefSet("permissions.default.image", 2)
	MsgBox(64, "Old value:", @extended)
	MsgBox(64, "Current value:", _FFPrefGet("permissions.default.image"))
	; reset to old value
	_FFPrefReset("permissions.default.image")
	; reading prefs
	MsgBox(64, "Reseted value:", _FFPrefGet("permissions.default.image"))
EndIf