Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v123-126 #276

Merged
merged 52 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
35474a4
FF view prefs
yokoffing Feb 21, 2024
0f818cd
adjust relay pref
yokoffing Feb 21, 2024
e95eb32
signon.firefoxRelay.feature
yokoffing Feb 21, 2024
43546f7
add op pref
yokoffing Feb 21, 2024
f6affa6
missing pref text
yokoffing Feb 28, 2024
bc8d1eb
Merge branch 'main' into 123
yokoffing Mar 14, 2024
80eb522
spelling
yokoffing Mar 18, 2024
5a7816e
Merge branch 'main' into 123
yokoffing Mar 21, 2024
f0da2bc
DNS threads reset
yokoffing Mar 21, 2024
705c50c
remove network.dns.max_high_priority_threads
yokoffing Mar 21, 2024
ae7c8ee
layout.css.has-selector.enabled is now default
yokoffing Mar 21, 2024
c18c480
layout.css.has-selector.enabled is now default
yokoffing Mar 21, 2024
c4a5018
add network.http.rcwn.enabled
yokoffing Mar 21, 2024
96864ac
more details
yokoffing Mar 21, 2024
4775dbc
edit RCWN title
yokoffing Mar 21, 2024
4a20f7e
remove push
yokoffing Mar 21, 2024
e4de66d
CRLite requires push
yokoffing Mar 21, 2024
155c084
PingCentre telemetry removed
yokoffing Mar 21, 2024
ab288df
PingCentre telemetry removed
yokoffing Mar 21, 2024
9ec4ed5
Update Peskyfox.js
yokoffing Mar 21, 2024
56544e8
Update Peskyfox.js
yokoffing Mar 21, 2024
3d9b3b4
Update Fastfox.js
yokoffing Mar 21, 2024
e57d87d
Update user-overrides.js
yokoffing Mar 22, 2024
0f84895
add resource
yokoffing Mar 22, 2024
2f6796d
add line on performance
yokoffing Mar 23, 2024
ff2e690
fix decimals
yokoffing Apr 11, 2024
a9de61b
Update Fastfox.js
yokoffing Apr 16, 2024
b05dfcf
add Mercury
yokoffing Apr 16, 2024
36f63d9
browser.urlbar.yelp.featureGate
yokoffing Apr 16, 2024
46a27b1
DLP
yokoffing Apr 16, 2024
fed34f8
prefetchfromhttps now false (FF127+)
yokoffing May 5, 2024
7762e11
add network.dns.disablePrefetchFromHTTPS
yokoffing May 5, 2024
8b403e9
update value for network.http.speculative-parallel-limit
yokoffing May 5, 2024
91e69b6
Bounce Tracking Protection
yokoffing May 17, 2024
847ba04
SERP Telemetry
yokoffing May 17, 2024
ff2a516
Update Securefox.js
yokoffing May 17, 2024
61c4c87
Update Securefox.js
yokoffing May 17, 2024
ec40cd2
Super Resolution now implemented default
yokoffing May 17, 2024
f1c5b4e
note
yokoffing May 17, 2024
1bb3c6e
Update Fastfox.js
yokoffing May 17, 2024
ef9c886
Update user.js
yokoffing May 20, 2024
4ca0d43
remove speculative loading test
yokoffing May 20, 2024
30228f3
NTP: wallpapers and weather
yokoffing May 20, 2024
c68b528
ver #
yokoffing May 20, 2024
e9b0b4f
ver #
yokoffing May 20, 2024
9f4409d
ver #
yokoffing May 20, 2024
9212b98
ver #
yokoffing May 20, 2024
a687cb7
account for MSDp
yokoffing May 20, 2024
322002b
add text fragment (experimental)
yokoffing May 20, 2024
4f136e9
corroborator.enabled removed FF126
yokoffing May 20, 2024
ef6e985
browser.urlbar.yelp.featureGate FF124
yokoffing May 20, 2024
c3c64a2
remove duplicate
yokoffing May 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 34 additions & 18 deletions Fastfox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Fastfox *
* "Non ducor duco" *
* priority: speedy browsing *
* version: 122.1 *
* version: 126 *
* url: https://github.com/yokoffing/Betterfox *
***************************************************************************************/

Expand All @@ -13,8 +13,8 @@

