diff options
| author | Joachim Fasting <joachifm@fastmail.fm> | 2017-07-13 09:57:10 +0200 |
|---|---|---|
| committer | Joachim Fasting <joachifm@fastmail.fm> | 2017-07-13 10:12:33 +0200 |
| commit | 9e12be50b48898328f78d3ee9f7d5d164e2bd395 (patch) | |
| tree | 6cd5910e8889ef391898e83fd3fe90f8ef5ea594 /pkgs/development/python-modules/httpserver | |
| parent | 07e492c6e673075ba98c4f06c5bb00798e6e67ec (diff) | |
tor-browser-bundle-bin: support injecting additional prefs
The `extraPrefs` parameter is injected verbatim into the mozilla.cfg
file.
Note that the syntax is a superset of the usual prefs.js syntax. The
following procedures are of particular interest:
pref() to set a preference as if it had been toggled in about:config
defaultPref() to set the *default* value of a preference
lockPref() to set a preference & prevent further modification
clearPref() to reset a preference to its default state
Example:
```nix
tor-browser-bundle-bin.override {
extraPrefs = ''
// Increase default security level
pref("extensions.torbutton.security_slider", 2);
'';
}
```
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
0 files changed, 0 insertions, 0 deletions
