Skip to content

Commit e026ed7

Browse files
authored
v.129 (#315)
1 parent 29f0816 commit e026ed7

7 files changed

+131
-204
lines changed

Fastfox.js

+14-16
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Fastfox *
44
* "Non ducor duco" *
55
* priority: speedy browsing *
6-
* version: 128 *
6+
* version: 129 *
77
* url: https://github.com/yokoffing/Betterfox *
88
***************************************************************************************/
99

@@ -107,8 +107,8 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
107107
// [2] https://github.com/yokoffing/Betterfox/issues/153
108108
// [3] https://github.com/yokoffing/Betterfox/issues/198
109109
//user_pref("gfx.canvas.accelerated", true); // DEFAULT macOS LINUX [FF110]; not compatible with WINDOWS integrated GPUs
110-
user_pref("gfx.canvas.accelerated.cache-items", 4096); // default=2048; alt=8192
111-
user_pref("gfx.canvas.accelerated.cache-size", 512); // default=256; alt=1024
110+
user_pref("gfx.canvas.accelerated.cache-items", 4096); // default=2048; Chrome=4096
111+
user_pref("gfx.canvas.accelerated.cache-size", 512); // default=256; Chrome=512
112112
user_pref("gfx.content.skia-font-cache-size", 20); // default=5; Chrome=20
113113
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1239151#c2
114114

@@ -124,11 +124,6 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
124124
//user_pref("media.gpu-process-decoder", true); // DEFAULT WINDOWS
125125
//user_pref("media.ffmpeg.vaapi.enabled", true); // LINUX
126126

127-
// PREF: disable AV1 for hardware decodeable videos
128-
// Firefox sometimes uses AV1 video decoding even to GPUs which do not support it.
129-
// [1] https://www.reddit.com/r/AV1/comments/s5xyph/youtube_av1_codec_have_worse_quality_than_old_vp9
130-
//user_pref("media.av1.enabled", false);
131-
132127
// PREF: hardware and software decoded video overlay [FF116+]
133128
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1829063
134129
// [2] https://phabricator.services.mozilla.com/D175993
@@ -171,7 +166,8 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
171166
// [3] https://support.mozilla.org/en-US/questions/1267945
172167
// [4] https://askubuntu.com/questions/1214862/36-syns-in-a-row-how-to-limit-firefox-connections-to-one-website
173168
// [5] https://bugzilla.mozilla.org/show_bug.cgi?id=1622859
174-
//user_pref("network.http.rcwn.enabled", true); // DEFAULT
169+
// [6] https://soylentnews.org/comments.pl?noupdate=1&sid=40195&page=1&cid=1067867#commentwrap
170+
//user_pref("network.http.rcwn.enabled", false);
175171

176172
// PREF: attempt to RCWN only if a resource is smaller than this size
177173
//user_pref("network.http.rcwn.small_resource_size_kb", 256); // DEFAULT
@@ -235,10 +231,12 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
235231
user_pref("browser.cache.jsbc_compression_level", 3);
236232

237233
// PREF: strategy to use for when the bytecode should be encoded and saved [TESTING ONLY]
238-
// -1 makes page load times marginally longer when a page is being loaded for the first time.
239-
// Subsequent reload of websites will be much much faster.
234+
// -1 makes page load times marginally longer when a page is being loaded for the first time, while
235+
// subsequent reload of websites will be much much faster.
236+
// 0 means that the bytecode is created every 4 page loads [3].
240237
// [1] https://searchfox.org/mozilla-release/source/modules/libpref/init/StaticPrefList.yaml#3461-3488
241238
// [2] https://www.reddit.com/r/firefox/comments/12786yv/improving_performance_in_firefox_android_part_ii/
239+
// [3] https://github.com/zen-browser/desktop/issues/217
242240
// -1 = saved as soon as the script is seen for the first time, independently of the size or last access time
243241
// 0 = saved in order to minimize the page-load time (default)
244242
//user_pref("dom.script_loader.bytecode_cache.enabled", true); // DEFAULT
@@ -573,18 +571,18 @@ user_pref("dom.security.sanitizer.enabled", true);
573571
// PREF: determine when tabs unload [WINDOWS] [LINUX]
574572
// Notify TabUnloader or send the memory pressure if the memory resource
575573
// notification is signaled AND the available commit space is lower than
576-
// this value.
577-
// Set this to some high value, e.g. 2/3 of total memory available in your system:
578-
// 4GB=2640, 8GB=5280, 16GB=10560, 32GB=21120, 64GB=42240
574+
// this value (in MiB).
575+
// Set this to some value, e.g. 4/5 of total memory available on your system:
576+
// 4GB=3276, 8GB=6553, 16GB=13107, 32GB=25698, 64GB=52429
579577
// [1] https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02
580-
//user_pref("browser.low_commit_space_threshold_mb", 2640); // default=200; WINDOWS LINUX
578+
//user_pref("browser.low_commit_space_threshold_mb", 3276); // default=200; WINDOWS LINUX
581579

582580
// PREF: determine when tabs unload [LINUX]
583581
// On Linux, Firefox checks available memory in comparison to total memory,
584582
// and use this percent value (out of 100) to determine if Firefox is in a
585583
// low memory scenario.
586584
// [1] https://dev.to/msugakov/taking-firefox-memory-usage-under-control-on-linux-4b02
587-
//user_pref("browser.low_commit_space_threshold_percent", 33); // default=5; LINUX
585+
//user_pref("browser.low_commit_space_threshold_percent", 20); // default=5; LINUX
588586

589587
// PREF: determine how long (in ms) tabs are inactive before they unload
590588
// 60000=1min; 300000=5min; 600000=10min (default)

Peskyfox.js

+65-40
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Peskyfox *
44
* "Aquila non capit muscas" *
55
* priority: remove annoyances *
6-
* version: 128.1 *
6+
* version: 129 *
77
* url: https://github.com/yokoffing/Betterfox *
88
* credit: Some prefs are reproduced and adapted from the arkenfox project *
99
* credit urL: https://github.com/arkenfox/user.js *
@@ -71,8 +71,8 @@ user_pref("browser.aboutwelcome.enabled", false); // disable Intro screens
7171
// [1] https://www.ghacks.net/2022/10/19/how-to-hide-firefoxs-list-all-tabs-icon/
7272
user_pref("browser.tabs.tabmanager.enabled", false);
7373

74-
// PREF: enable new screenshot tool [FF122+]
75-
//user_pref("screenshots.browser.component.enabled", true);
74+
// PREF: new profile switcher
75+
user_pref("browser.profiles.enabled", true);
7676

7777
/****************************************************************************
7878
* SECTION: THEME ADJUSTMENTS *
@@ -109,6 +109,9 @@ user_pref("browser.privateWindowSeparation.enabled", false);
109109
// Mozilla has removed the search bar option from the settings window.
110110
//user_pref("browser.search.widget.inNavBar", true);
111111

112+
// PREF: new tab page wallpapers
113+
user_pref("browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled", true);
114+
112115
/****************************************************************************
113116
* SECTION: COOKIE BANNER HANDLING *
114117
****************************************************************************/
@@ -341,7 +344,7 @@ user_pref("extensions.pocket.enabled", false);
341344
// [SETTING] General>Files and Applications>Applications>What should Firefox do with other files?
342345
// false=Save files
343346
// true=Ask whether to open or save files
344-
user_pref("browser.download.always_ask_before_handling_new_types", true);
347+
//user_pref("browser.download.always_ask_before_handling_new_types", true);
345348

346349
// PREF: always ask where to download
347350
// [OPTIONAL HARDENING] Enforce user interaction for greater security.
@@ -511,20 +514,13 @@ user_pref("layout.word_select.eat_space_to_next_word", false);
511514
//user_pref("browser.tabs.hoverPreview.showThumbnails", true); // DEFAULT
512515

513516
/****************************************************************************
514-
* SECTION: UNCATEGORIZED *
515-
****************************************************************************/
517+
* SECTION: KEYBOARD AND SHORTCUTS *
518+
****************************************************************************/
516519

517520
// PREF: disable backspace action
518521
// 0=previous page, 1=scroll up, 2=do nothing
519522
//user_pref("browser.backspace_action", 2); // DEFAULT
520523

521-
// PREF: disable Reader mode
522-
// [TIP] Use about:reader?url=%s as a keyword to open links automatically in reader mode [1].
523-
// Firefox will not have to parse webpage for Reader when navigating.
524-
// Extremely minimal performance impact, if you disable.
525-
// [1] https://www.reddit.com/r/firefox/comments/621sr2/i_found_out_how_to_automatically_open_a_url_in/
526-
//user_pref("reader.parse-on-load.enabled", false);
527-
528524
// PREF: disable ALT key toggling the menu bar
529525
//user_pref("ui.key.menuAccessKeyFocuses", false);
530526
//user_pref("ui.key.menuAccessKey", 18); // DEFAULT
@@ -533,6 +529,26 @@ user_pref("layout.word_select.eat_space_to_next_word", false);
533529
// [SETTING] Ctrl+Tab cycles through tabs in recently used order
534530
//user_pref("browser.ctrlTab.sortByRecentlyUsed", true);
535531

532+
// PREF: disable websites overriding Firefox's keyboard shortcuts [FF58+]
533+
// 0=ask (default), 1=allow, 2=block
534+
// [SETTING] to add site exceptions: Ctrl+I>Permissions>Override Keyboard Shortcuts ***/
535+
//user_pref("permissions.default.shortcuts", 2);
536+
537+
// PREF: hide frequent sites on right-click of taskbar icon [WINDOWS?]
538+
//user_pref("browser.taskbar.lists.frequent.enabled", false);
539+
540+
/****************************************************************************
541+
* SECTION: ACCESSIBILITY AND USABILITY *
542+
****************************************************************************/
543+
544+
// PREF: disable Reader mode parse on load
545+
// Reader supposedly costs extra CPU after page load.
546+
// [TIP] Use about:reader?url=%s as a keyword to open links automatically in reader mode [1].
547+
// Firefox will not have to parse webpage for Reader when navigating.
548+
// Extremely minimal performance impact, if you disable.
549+
// [1] https://www.reddit.com/r/firefox/comments/621sr2/i_found_out_how_to_automatically_open_a_url_in/
550+
//user_pref("reader.parse-on-load.enabled", false);
551+
536552
// PREF: Spell-check
537553
// 0=none, 1-multi-line, 2=multi-line & single-line
538554
//user_pref("layout.spellcheckDefault", 1); // DEFAULT
@@ -541,9 +557,25 @@ user_pref("layout.word_select.eat_space_to_next_word", false);
541557
// [1] https://kb.mozillazine.org/Ui.SpellCheckerUnderlineStyle#Possible_values_and_their_effects
542558
//user_pref("ui.SpellCheckerUnderlineStyle", 1);
543559

560+
// PREF: remove underlined characters from various settings
561+
//user_pref("ui.key.menuAccessKey", 0);
562+
563+
// PREF: enable CSS moz document rules
564+
// Still needed for Stylus?
565+
// [1] https://reddit.com/r/FirefoxCSS/comments/8x2q97/reenabling_mozdocument_rules_in_firefox_61/
566+
//user_pref("layout.css.moz-document.content.enabled", true);
567+
568+
/****************************************************************************
569+
* SECTION: BOOKMARK MANAGEMENT *
570+
****************************************************************************/
571+
544572
// PREF: limit the number of bookmark backups Firefox keeps
545573
//user_pref("browser.bookmarks.max_backups", 1); // default=15
546574

575+
/****************************************************************************
576+
* SECTION: ZOOM AND DISPLAY SETTINGS *
577+
****************************************************************************/
578+
547579
// PREF: zoom only text on webpage, not other elements
548580
//user_pref("browser.zoom.full", false);
549581

@@ -561,47 +593,40 @@ user_pref("layout.word_select.eat_space_to_next_word", false);
561593
// PREF: hide image placeholders
562594
//user_pref("browser.display.show_image_placeholders", false);
563595

596+
// PREF: adjust the minimum tab width
597+
// Can be overridden by userChrome.css
598+
//user_pref("browser.tabs.tabMinWidth", 120); // default=76
599+
600+
// PREF: always underline links [FF120+]
601+
//user_pref("layout.css.always_underline_links", false); // DEFAULT
602+
603+
/****************************************************************************
604+
* SECTION: DEVELOPER TOOLS *
605+
****************************************************************************/
606+
564607
// PREF: wrap long lines of text when using source / debugger
565608
//user_pref("view_source.wrap_long_lines", true);
566609
//user_pref("devtools.debugger.ui.editor-wrapping", true);
567610

568-
// PREF: enable ASRouter Devtools at about:newtab#devtools (useful if you're making your own CSS theme)
611+
// PREF: enable ASRouter Devtools at about:newtab#devtools
612+
// This is useful if you're making your own CSS theme.
569613
// [1] https://firefox-source-docs.mozilla.org/browser/components/newtab/content-src/asrouter/docs/debugging-docs.html
570614
//user_pref("browser.newtabpage.activity-stream.asrouter.devtoolsEnabled", true);
615+
571616
// show user agent styles in the inspector
572617
//user_pref("devtools.inspector.showUserAgentStyles", true);
573-
// show native anonymous content (like scrollbars or tooltips) and user agent shadow roots (like the components of an <input> element) in the inspector
574-
//user_pref("devtools.inspector.showAllAnonymousContent", true);
575-
576-
// PREF: print preview
577-
//user_pref("print.tab_modal.enabled", true); // DEFAULT
578618

579-
// PREF: adjust the minimum tab width
580-
// Can be overridden by userChrome.css
581-
//user_pref("browser.tabs.tabMinWidth", 120); // default=76
582-
583-
// PREF: remove underlined characters from various settings
584-
//user_pref("ui.key.menuAccessKey", 0);
619+
// show native anonymous content (like scrollbars or tooltips) and user
620+
// agent shadow roots (like the components of an <input> element) in the inspector
621+
//user_pref("devtools.inspector.showAllAnonymousContent", true);
585622

586-
// PREF: disable websites overriding Firefox's keyboard shortcuts [FF58+]
587-
// 0=ask (default), 1=allow, 2=block
588-
// [SETTING] to add site exceptions: Ctrl+I>Permissions>Override Keyboard Shortcuts ***/
589-
//user_pref("permissions.default.shortcuts", 2);
623+
/****************************************************************************
624+
* SECTION: IMAGE AND MEDIA HANDLING *
625+
****************************************************************************/
590626

591627
// PREF: JPEG XL image format [NIGHTLY]
592628
// May not affect anything on ESR/Stable channel [2].
593629
// [TEST] https://jpegxl.io/tutorials/firefox/#firefoxjpegxltutorial
594630
// [1] https://cloudinary.com/blog/the-case-for-jpeg-xl
595631
// [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1539075#c51
596632
//user_pref("image.jxl.enabled", true);
597-
598-
// PREF: enable CSS moz document rules
599-
// Still needed for Stylus?
600-
// [1] https://reddit.com/r/FirefoxCSS/comments/8x2q97/reenabling_mozdocument_rules_in_firefox_61/
601-
//user_pref("layout.css.moz-document.content.enabled", true);
602-
603-
// PREF: always underline links [FF120+]
604-
//user_pref("layout.css.always_underline_links", false); // DEFAULT
605-
606-
// PREF: hide frequent sites on right-click of taskbar icon [WINDOWS?]
607-
//user_pref("browser.taskbar.lists.frequent.enabled", false);

README.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@
33
[![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)
44

55
# Betterfox
6-
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:
7-
86
[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/).
97

10-
:new: Now with [ESR support](https://github.com/yokoffing/Betterfox/tree/esr115#betterfox-esr).
11-
12-
## Made for everyday browsing
13-
**A secure, blazing fast browsing experience. Without breakage.**
8+
31% [faster](https://medium.com/@mihirgrand/comparing-popular-firefox-forks-6fa83fdfdaad#:~:text=31%25%20more%20than%20vanilla%20Firefox) than regular Firefox :rocket:
149

15-
Betterfox is an opinionated preference list inspired by the [law of diminishing returns](https://web.archive.org/web/20231108092752if_/https://pmctraining.com/site/wp-content/uploads/2018/04/Law-of-Diminishing-Returns-CHART.png) and the [minimum effective dose](https://medium.com/the-mission/less-is-more-the-minimum-effective-dose-e6d56625931e).
10+
Now with support for ESR [128](https://github.com/yokoffing/Betterfox/tree/esr128) :new:
1611

1712
## Required reading
18-
*If you don't have it already: [Get Firefox](https://www.mozilla.org/en-US/firefox/all/#product-desktop-release)*
19-
2013
0) Create a [backup profile](https://github.com/yokoffing/Betterfox/wiki/Backup).
2114
1) Download the user.js file [here](https://raw.githubusercontent.com/yokoffing/Betterfox/main/user.js) (Right click > `Save Link As…`).
2215
2) Review [Common Overrides](https://github.com/yokoffing/Betterfox/wiki/Common-Overrides) and make any necessary changes.
@@ -31,6 +24,11 @@ Betterfox is an opinionated preference list inspired by the [law of diminishing
3124
* Check out our configuration [guide](https://github.com/yokoffing/NextDNS-Config) for the best experience.
3225
* See how to [quickly enable](https://support.mozilla.org/en-US/kb/dns-over-https) **secure DNS** in Firefox.
3326

27+
## Made for everyday browsing
28+
**A secure, blazing fast browsing experience. Without breakage.**
29+
30+
Betterfox is an opinionated preference list inspired by the [law of diminishing returns](https://web.archive.org/web/20231108092752if_/https://pmctraining.com/site/wp-content/uploads/2018/04/Law-of-Diminishing-Returns-CHART.png) and the [minimum effective dose](https://medium.com/the-mission/less-is-more-the-minimum-effective-dose-e6d56625931e).
31+
3432
## Simple goals
3533
1) **Minimalism:** get what isn't needed out of the way
3634
2) **Efficiency:** unleash Firefox's ability to be fast and performant
@@ -53,6 +51,10 @@ The `user.js` — a configuration file that controls Firefox settings — is cur
5351
## Recognition
5452

5553
### Browser Integration
54+
> [!IMPORTANT]
55+
> While the browsers listed below incorporate Betterfox to some extent, they often modify it in ways that reduce its effectiveness. For optimal results, apply the `user.js` file even when using Firefox forks.
56+
57+
* [Zen](https://github.com/zen-browser/desktop?tab=readme-ov-file) | [files](https://github.com/zen-browser/desktop/blob/main/src/browser/app/profile/better-fox.js) (July 2024)
5658
* [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?)
5759
* [Mercury](https://github.com/Alex313031/Mercury/releases/tag/v.115.3.0) | [files](https://github.com/Alex313031/Mercury/commit/eb9600f9fb8f48c8f5b5c6f3264fbcdb5caff7f5) (Sep 2023)
5860
* [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)
@@ -71,7 +73,7 @@ The `user.js` — a configuration file that controls Firefox settings — is cur
7173
* [GhoSTORIES with Franz & Pete](https://anchor.fm/ghostories/episodes/S2E6-We-Talking-Ghostery-Dawn----Again-er0q02/a-a4o5vmh) | 17:05–18:40 (Feb 2021)
7274

7375
### Articles
74-
* [Browsers for Daily Using](https://anhkhoakz.neocities.org/blog/browsers-for-daily-using) (Jan 2024)
76+
* [Browsers for Daily Use](https://anhkhoakz.neocities.org/blog/browsers-for-daily-using/#firefox-but-hardened) (Jan 2024)
7577
* [Avoiding Manifest V3 – Escaping the Ad-Pocalypse](https://www.xbitlabs.com/avoiding-manifest-v3/) (Dec 2023)
7678
* [German] [Pulse Browser Review: Firefox fork with Turbo tweaks and Opera sidebar](https://www.computerbild.de/artikel/cb-Tipps-Software-Pulse-Browser-Review-ein-Firefox-Fork-mit-Seitenleiste-wie-bei-Opera-35644139.html#:~:text=Noch%20mehr%20Speed%2DFeatures) (Apr 2023)
7779
* [2023 Browser Showdown: Comparing Chrome, Brave, Firefox, Vivaldi, and Opera](https://www.appdate.lk/technology/2023-browser-showdown/) (Jan 2023)

0 commit comments

Comments
 (0)