diff --git a/users/guanranwang/home-manager/applications/librewolf/default.nix b/users/guanranwang/home-manager/applications/librewolf/default.nix index 0282620..6e50c4d 100644 --- a/users/guanranwang/home-manager/applications/librewolf/default.nix +++ b/users/guanranwang/home-manager/applications/librewolf/default.nix @@ -53,102 +53,31 @@ in { enable = true; package = librewolf.config.env; 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; - - # https:#github.com/yokoffing/Betterfox/blob/main/librewolf.overrides.cfg - ### SECTION: FASTFOX - "layout.css.grid-template-masonry-value.enabled" = true; - "dom.enable_web_task_scheduling" = true; - - ### 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 + "media.eme.enabled" = true; + "privacy.donottrackheader.enabled" = false; + "privacy.globalprivacycontrol.enabled" = false; + "privacy.resistFingerprinting" = false; + "privacy.sanitize.sanitizeOnShutdown" = false; "security.OCSP.enabled" = 0; "security.OCSP.require" = false; "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; - # DRM - # 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 + ### Smooth scrolling "apz.overscroll.enabled" = true; "general.smoothScroll" = true; - "general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS" = 12; "general.smoothScroll.msdPhysics.enabled" = true; "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; + + ### Misc + "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; }; }; }