/privacy-settings

Alter Firefox's built-in privacy settings easily with a toolbar panel

Primary LanguageJavaScript

#### Temporary Locking a Preference

var prefs = Cc['@mozilla.org/preferences-service;1']
  .getService(Ci.nsIPrefService);
var branch = prefs.getBranch("geo.enabled");
branch.lockPref('', true);
console.error(branch.prefIsLocked(''))