// PREF: initial paint delay
// How long FF will wait before rendering the page (in ms)
// [NOTE] Older PCs may want to use 250-750.
// [NOTE] Dark Reader users may want to use 1000-2000 [3].
// [NOTE] You may prefer using 250.
// [NOTE] Dark Reader users may want to use 1000 [3].
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1283302
// [2] https://docs.google.com/document/d/1BvCoZzk2_rNZx3u9ESPoFjSADRI0zIPeJRXFLwWXx_4/edit#heading=h.28ki6m8dg30z
// [3] https://old.reddit.com/r/firefox/comments/o0xl1q/reducing_cpu_usage_of_dark_reader_extension/
Expand Down Expand Up @@ -98,13 +98,13 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
//user_pref("gfx.webrender.software", true); // Software Webrender uses CPU instead of GPU
//user_pref("gfx.webrender.software.opengl", true); // LINUX

// PREF: NVIDIA RTX Video Super Resolution for video overlay [WINDOWS]
// [NOTE] May not work on Stable release [2].
// This is also a setting in NVIDIA's driver settings, so once this is
// stable, it should default to true.
// PREF: NVIDIA RTX Video Super Resolution and RTX Video HDR [WINDOWS] [FF125+]
// Super Resolution activiates on video content 720p or below.
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1823135
// [2] https://www.reddit.com/r/firefox/comments/17a0noa/nvidia_video_super_resolution_not_working_on/
//user_pref("gfx.webrender.super-resolution.nvidia", true);
// [3] https://blogs.nvidia.com/blog/ai-decoded-rtxvideo-firefox/
// [4] https://www.mozilla.org/en-US/firefox/126.0/releasenotes/
//user_pref("gfx.webrender.super-resolution.nvidia", true); // [REMOVED]

// PREF: GPU-accelerated Canvas2D
// Use gpu-canvas instead of to skia-canvas.
Expand Down Expand Up @@ -165,6 +165,25 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
//user_pref("browser.cache.disk.capacity", 512000); // default=256000; size of disk cache; 1024000=1GB, 2048000=2GB
//user_pref("browser.cache.disk.max_entry_size", 51200); // DEFAULT (50 MB); maximum size of an object in disk cache

// PREF: Race Cache With Network (RCWN) [FF59+]
// [ABOUT] about:networking#rcwn
// Firefox concurrently sends requests for cached resources to both the
// local disk cache and the network server. The browser uses whichever
// result arrives first and cancels the other request. This approach sometimes
// loads pages faster because the network can be quicker than accessing the cache
// on a hard drive. When RCWN is enabled, the request might be served from
// the server even if you have valid entry in the cache. Set to false if your
// intention is to increase cache usage and reduce network usage.
// [1] https://slides.com/valentingosu/race-cache-with-network-2017
// [2] https://simonhearne.com/2020/network-faster-than-cache/
// [3] https://support.mozilla.org/en-US/questions/1267945
// [4] https://askubuntu.com/questions/1214862/36-syns-in-a-row-how-to-limit-firefox-connections-to-one-website
// [5] https://bugzilla.mozilla.org/show_bug.cgi?id=1622859
//user_pref("network.http.rcwn.enabled", true); // DEFAULT

// PREF: attempt to RCWN only if a resource is smaller than this size
//user_pref("network.http.rcwn.small_resource_size_kb", 256); // DEFAULT

// PREF: cache memory pool
// Cache v2 provides a memory pool that stores metadata (such as response headers)
// for recently read cache entries [1]. It is managed by a cache thread, and caches with
Expand Down Expand Up @@ -351,8 +370,8 @@ user_pref("network.dnsCacheExpiration", 3600); // keep entries for 1 hour
//user_pref("network.dnsCacheExpirationGracePeriod", 240); // default=60; cache DNS entries for 4 minutes after they expire

// PREF: the number of threads for DNS
user_pref("network.dns.max_high_priority_threads", 8); // default=5
//user_pref("network.dns.max_any_priority_threads", 3); // DEFAULT
//user_pref("network.dns.max_high_priority_threads", 40); // DEFAULT [FF 123?]
//user_pref("network.dns.max_any_priority_threads", 24); // DEFAULT [FF 123?]

