home: librewolf: update settings

This commit is contained in:
Guanran Wang 2023-12-21 17:25:21 +08:00
parent dfd022660c
commit d20bff05b3
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -53,102 +53,31 @@ in {
enable = true; enable = true;
package = librewolf.config.env; package = librewolf.config.env;
settings = { settings = {
# https://codeberg.org/librewolf/settings/src/branch/master/librewolf.cfg
# https://github.com/yokoffing/Betterfox/blob/main/librewolf.overrides.cfg
### Restore disabled functions
"browser.cache.disk.enable" = true;
"identity.fxaccounts.enabled" = true; "identity.fxaccounts.enabled" = true;
"media.eme.enabled" = true;
# https:#github.com/yokoffing/Betterfox/blob/main/librewolf.overrides.cfg "privacy.donottrackheader.enabled" = false;
### SECTION: FASTFOX "privacy.globalprivacycontrol.enabled" = false;
"layout.css.grid-template-masonry-value.enabled" = true; "privacy.resistFingerprinting" = false;
"dom.enable_web_task_scheduling" = true; "privacy.sanitize.sanitizeOnShutdown" = false;
### SECTION: SECUREFOX
# TRACKING PROTECTION
"urlclassifier.trackingSkipURLs" = "*.reddit.com, *.twitter.com, *.twimg.com";
"urlclassifier.features.socialtracking.skipURLs" = "*.instagram.com, *.twitter.com, *.twimg.com";
### OCSP & CERTS / HPKP
# Use CRLite instead of OCSP
"security.OCSP.enabled" = 0; "security.OCSP.enabled" = 0;
"security.OCSP.require" = false; "security.OCSP.require" = false;
"security.pki.crlite_mode" = 2; "security.pki.crlite_mode" = 2;
### RFP
# Limits refresh rate to 60mHz, breaks timezone, and forced light theme
# [1] https:#librewolf.net/docs/faq/#what-are-the-most-common-downsides-of-rfp-resist-fingerprinting
"privacy.resistFingerprinting" = false;
### WebGL
# Breaks Map sites, NYT articles, Nat Geo, and more
# [1] https:#manu.ninja/25-real-world-applications-using-webgl/
"webgl.disabled" = false; "webgl.disabled" = false;
# DRM ### Smooth scrolling
# Netflix, Udemy, Spotify, etc.
"media.eme.enabled" = true;
# HTTPS-ONLY MODE
"dom.security.https_only_mode_error_page_user_suggestions" = true;
# PASSWORDS AND AUTOFILL
"signon.generation.enabled" = false;
### WEBRTC
# Breaks video conferencing
"media.peerconnection.ice.no_host" = false;
### PERMISSIONS
"permissions.default.geo" = 2;
"permissions.default.desktop-notification" = 2;
"dom.push.enabled" = false;
### SECTION: PESKYFOX
### MOZILLA UI
"layout.css.prefers-color-scheme.content-override" = 2;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.compactmode.show" = true;
### FULLSCREEN
"full-screen-api.transition-duration.enter" = "0 0";
"full-screen-api.transition-duration.leave" = "0 0";
"full-screen-api.warning.delay" = 0;
"full-screen-api.warning.timeout" = 0;
### URL BAR
"browser.urlbar.suggest.engines" = false;
"browser.urlbar.suggest.topsites" = false;
"browser.urlbar.suggest.calculator" = true;
"browser.urlbar.unitConversion.enabled" = true;
### AUTOPLAY
# Default breaks some video players
"media.autoplay.blocking_policy" = 0;
#### PASSWORDS
"editor.truncate_user_pastes" = false;
#### DOWNLOADS
"browser.download.autohideButton" = true;
### PDF
"browser.download.open_pdf_attachments_inline" = true;
### TAB BEHAVIOR
"browser.tabs.loadBookmarksInTabs" = true;
"browser.bookmarks.openInTabClosesMenu" = false;
"findbar.highlightAll" = true;
### SECTION: SMOOTHFOX
"apz.overscroll.enabled" = true; "apz.overscroll.enabled" = true;
"general.smoothScroll" = true; "general.smoothScroll" = true;
"general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS" = 12;
"general.smoothScroll.msdPhysics.enabled" = true; "general.smoothScroll.msdPhysics.enabled" = true;
"general.smoothScroll.msdPhysics.motionBeginSpringConstant" = 600; "general.smoothScroll.msdPhysics.motionBeginSpringConstant" = 600;
"general.smoothScroll.msdPhysics.regularSpringConstant" = 650;
"general.smoothScroll.msdPhysics.slowdownMinDeltaMS" = 25;
"general.smoothScroll.msdPhysics.slowdownMinDeltaRatio" = "2.0";
"general.smoothScroll.msdPhysics.slowdownSpringConstant" = 250;
"general.smoothScroll.currentVelocityWeighting" = "1.0";
"general.smoothScroll.stopDecelerationWeighting" = "1.0";
"mousewheel.default.delta_multiplier_y" = 75; "mousewheel.default.delta_multiplier_y" = 75;
### Misc
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
}; };
}; };
} }