_: ''
  /* You may copy+paste this file and use it as it is.
   *
   * If you make changes to your about:config while the program is running, the
   * changes will be overwritten by the user.js when the application restarts.
   *
   * To make lasting changes to preferences, you will have to edit the user.js.
   */

  /****************************************************************************
   * Betterfox                                                                *
   * "Ad meliora"                                                             *
   * version: 131                                                             *
   * url: https://github.com/yokoffing/Betterfox                              *
  ****************************************************************************/

  /****************************************************************************
   * SECTION: FASTFOX                                                         *
  ****************************************************************************/
  /** GENERAL ***/
  user_pref("content.notify.interval", 100000);

  /** GFX ***/
  user_pref("gfx.canvas.accelerated.cache-items", 4096);
  user_pref("gfx.canvas.accelerated.cache-size", 512);
  user_pref("gfx.content.skia-font-cache-size", 20);

  /** DISK CACHE ***/
  user_pref("browser.cache.jsbc_compression_level", 3);

  /** MEDIA CACHE ***/
  user_pref("media.memory_cache_max_size", 65536);
  user_pref("media.cache_readahead_limit", 7200);
  user_pref("media.cache_resume_threshold", 3600);

  /** IMAGE CACHE ***/
  user_pref("image.mem.decode_bytes_at_a_time", 32768);

  /** NETWORK ***/
  user_pref("network.http.max-connections", 1800);
  user_pref("network.http.max-persistent-connections-per-server", 10);
  user_pref("network.http.max-urgent-start-excessive-connections-per-host", 5);
  user_pref("network.http.pacing.requests.enabled", false);
  user_pref("network.dnsCacheExpiration", 3600);
  user_pref("network.ssl_tokens_cache_capacity", 10240);

  /** SPECULATIVE LOADING ***/
  user_pref("network.dns.disablePrefetch", true);
  user_pref("network.dns.disablePrefetchFromHTTPS", true);
  user_pref("network.prefetch-next", false);
  user_pref("network.predictor.enabled", false);
  user_pref("network.predictor.enable-prefetch", false);

  /** EXPERIMENTAL ***/
  user_pref("dom.enable_web_task_scheduling", true);

  /****************************************************************************
   * SECTION: SECUREFOX                                                       *
  ****************************************************************************/
  /** TRACKING PROTECTION ***/
  user_pref("browser.contentblocking.category", "strict");
  user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com");
  user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com");
  user_pref("network.cookie.sameSite.noneRequiresSecure", true);
  user_pref("browser.download.start_downloads_in_tmp_dir", true);
  user_pref("browser.helperApps.deleteTempFileOnExit", true);
  user_pref("browser.uitour.enabled", false);
  user_pref("privacy.globalprivacycontrol.enabled", true);

  /** OCSP & CERTS / HPKP ***/
  user_pref("security.OCSP.enabled", 0);
  user_pref("security.remote_settings.crlite_filters.enabled", true);
  user_pref("security.pki.crlite_mode", 2);

  /** SSL / TLS ***/
  user_pref("security.ssl.treat_unsafe_negotiation_as_broken", true);
  user_pref("browser.xul.error_pages.expert_bad_cert", true);
  user_pref("security.tls.enable_0rtt_data", false);
  user_pref("security.tls.enable_kyber", true);
  user_pref("network.http.http3.enable_kyber", true);

  /** DISK AVOIDANCE ***/
  user_pref("browser.privatebrowsing.forceMediaMemoryCache", true);
  user_pref("browser.sessionstore.interval", 60000);

  /** SHUTDOWN & SANITIZING ***/
  user_pref("privacy.history.custom", true);

  /** SEARCH / URL BAR ***/
  user_pref("browser.urlbar.trimHttps", true);
  user_pref("browser.urlbar.untrimOnUserInteraction.featureGate", true);
  user_pref("browser.search.separatePrivateDefault.ui.enabled", true);
  user_pref("browser.urlbar.update2.engineAliasRefresh", true);
  user_pref("browser.search.suggest.enabled", false);
  user_pref("browser.urlbar.quicksuggest.enabled", false);
  user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false);
  user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false);
  user_pref("browser.urlbar.groupLabels.enabled", false);
  user_pref("browser.formfill.enable", false);
  user_pref("security.insecure_connection_text.enabled", true);
  user_pref("security.insecure_connection_text.pbmode.enabled", true);
  user_pref("network.IDN_show_punycode", true);

  /** HTTPS-FIRST POLICY ***/
  user_pref("dom.security.https_first", true);

  /** PASSWORDS ***/
  user_pref("signon.formlessCapture.enabled", false);
  user_pref("signon.privateBrowsingCapture.enabled", false);
  user_pref("network.auth.subresource-http-auth-allow", 1);
  user_pref("editor.truncate_user_pastes", false);

  /** MIXED CONTENT + CROSS-SITE ***/
  user_pref("security.mixed_content.block_display_content", true);
  user_pref("pdfjs.enableScripting", false);

  /** EXTENSIONS ***/
  user_pref("extensions.enabledScopes", 5);

  /** HEADERS / REFERERS ***/
  user_pref("network.http.referer.XOriginTrimmingPolicy", 2);

  /** CONTAINERS ***/
  user_pref("privacy.userContext.ui.enabled", true);

  /** SAFE BROWSING ***/
  user_pref("browser.safebrowsing.downloads.remote.enabled", false);

  /** MOZILLA ***/
  user_pref("permissions.default.desktop-notification", 2);
  user_pref("permissions.default.geo", 2);
  user_pref("permissions.manager.defaultsUrl", "");
  user_pref("webchannel.allowObject.urlWhitelist", "");

  /** TELEMETRY ***/
  user_pref("datareporting.policy.dataSubmissionEnabled", false);
  user_pref("datareporting.healthreport.uploadEnabled", false);
  user_pref("toolkit.telemetry.unified", false);
  user_pref("toolkit.telemetry.enabled", false);
  user_pref("toolkit.telemetry.server", "data:,");
  user_pref("toolkit.telemetry.archive.enabled", false);
  user_pref("toolkit.telemetry.newProfilePing.enabled", false);
  user_pref("toolkit.telemetry.shutdownPingSender.enabled", false);
  user_pref("toolkit.telemetry.updatePing.enabled", false);
  user_pref("toolkit.telemetry.bhrPing.enabled", false);
  user_pref("toolkit.telemetry.firstShutdownPing.enabled", false);
  user_pref("toolkit.telemetry.coverage.opt-out", true);
  user_pref("toolkit.coverage.opt-out", true);
  user_pref("toolkit.coverage.endpoint.base", "");
  user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
  user_pref("browser.newtabpage.activity-stream.telemetry", false);

  /** EXPERIMENTS ***/
  user_pref("app.shield.optoutstudies.enabled", false);
  user_pref("app.normandy.enabled", false);
  user_pref("app.normandy.api_url", "");

  /** CRASH REPORTS ***/
  user_pref("breakpad.reportURL", "");
  user_pref("browser.tabs.crashReporting.sendReport", false);
  user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);

  /** DETECTION ***/
  user_pref("captivedetect.canonicalURL", "");
  user_pref("network.captive-portal-service.enabled", false);
  user_pref("network.connectivity-service.enabled", false);

  /****************************************************************************
   * SECTION: PESKYFOX                                                        *
  ****************************************************************************/
  /** MOZILLA UI ***/
  user_pref("browser.privatebrowsing.vpnpromourl", "");
  user_pref("extensions.getAddons.showPane", false);
  user_pref("extensions.htmlaboutaddons.recommendations.enabled", false);
  user_pref("browser.discovery.enabled", false);
  user_pref("browser.shell.checkDefaultBrowser", false);
  user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
  user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
  user_pref("browser.preferences.moreFromMozilla", false);
  user_pref("browser.aboutConfig.showWarning", false);
  user_pref("browser.aboutwelcome.enabled", false);
  user_pref("browser.profiles.enabled", true);

  /** THEME ADJUSTMENTS ***/
  user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
  user_pref("browser.compactmode.show", true);
  user_pref("browser.display.focus_ring_on_anything", true);
  user_pref("browser.display.focus_ring_style", 0);
  user_pref("browser.display.focus_ring_width", 0);
  user_pref("layout.css.prefers-color-scheme.content-override", 2);
  user_pref("browser.privateWindowSeparation.enabled", false); // WINDOWS
  user_pref("browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled", true);

  /** COOKIE BANNER HANDLING ***/
  user_pref("cookiebanners.service.mode", 1);
  user_pref("cookiebanners.service.mode.privateBrowsing", 1);

  /** FULLSCREEN NOTICE ***/
  user_pref("full-screen-api.transition-duration.enter", "0 0");
  user_pref("full-screen-api.transition-duration.leave", "0 0");
  user_pref("full-screen-api.warning.delay", -1);
  user_pref("full-screen-api.warning.timeout", 0);

  /** URL BAR ***/
  user_pref("browser.urlbar.suggest.calculator", true);
  user_pref("browser.urlbar.unitConversion.enabled", true);
  user_pref("browser.urlbar.trending.featureGate", false);
  user_pref("dom.text_fragments.enabled", true);

  /** NEW TAB PAGE ***/
  user_pref("browser.newtabpage.activity-stream.feeds.topsites", false);
  user_pref("browser.newtabpage.activity-stream.showWeather", false);
  user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);

  /** POCKET ***/
  user_pref("extensions.pocket.enabled", false);

  /** DOWNLOADS ***/
  user_pref("browser.download.manager.addToRecentDocs", false);

  /** PDF ***/
  user_pref("browser.download.open_pdf_attachments_inline", true);

  /** TAB BEHAVIOR ***/
  user_pref("browser.bookmarks.openInTabClosesMenu", false);
  user_pref("browser.menu.showViewImageInfo", true);
  user_pref("findbar.highlightAll", true);
  user_pref("layout.word_select.eat_space_to_next_word", false);

  /****************************************************************************
   * START: MY OVERRIDES                                                      *
  ****************************************************************************/
  // visit https://github.com/yokoffing/Betterfox/wiki/Common-Overrides
  // visit https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening
  // Enter your personal overrides below this line:

  /****************************************************************************
   * SECTION: SMOOTHFOX                                                       *
  ****************************************************************************/
  // visit https://github.com/yokoffing/Betterfox/blob/main/Smoothfox.js
  // Enter your scrolling overrides below this line:


  /****************************************************************************************
   * Smoothfox                                                                            *
   * "Faber est suae quisque fortunae"                                                    *
   * priority: better scrolling                                                           *
   * version: 126.1                                                                       *
   * url: https://github.com/yokoffing/Betterfox                                          *
   ***************************************************************************************/

  // Use only one option at a time!
  // Reset prefs if you decide to use different option.

  /****************************************************************************************
   * OPTION: SHARPEN SCROLLING                                                           *
  ****************************************************************************************/
  // credit: https://github.com/black7375/Firefox-UI-Fix
  // only sharpen scrolling
  user_pref("apz.overscroll.enabled", true); // DEFAULT NON-LINUX
  user_pref("general.smoothScroll", true); // DEFAULT
  user_pref("mousewheel.min_line_scroll_amount", 10); // 10-40; adjust this number to your liking; default=5
  user_pref("general.smoothScroll.mouseWheel.durationMinMS", 80); // default=50
  user_pref("general.smoothScroll.currentVelocityWeighting", "0.15"); // default=.25
  user_pref("general.smoothScroll.stopDecelerationWeighting", "0.6"); // default=.4
  // Firefox Nightly only:
  // [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1846935
  user_pref("general.smoothScroll.msdPhysics.enabled", false); // [FF122+ Nightly]

  /****************************************************************************************
   * OPTION: NATURAL SMOOTH SCROLLING V3 [MODIFIED]                                      *
  ****************************************************************************************/
  // credit: https://github.com/AveYo/fox/blob/cf56d1194f4e5958169f9cf335cd175daa48d349/Natural%20Smooth%20Scrolling%20for%20user.js
  // recommended for 120hz+ displays
  // largely matches Chrome flags: Windows Scrolling Personality and Smooth Scrolling
  user_pref("apz.overscroll.enabled", true); // DEFAULT NON-LINUX
  user_pref("general.smoothScroll", true); // DEFAULT
  user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12);
  user_pref("general.smoothScroll.msdPhysics.enabled", true);
  user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600);
  user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650);
  user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25);
  user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", "2");
  user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
  user_pref("general.smoothScroll.currentVelocityWeighting", "1");
  user_pref("general.smoothScroll.stopDecelerationWeighting", "1");
  user_pref("mousewheel.default.delta_multiplier_y", 200); // 250-400; adjust this number to your liking

  /****************************************************************************
   * END: BETTERFOX                                                           *
  ****************************************************************************/
''
