diff --git a/src/browser/app/profile/better-fox.js b/src/browser/app/profile/better-fox.js index 6386bd0e..b4dfd087 100644 --- a/src/browser/app/profile/better-fox.js +++ b/src/browser/app/profile/better-fox.js @@ -8,295 +8,243 @@ */ /**************************************************************************** - * BetterFox * - * "Ad meliora." * - * version: October 2021 * - * url: https://github.com/yokoffing/Better-Fox * - * license: https://github.com/yokoffing/Better-Fox/blob/master/LICENSE * - * README: https://github.com/yokoffing/Better-Fox/blob/master/README.md * - ****************************************************************************/ + * Betterfox * + * "Ad meliora" * + * version: 106 * + * url: https://github.com/yokoffing/Betterfox * + * license: https://github.com/yokoffing/Betterfox/blob/master/LICENSE * + * README: https://github.com/yokoffing/Betterfox/blob/master/README.md * +****************************************************************************/ /**************************************************************************** * SECTION: FASTFOX * - ****************************************************************************/ -pref('browser.sessionstore.restore_pinned_tabs_on_demand', true); -pref('browser.startup.preXulSkeletonUI', false); -pref('browser.startup.homepage.abouthome_cache.enabled', true); +****************************************************************************/ +user_pref("image.jxl.enabled", true); +user_pref("layout.css.grid-template-masonry-value.enabled", true); +user_pref("dom.enable_web_task_scheduling", true); +user_pref("gfx.offscreencanvas.enabled", true); +user_pref("layout.css.font-loading-api.workers.enabled", true); +user_pref("layout.css.animation-composition.enabled", true); +user_pref("dom.importMaps.enabled", true); /**************************************************************************** * SECTION: SECUREFOX * - ****************************************************************************/ +****************************************************************************/ /** TRACKING PROTECTION ***/ -pref('browser.contentblocking.category', 'strict'); -pref('privacy.trackingprotection.enabled', true); -pref('privacy.trackingprotection.socialtracking.enabled', true); -pref( - 'urlclassifier.trackingSkipURLs', - '*.reddit.com, *.twitter.com, *.twimg.com' -); -pref( - 'urlclassifier.features.socialtracking.skipURLs', - '*.instagram.com, *.twitter.com, *.twimg.com' -); -pref('fission.autostart', true); -pref('beacon.enabled', false); -pref('dom.battery.enabled', false); -pref('security.pki.crlite_mode', 2); -pref('security.remote_settings.crlite_filters.enabled', true); -pref('dom.storage.next_gen', true); -pref('network.cookie.sameSite.laxByDefault', true); -pref('network.cookie.sameSite.noneRequiresSecure', true); -pref('network.cookie.sameSite.schemeful', false); -pref('privacy.webrtc.globalMuteToggles', true); - -/** CLEARING DATA DEFAULTS ***/ -pref('privacy.cpd.history', true); -pref('privacy.cpd.formdata', true); -pref('privacy.cpd.offlineApps', true); -pref('privacy.cpd.cache', true); -pref('privacy.cpd.cookies', true); -pref('privacy.cpd.sessions', true); -pref('privacy.cpd.siteSettings', false); -pref('privacy.sanitize.timeSpan', 0); -pref('privacy.history.custom', true); +user_pref("browser.contentblocking.category", "strict"); +user_pref("privacy.trackingprotection.emailtracking.enabled", true); +user_pref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid"); +user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com"); +user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); +user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", true); +user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); +user_pref("beacon.enabled", false); + +/** 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); +user_pref("security.cert_pinning.enforcement_level", 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); + +/** FONTS ***/ +user_pref("layout.css.font-visibility.private", 1); +user_pref("layout.css.font-visibility.trackingprotection", 1); + +/** DISK AVOIDANCE ***/ +user_pref("browser.cache.disk.enable", false); +user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); +user_pref("media.memory_cache_max_size", 65536); +user_pref("browser.sessionstore.privacy_level", 2); +user_pref("browser.pagethumbnails.capturing_disabled", true); + +/** SHUTDOWN & SANITIZING ***/ +user_pref("privacy.history.custom", true); /** SPECULATIVE CONNECTIONS ***/ -pref('network.predictor.enabled', false); -pref('network.dns.disablePrefetch', true); -pref('network.dns.disablePrefetchFromHTTPS', true); -pref('browser.urlbar.speculativeConnect.enabled', false); -pref('network.prefetch-next', false); -pref('network.http.speculative-parallel-limit', 0); -pref('network.preload', false); +user_pref("network.http.speculative-parallel-limit", 0); +user_pref("network.dns.disablePrefetch", true); +user_pref("browser.urlbar.speculativeConnect.enabled", false); +user_pref("browser.places.speculativeConnect.enabled", false); +user_pref("network.prefetch-next", false); +user_pref("network.predictor.enabled", false); +user_pref("network.predictor.enable-prefetch", false); /** SEARCH / URL BAR ***/ -pref('browser.search.separatePrivateDefault', true); -pref('browser.search.separatePrivateDefault.ui.enabled', true); -pref('browser.search.suggest.enabled', false); -pref('browser.urlbar.groupLabels.enabled', false); -pref('browser.urlbar.suggest.quicksuggest', false); -pref('browser.urlbar.suggest.quicksuggest.sponsored', false); -pref('browser.fixup.alternate.enabled', false); -pref('security.insecure_connection_text.enabled', true); -pref('security.insecure_connection_text.pbmode.enabled', true); -pref('network.IDN_show_punycode', true); - -/** HTTPS-FIRST POLICY ***/ -pref('dom.security.https_first', true); +user_pref("browser.search.separatePrivateDefault", 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.suggest.quicksuggest.sponsored", false); +user_pref("browser.urlbar.suggest.quicksuggest.nonsponsored", false); +user_pref("network.IDN_show_punycode", true); /** HTTPS-ONLY MODE ***/ -pref('dom.security.https_only_mode_pbm', true); -pref('dom.security.https_only_mode_ever_enabled_pbm', true); -pref('dom.security.https_only_mode_send_http_background_request', false); +user_pref("dom.security.https_only_mode", true); +user_pref("dom.security.https_only_mode_error_page_user_suggestions", true); /** DNS-over-HTTPS (DOH) ***/ -pref('network.trr.request_timeout_ms', 4000); -pref('network.trr.send_user-agent_headers', false); -pref('network.dns.skipTRR-when-parental-control-enabled', false); +user_pref("network.dns.skipTRR-when-parental-control-enabled", false); + +/** PROXY / SOCKS / IPv6 ***/ +user_pref("network.proxy.socks_remote_dns", true); +user_pref("network.file.disable_unc_paths", true); +user_pref("network.gio.supported-protocols", ""); /** PASSWORDS AND AUTOFILL ***/ -pref('signon.autofillForms.http', false); -pref('security.insecure_field_warning.contextual.enabled', true); -pref('signon.privateBrowsingCapture.enabled', false); -/* NOTE: Remove everything below this line if you use Firefox's password manager */ -pref('signon.management.page.breach-alerts.enabled', false); -pref('signon.management.page.breachAlertUrl', ''); -pref('browser.contentblocking.report.lockwise.enabled', false); -pref('browser.contentblocking.report.lockwise.how_it_works.url', ''); -pref('signon.rememberSignons', false); -pref('signon.rememberSignons.visibilityToggle', false); -pref('signon.schemeUpgrades', false); -pref('signon.showAutoCompleteFooter', false); -pref('signon.autologin.proxy', false); -pref('signon.debug', false); -pref('signon.generation.available', false); -pref('signon.generation.enabled', false); -pref('signon.management.page.fileImport.enabled', false); -pref('signon.importedFromSqlite', false); -pref('signon.recipes.path', ''); -pref('signon.autofillForms', false); -pref('signon.autofillForms.autocompleteOff', true); -pref('signon.showAutoCompleteOrigins', false); -pref('signon.storeWhenAutocompleteOff', false); -pref('signon.formlessCapture.enabled', false); -pref('extensions.fxmonitor.enabled', false); +user_pref("signon.formlessCapture.enabled", false); +user_pref("signon.privateBrowsingCapture.enabled", false); +user_pref("signon.autofillForms", false); +user_pref("signon.rememberSignons", false); +user_pref("editor.truncate_user_pastes", false); +user_pref("layout.forms.reveal-password-button.enabled", true); /** ADDRESS + CREDIT CARD MANAGER ***/ -pref('extensions.formautofill.addresses.enabled', false); -pref('extensions.formautofill.available', 'off'); -pref('extensions.formautofill.creditCards.available', false); -pref('extensions.formautofill.creditCards.enabled', false); -pref('extensions.formautofill.heuristics.enabled', false); -pref('browser.formfill.enable', false); +user_pref("extensions.formautofill.addresses.enabled", false); +user_pref("extensions.formautofill.creditCards.enabled", false); +user_pref("extensions.formautofill.heuristics.enabled", false); +user_pref("browser.formfill.enable", false); /** MIXED CONTENT + CROSS-SITE ***/ -pref('network.auth.subresource-http-auth-allow', 1); -pref('security.mixed_content.upgrade_display_content', true); -pref('dom.block_download_insecure', true); -pref('pdfjs.enableScripting', false); -pref('extensions.postDownloadThirdPartyPrompt', false); -pref('permissions.delegation.enabled', false); -pref('network.http.referer.XOriginTrimmingPolicy', 2); +user_pref("network.auth.subresource-http-auth-allow", 1); +user_pref("pdfjs.enableScripting", false); +user_pref("extensions.postDownloadThirdPartyPrompt", false); +user_pref("permissions.delegation.enabled", false); + +/** HEADERS / REFERERS ***/ +user_pref("network.http.referer.defaultPolicy.trackers", 1); +user_pref("network.http.referer.defaultPolicy.trackers.pbmode", 1); +user_pref("network.http.referer.XOriginTrimmingPolicy", 2); + +/** CONTAINERS ***/ +user_pref("privacy.userContext.ui.enabled", true); + +/** WEBRTC ***/ +user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true); +user_pref("media.peerconnection.ice.default_address_only", true); /** GOOGLE SAFE BROWSING ***/ -pref('browser.safebrowsing.downloads.remote.enabled', false); -pref('browser.safebrowsing.downloads.remote.url', ''); -/* WARNING: Be sure to have alternate security measures if you disable Safe Browsing! */ -/* NOTE: Remove everything below this line if you use this feature */ -pref('browser.safebrowsing.malware.enabled', false); -pref('browser.safebrowsing.phishing.enabled', false); -pref('browser.safebrowsing.downloads.enabled', false); -pref('browser.safebrowsing.downloads.remote.block_potentially_unwanted', false); -pref('browser.safebrowsing.downloads.remote.block_uncommon', false); +user_pref("browser.safebrowsing.malware.enabled", false); +user_pref("browser.safebrowsing.phishing.enabled", false); +user_pref("browser.safebrowsing.downloads.enabled", false); +user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false); +user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false); +user_pref("browser.safebrowsing.blockedURIs.enabled", false); /** MOZILLA ***/ -pref('permissions.default.geo', 2); -pref( - 'geo.provider.network.url', - 'https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%' -); -pref('app.update.auto', false); -pref('app.update.background.scheduling.enabled', false); +user_pref("identity.fxaccounts.enabled", false); +user_pref("browser.tabs.firefox-view", false); +user_pref("dom.push.enabled", false); +user_pref("permissions.default.desktop-notification", 2); +user_pref("permissions.default.geo", 2); +user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); +user_pref("geo.provider.ms-windows-location", false); // WINDOWS +user_pref("geo.provider.use_corelocation", false); // MAC +user_pref("geo.provider.use_gpsd", false); // LINUX +user_pref("geo.provider.use_geoclue", false); // LINUX +user_pref("browser.region.network.url", ""); +user_pref("browser.region.update.enabled", false); /** TELEMETRY ***/ -pref('toolkit.telemetry.unified', false); -pref('toolkit.telemetry.enabled', false); -pref('toolkit.telemetry.server', 'data:,'); -pref('toolkit.telemetry.archive.enabled', false); -pref('toolkit.telemetry.newProfilePing.enabled', false); -pref('toolkit.telemetry.shutdownPingSender.enabled', false); -pref('toolkit.telemetry.updatePing.enabled', false); -pref('toolkit.telemetry.bhrPing.enabled', false); -pref('toolkit.telemetry.firstShutdownPing.enabled', false); -pref('corroborator.enabled', false); -pref('toolkit.telemetry.coverage.opt-out', true); -pref('toolkit.coverage.opt-out', true); -pref('datareporting.healthreport.uploadEnabled', false); -pref('datareporting.policy.dataSubmissionEnabled', false); -pref('app.shield.optoutstudies.enabled', false); -pref('browser.discovery.enabled', false); -pref('browser.tabs.crashReporting.sendReport', false); -pref('browser.crashReports.unsubmittedCheck.autoSubmit2', false); -pref('default-browser-agent.enabled', false); -pref('extensions.abuseReport.enabled', false); -pref('app.normandy.enabled', false); -pref('browser.ping-centre.telemetry', false); -pref('browser.newtabpage.activity-stream.feeds.telemetry', false); -pref('browser.newtabpage.activity-stream.telemetry', 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("datareporting.healthreport.uploadEnabled", false); +user_pref("datareporting.policy.dataSubmissionEnabled", false); +user_pref("app.shield.optoutstudies.enabled", false); +user_pref("browser.discovery.enabled", false); +user_pref("browser.tabs.crashReporting.sendReport", false); +user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); +user_pref("captivedetect.canonicalURL", ""); +user_pref("network.captive-portal-service.enabled", false); +user_pref("network.connectivity-service.enabled", false); +user_pref("default-browser-agent.enabled", false); +user_pref("app.normandy.enabled", false); +user_pref("app.normandy.api_url", ""); +user_pref("browser.ping-centre.telemetry", false); +user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false); +user_pref("browser.newtabpage.activity-stream.telemetry", false); /**************************************************************************** * SECTION: PESKYFOX * - ****************************************************************************/ - +****************************************************************************/ /** MOZILLA UI ***/ -pref('toolkit.legacyUserProfileCustomizations.stylesheets', true); -pref('browser.privatebrowsing.vpnpromourl', ''); -pref('extensions.getAddons.showPane', false); -pref('extensions.htmlaboutaddons.recommendations.enabled', false); -pref('browser.shell.checkDefaultBrowser', false); -pref('browser.aboutwelcome.enabled', true); -pref('browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons', false); -pref( - 'browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features', - false -); -pref( - 'extensions.webextensions.restrictedDomains', - 'accounts-static.cdn.mozilla.net,accounts.firefox.com,addons.cdn.mozilla.net,api.accounts.firefox.com,content.cdn.mozilla.net,discovery.addons.mozilla.org,install.mozilla.org,oauth.accounts.firefox.com,profile.accounts.firefox.com,support.mozilla.org,sync.services.mozilla.com' -); - -/** WARNINGS ***/ -pref('browser.tabs.warnOnClose', false); -pref('browser.tabs.warnOnCloseOtherTabs', false); -pref('browser.tabs.warnOnOpen', false); -pref('browser.aboutConfig.showWarning', false); +user_pref("layout.css.prefers-color-scheme.content-override", 2); +user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); +user_pref("accessibility.force_disabled", 1); +user_pref("devtools.accessibility.enabled", false); +user_pref("browser.compactmode.show", true); +user_pref("browser.privatebrowsing.vpnpromourl", ""); +user_pref("extensions.getAddons.showPane", false); +user_pref("extensions.htmlaboutaddons.recommendations.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.tabs.tabmanager.enabled", false); +user_pref("findbar.highlightAll", true); +user_pref("browser.privatebrowsing.enable-new-indicator", false); /** FULLSCREEN ***/ -pref('full-screen-api.transition-duration.enter', '0 0'); -pref('full-screen-api.transition-duration.leave', '0 0'); -pref('full-screen-api.warning.delay', -1); -pref('full-screen-api.warning.timeout', -1); +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", 0); +user_pref("full-screen-api.warning.timeout", 0); + +/** URL BAR ***/ +user_pref("browser.urlbar.suggest.engines", false); +user_pref("browser.urlbar.suggest.topsites", false); +user_pref("browser.urlbar.suggest.calculator", true); +user_pref("browser.urlbar.unitConversion.enabled", true); /** NEW TAB PAGE ***/ -pref('browser.startup.page', 3); -pref('browser.newtabpage.activity-stream.discoverystream.enabled', false); -pref('browser.newtabpage.activity-stream.showSponsored', false); -pref('browser.newtabpage.activity-stream.showSponsoredTopSites', false); -pref('browser.newtabpage.activity-stream.feeds.section.topstories', false); -pref('browser.newtabpage.activity-stream.feeds.topsites', false); -pref('browser.newtabpage.activity-stream.feeds.snippets', false); -pref('browser.newtabpage.activity-stream.feeds.section.highlights', false); -pref( - 'browser.newtabpage.activity-stream.section.highlights.includeBookmarks', - false -); -pref( - 'browser.newtabpage.activity-stream.section.highlights.includeDownloads', - false -); -pref( - 'browser.newtabpage.activity-stream.section.highlights.includePocket', - false -); -pref( - 'browser.newtabpage.activity-stream.section.highlights.includeVisited', - false -); -pref('browser.startup.homepage_override.mstone', 'ignore'); -pref('browser.messaging-system.whatsNewPanel.enabled', false); +user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); +user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); /*** POCKET ***/ -pref('extensions.pocket.enabled', false); -pref('extensions.pocket.api', ' '); -pref('extensions.pocket.oAuthConsumerKey', ' '); -pref('extensions.pocket.site', ' '); +user_pref("extensions.pocket.enabled", false); /** DOWNLOADS ***/ -pref('browser.download.useDownloadDir', false); -pref('browser.download.manager.addToRecentDocs', false); - -/** VARIOUS ***/ -pref('browser.compactmode.show', true); -pref('browser.menu.showViewImageInfo', true); -pref('browser.urlbar.suggest.engines', false); -pref('browser.urlbar.suggest.topsites', false); -pref('permissions.default.desktop-notification', 2); -pref('dom.push.enabled', false); -pref('findbar.highlightAll', true); -pref('layout.spellcheckDefault', 2); -pref('accessibility.force_disabled', 1); -pref('browser.bookmarks.max_backups', 2); -pref('browser.display.show_image_placeholders', false); -pref('view_source.wrap_long_lines', true); -pref('devtools.debugger.ui.editor-wrapping', true); -pref('layout.css.constructable-stylesheets.enabled', true); -pref('layout.css.grid-template-masonry-value.enabled', true); -pref('dom.forms.inputmode', true); +user_pref("browser.download.useDownloadDir", false); +user_pref("browser.download.alwaysOpenPanel", false); +user_pref("browser.download.manager.addToRecentDocs", false); +user_pref("browser.download.always_ask_before_handling_new_types", true); + +/** PDF ***/ +user_pref("browser.download.open_pdf_attachments_inline", true); /** TAB BEHAVIOR ***/ -pref('dom.disable_window_move_resize', true); -pref('browser.tabs.loadBookmarksInTabs', true); -pref('browser.bookmarks.openInTabClosesMenu', false); -pref('image.jxl.enabled', true); -pref('editor.truncate_user_pastes', false); -pref('media.videocontrols.picture-in-picture.video-toggle.has-used', true); -pref('clipboard.plainTextOnly', true); -pref('dom.popup_allowed_events', 'click dblclick mousedown pointerdown'); +user_pref("browser.link.open_newwindow.restriction", 0); +user_pref("dom.disable_window_move_resize", true); +user_pref("browser.tabs.loadBookmarksInTabs", true); +user_pref("browser.bookmarks.openInTabClosesMenu", false); +user_pref("clipboard.plainTextOnly", true); +user_pref("dom.popup_allowed_events", "click dblclick"); +user_pref("layout.css.has-selector.enabled", true); /**************************************************************************** * SECTION: SMOOTHFOX * - ****************************************************************************/ - -/** EDGE-LIKE SMOOTH SCROLLING ***/ -/* Uncomment to enable */ -// user_pref("general.smoothScroll", true); -// user_pref("general.smoothScroll.currentVelocityWeighting", "0.1"); -// user_pref("general.smoothScroll.mouseWheel.durationMaxMS", 250); -// user_pref("general.smoothScroll.mouseWheel.durationMinMS", 125); -// user_pref("general.smoothScroll.stopDecelerationWeighting", "0.7"); -// user_pref("mousewheel.min_line_scroll_amount", 25); -// user_pref("apz.overscroll.enabled", true); /*elastic overscroll*/ +****************************************************************************/ +// see https://github.com/yokoffing/Betterfox/blob/master/Smoothfox.js +// Enter your scrolling prefs below this line: + +/**************************************************************************** + * START: MY OVERRIDES * +****************************************************************************/ +// Enter your personal prefs below this line: /**************************************************************************** * END: BETTERFOX * - ****************************************************************************/ +****************************************************************************/