mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 15:40:48 +05:30
Updated Optional Hardening (markdown)
+16
-5
@@ -82,21 +82,32 @@ user_pref("network.dns.skipTRR-when-parental-control-enabled", false);
|
|||||||
***
|
***
|
||||||
|
|
||||||
### Sanitize on close
|
### Sanitize on close
|
||||||
Clear browsing data on shutdown:
|
#### Option 1: Clear all browsing data on shutdown except, except browser history
|
||||||
* Go to `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Delete cookies and site data when Firefox is closed*
|
* `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Delete cookies and site data when Firefox is closed*
|
||||||
|
|
||||||
```
|
```
|
||||||
// PREF: clear browsing data on shutdown, while respecting site exceptions
|
// PREF: clear all browsing data on shutdown (except browser history)
|
||||||
|
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
|
||||||
|
user_pref("privacy.clearOnShutdown.cache", true);
|
||||||
|
user_pref("privacy.clearOnShutdown.cookies", true);
|
||||||
|
user_pref("privacy.clearOnShutdown.offlineApps", true);
|
||||||
|
user_pref("browser.sessionstore.privacy_level", 2);
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Option 2: Clear all browsing data on shutdown
|
||||||
|
```
|
||||||
|
// PREF: clear browsing data on shutdown
|
||||||
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
|
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
|
||||||
user_pref("privacy.clearOnShutdown.history", true);
|
user_pref("privacy.clearOnShutdown.history", true);
|
||||||
user_pref("privacy.clearOnShutdown.formdata", true);
|
user_pref("privacy.clearOnShutdown.formdata", true);
|
||||||
user_pref("privacy.clearOnShutdown.sessions", true);
|
user_pref("privacy.clearOnShutdown.sessions", true);
|
||||||
|
user_pref("privacy.clearOnShutdown.cache", true);
|
||||||
|
user_pref("privacy.clearOnShutdown.cookies", true);
|
||||||
user_pref("privacy.clearOnShutdown.offlineApps", true);
|
user_pref("privacy.clearOnShutdown.offlineApps", true);
|
||||||
user_pref("privacy.clearOnShutdown.siteSettings", false);
|
user_pref("privacy.clearOnShutdown.siteSettings", false);
|
||||||
user_pref("browser.sessionstore.privacy_level", 2);
|
user_pref("browser.sessionstore.privacy_level", 2);
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have session restore enable (_Settings → General → Startup → Open previous windows and tabs_), then you will need to omit `privacy.clearOnShutdown.history` for session restore to work.
|
:warning: If you have session restore enable (_Settings → General → Startup → Open previous windows and tabs_), then you will need to use **Option 1** for session restore to work.
|
||||||
|
|
||||||
You can allow exceptions if you want to stay logged in to some sites:
|
You can allow exceptions if you want to stay logged in to some sites:
|
||||||
* Go to `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Manage Exceptions*
|
* Go to `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Manage Exceptions*
|
||||||
|
|||||||
Reference in New Issue
Block a user