// PREF: increase TLS token caching
user_pref("network.ssl_tokens_cache_capacity", 10240); // default=2048; more TLS token caching (fast reconnects)
Expand Down Expand Up @@ -388,7 +407,7 @@ user_pref("network.ssl_tokens_cache_capacity", 10240); // default=2048; more TLS
// [3] https://searchfox.org/mozilla-central/rev/028c68d5f32df54bca4cf96376f79e48dfafdf08/modules/libpref/init/all.js#1280-1282
// [4] https://www.keycdn.com/blog/resource-hints#prefetch
// [5] https://3perf.com/blog/link-rels/#prefetch
//user_pref("network.http.speculative-parallel-limit", 6); // DEFAULT
//user_pref("network.http.speculative-parallel-limit", 20); // DEFAULT (FF127+?)

// PREF: DNS prefetching <link rel="dns-prefetch">
// Used for cross-origin connections to provide small performance improvements.
Expand All @@ -399,13 +418,15 @@ user_pref("network.ssl_tokens_cache_capacity", 10240); // default=2048; more TLS
// [2] https://css-tricks.com/prefetching-preloading-prebrowsing/#dns-prefetching
// [3] https://www.keycdn.com/blog/resource-hints#2-dns-prefetching
// [4] http://www.mecs-press.org/ijieeb/ijieeb-v7-n5/IJIEEB-V7-N5-2.pdf
// [5] https://bugzilla.mozilla.org/show_bug.cgi?id=1596935
user_pref("network.dns.disablePrefetch", true);
//user_pref("network.dns.disablePrefetchFromHTTPS", true); // DEFAULT
user_pref("network.dns.disablePrefetchFromHTTPS", true); // (FF127+ false)

// PREF: enable <link rel="preconnect"> tag and Link: rel=preconnect response header handling
//user_pref("network.preconnect", true); // DEFAULT

// PREF: preconnect to the autocomplete URL in the address bar
// Whether to warm up network connections for autofill or search results.
// Firefox preloads URLs that autocomplete when a user types into the address bar.
// Connects to destination server ahead of time, to avoid TCP handshake latency.
// [NOTE] Firefox will perform DNS lookup (if enabled) and TCP and TLS handshake,
Expand All @@ -414,6 +435,7 @@ user_pref("network.dns.disablePrefetch", true);
//user_pref("browser.urlbar.speculativeConnect.enabled", false);

// PREF: mousedown speculative connections on bookmarks and history [FF98+]
// Whether to warm up network connections for places:menus and places:toolbar.
//user_pref("browser.places.speculativeConnect.enabled", false);

// PREF: network preload <link rel="preload"> [REMOVED]
Expand Down Expand Up @@ -540,12 +562,6 @@ user_pref("layout.css.grid-template-masonry-value.enabled", true);
// [2] https://medium.com/airbnb-engineering/building-a-faster-web-experience-with-the-posttask-scheduler-276b83454e91
user_pref("dom.enable_web_task_scheduling", true);

// PREF: CSS :has() selector [NIGHTLY]
// Needed for some extensions, filters, and customizations.
// [1] https://developer.mozilla.org/en-US/docs/Web/CSS/:has
// [2] https://caniuse.com/css-has
user_pref("layout.css.has-selector.enabled", true);

// PREF: HTML Sanitizer API [NIGHTLY]
// [1] https://developer.mozilla.org/en-US/docs/Web/API/Sanitizer
// [2] https://caniuse.com/mdn-api_sanitizer
Expand Down
16 changes: 13 additions & 3 deletions Peskyfox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Peskyfox *
* "Aquila non capit muscas" *
* priority: remove annoyances *
* version: 122 *
* version: 126 *
* url: https://github.com/yokoffing/Betterfox *
* credit: Some prefs are reproduced and adapted from the arkenfox project *
* credit urL: https://github.com/arkenfox/user.js *
Expand Down Expand Up @@ -216,7 +216,8 @@ user_pref("browser.urlbar.trending.featureGate", false);
//user_pref("browser.urlbar.mdn.featureGate", false); // [FF117+] [HIDDEN PREF]
//user_pref("browser.urlbar.pocket.featureGate", false); // [FF116+] [DEFAULT: false]
//user_pref("browser.urlbar.weather.featureGate", false); // [FF108+] [DEFAULT: false]
//user_pref("browser.urlbar.clipboard.featureGate", false); // [FF118+] [DEFAULT: false]
//user_pref("browser.urlbar.clipboard.featureGate", false); // [FF118+] [DEFAULT: true FF125+]
//user_pref("browser.urlbar.yelp.featureGate", false); // [FF124+] [DEFAULT: false]

// PREF: disable tab-to-search [FF85+]
// Alternatively, you can exclude on a per-engine basis by unchecking them in Options>Search
Expand All @@ -236,6 +237,10 @@ user_pref("browser.urlbar.trending.featureGate", false);
// disable=0
//user_pref("browser.urlbar.maxRichResults", 5); // default=10

// PREF: text fragments [FF126+ NIGHTLY]
// [1] https://developer.mozilla.org/en-US/docs/Web/Text_fragments
//user_pref("dom.text_fragments.enabled", true);

/****************************************************************************
* SECTION: AUTOPLAY *
****************************************************************************/
Expand Down Expand Up @@ -282,7 +287,9 @@ user_pref("browser.urlbar.trending.featureGate", false);
//user_pref("browser.newtabpage.activity-stream.discoverystream.enabled", false);
//user_pref("browser.newtabpage.activity-stream.showSearch", true); // NTP Web Search [DEFAULT]
user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); // Shortcuts
//user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Sponsored shortcuts [FF83+]
//user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Shortcuts > Sponsored shortcuts [FF83+]
//user_pref("browser.newtabpage.activity-stream.showWeather", false); // Weather [FF128+ NIGHTLY]
//user_pref("browser.newtabpage.activity-stream.system.showWeather", false); // Weather [FF128+ NIGHTLY]
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // Recommended by Pocket
//user_pref("browser.newtabpage.activity-stream.showSponsored", false); // Sponsored Stories [FF58+]
//user_pref("browser.newtabpage.activity-stream.feeds.section.highlights", false); // Recent Activity [DEFAULT]
Expand All @@ -292,6 +299,9 @@ user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
//user_pref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false);
//user_pref("browser.newtabpage.activity-stream.feeds.snippets", false); // [DEFAULT]

// PREF: wallpapers on New Tab [FF128+ NIGHTLY]
//user_pref("browser.newtabpage.activity-stream.newtabWallpapers.enabled", false); // Wallpapers

// PREF: clear default topsites
// [NOTE] This does not block you from adding your own.
//user_pref("browser.newtabpage.activity-stream.default.sites", "");
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
[![Visitors](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fyokoffing%2FBetter-Fox&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=visitors&edge_flat=false)](https://hits.seeyoufarm.com)

# Betterfox
31% faster than regular Firefox<sup>[1](https://medium.com/@mihirgrand/comparing-popular-firefox-forks-6fa83fdfdaad#:~:text=31%25%20more%20than%20vanilla%20Firefox)</sup> :rocket:

[about:config](https://support.mozilla.org/en-US/kb/about-config-editor-firefox) tweaks to enhance [Mozilla Firefox](https://www.mozilla.org/en-US/firefox/new/).

:new: Now with [ESR support](https://github.com/yokoffing/Betterfox/tree/esr115#betterfox-esr).
Expand Down Expand Up @@ -52,6 +54,7 @@ The `user.js` — a configuration file that controls Firefox settings — is cur

### Browser Integration
* [Midori](https://github.com/goastian/midori-desktop/blob/ESR115/README.md) | [files](https://github.com/goastian/midori-desktop/blob/f3d8d96eb8e08f35a64e3c957bea4e839d7c7730/floorp/browser/components/userjsUtils.sys.mjs#L28-L33) (Dec 2023?)
* [Mercury](https://github.com/Alex313031/Mercury/releases/tag/v.115.3.0) | [files](https://github.com/Alex313031/Mercury/commit/eb9600f9fb8f48c8f5b5c6f3264fbcdb5caff7f5) (Sep 2023)
* [Waterfox](https://www.waterfox.net/en-US/docs/releases/G6.0/) | [files](https://github.com/WaterfoxCo/Waterfox/tree/current/waterfox/browser/app/profile) (Sep 2023)
* [Floorp](https://github.com/Floorp-Projects/Floorp#-betterfox) <sup>[1](https://github.com/Floorp-Projects/Floorp/issues/233#issuecomment-1543557167) [2](https://blog.ablaze.one/3135/2023-04-01/)</sup> | [files](https://github.com/Floorp-Projects/Floorp/blob/ESR115/floorp/browser/components/preferences/userjs.inc.xhtml) (Apr 2023)
* [Pulse](https://github.com/pulse-browser/browser#%EF%B8%8F-credits) | [files](https://github.com/pulse-browser/browser/tree/alpha/src/browser/app/profile) (Dec 2021)
Expand Down
Loading