Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit e2e3014

Browse files
committed
⬆️ Upgrade betterfox
1 parent 1107bd3 commit e2e3014

File tree

3 files changed

+72
-54
lines changed

3 files changed

+72
-54
lines changed

src/browser/app/profile/better-fox.js

Lines changed: 37 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/****************************************************************************
3636
* Betterfox *
3737
* "Ad meliora" *
38-
* version: 116 *
38+
* version: 116.1 *
3939
* url: https://github.com/yokoffing/Betterfox *
4040
****************************************************************************/
4141

@@ -45,48 +45,51 @@
4545
pref('nglayout.initialpaint.delay', 0);
4646
pref('nglayout.initialpaint.delay_in_oopif', 0);
4747
pref('content.notify.interval', 100000);
48-
pref('browser.startup.preXulSkeletonUI', false);
48+
pref('browser.startup.preXulSkeletonUI', false); // WINDOWS
4949

5050
/** EXPERIMENTAL ***/
5151
pref('layout.css.grid-template-masonry-value.enabled', true);
5252
pref('dom.enable_web_task_scheduling', true);
5353
pref('layout.css.has-selector.enabled', true);
54-
pref('layout.css.scroll-driven-animations.enabled', true);
5554

5655
/** GFX ***/
57-
pref('gfx.webrender.all', true);
58-
pref('layers.gpu-process.enabled', true);
59-
//pref("gfx.canvas.accelerated", true); // enable if not using an integrated GPU on WINDOWS
60-
pref('gfx.canvas.accelerated.cache-items', 32768);
61-
pref('gfx.canvas.accelerated.cache-size', 4096);
62-
pref('gfx.content.skia-font-cache-size', 80);
56+
//pref("gfx.canvas.accelerated", true); // enable if using a dedicated GPU on WINDOWS
57+
pref('gfx.canvas.accelerated.cache-items', 4096);
58+
pref('gfx.canvas.accelerated.cache-size', 512);
59+
pref('gfx.content.skia-font-cache-size', 20);
6360

6461
/** BROWSER CACHE ***/
6562
pref('browser.cache.disk.enable', false);
66-
pref('browser.cache.memory.capacity', 1048576);
67-
pref('browser.cache.memory.max_entry_size', 65536);
6863

6964
/** MEDIA CACHE ***/
65+
pref('media.memory_cache_max_size', 65536);
7066
pref('media.cache_readahead_limit', 7200);
7167
pref('media.cache_resume_threshold', 3600);
72-
pref('media.memory_cache_max_size', 131072);
73-
pref('media.memory_caches_combined_limit_kb', 524288); // DEFAULT
7468

75-
/** IMAGE CACHE ***/
76-
pref('image.cache.size', 10485760);
77-
pref('image.mem.decode_bytes_at_a_time', 65536);
78-
pref('image.mem.shared.unmap.min_expiration_ms', 120000);
69+
/** IMAGE CACHE ***/
70+
pref('image.mem.decode_bytes_at_a_time', 32768);
7971

8072
/** NETWORK ***/
8173
pref('network.buffer.cache.size', 262144);
8274
pref('network.buffer.cache.count', 128);
8375
pref('network.http.max-connections', 1800);
8476
pref('network.http.max-persistent-connections-per-server', 10);
85-
pref('network.http.pacing.requests.min-parallelism', 18);
77+
pref('network.http.max-urgent-start-excessive-connections-per-host', 5);
78+
pref('network.websocket.max-connections', 400);
79+
pref('network.http.pacing.requests.enabled', false);
8680
pref('network.dnsCacheEntries', 10000);
8781
pref('network.dnsCacheExpiration', 86400);
88-
pref('network.dnsCacheExpirationGracePeriod', 240);
89-
pref('network.ssl_tokens_cache_capacity', 32768);
82+
pref('network.dns.max_high_priority_threads', 8);
83+
pref('network.ssl_tokens_cache_capacity', 20480);
84+
85+
/** SPECULATIVE CONNECTIONS ***/
86+
pref('network.http.speculative-parallel-limit', 0);
87+
pref('network.dns.disablePrefetch', true);
88+
pref('browser.urlbar.speculativeConnect.enabled', false);
89+
pref('browser.places.speculativeConnect.enabled', false);
90+
pref('network.prefetch-next', false);
91+
pref('network.predictor.enabled', false);
92+
pref('network.predictor.enable-prefetch', false);
9093

9194
/****************************************************************************
9295
* SECTION: SECUREFOX *
@@ -101,10 +104,6 @@ pref(
101104
'urlclassifier.features.socialtracking.skipURLs',
102105
'*.instagram.com, *.twitter.com, *.twimg.com'
103106
);
104-
pref(
105-
'privacy.query_stripping.strip_list',
106-
'__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'
107-
);
108107
pref('browser.uitour.enabled', false);
109108
pref('privacy.globalprivacycontrol.enabled', true);
110109
pref('privacy.globalprivacycontrol.functionality.enabled', true);
@@ -123,52 +122,35 @@ pref('security.tls.enable_0rtt_data', false);
123122
/** DISK AVOIDANCE ***/
124123
pref('browser.privatebrowsing.forceMediaMemoryCache', true);
125124
pref('browser.sessionstore.interval', 60000);
126-
pref('browser.sessionstore.privacy_level', 2);
127125

128126
/** SHUTDOWN & SANITIZING ***/
129127
pref('privacy.history.custom', true);
130128

131-
/** SPECULATIVE CONNECTIONS ***/
132-
pref('network.http.speculative-parallel-limit', 0);
133-
pref('network.dns.disablePrefetch', true);
134-
pref('browser.urlbar.speculativeConnect.enabled', false);
135-
pref('browser.places.speculativeConnect.enabled', false);
136-
pref('network.prefetch-next', false);
137-
pref('network.predictor.enabled', false);
138-
pref('network.predictor.enable-prefetch', false);
139-
140129
/** SEARCH / URL BAR ***/
141130
pref('browser.search.separatePrivateDefault.ui.enabled', true);
142131
pref('browser.urlbar.update2.engineAliasRefresh', true);
143132
pref('browser.search.suggest.enabled', false);
144133
pref('browser.urlbar.suggest.quicksuggest.sponsored', false);
145134
pref('browser.urlbar.suggest.quicksuggest.nonsponsored', false);
135+
pref('browser.formfill.enable', false);
146136
pref('security.insecure_connection_text.enabled', true);
147137
pref('security.insecure_connection_text.pbmode.enabled', true);
148138
pref('network.IDN_show_punycode', true);
149139

150-
/** HTTPS-FIRST MODE ***/
140+
/** HTTPS-FIRST POLICY ***/
151141
pref('dom.security.https_first', true);
152142

153-
/** PROXY / SOCKS / IPv6 ***/
154-
pref('network.proxy.socks_remote_dns', true);
155-
pref('network.file.disable_unc_paths', true);
156-
pref('network.gio.supported-protocols', '');
157-
158143
/** PASSWORDS AND AUTOFILL ***/
159-
pref('signon.formlessCapture.enabled', false);
160-
pref('signon.privateBrowsingCapture.enabled', false);
161-
pref('signon.autofillForms', false);
162144
pref('signon.rememberSignons', false);
163145
pref('editor.truncate_user_pastes', false);
164146

165147
/** ADDRESS + CREDIT CARD MANAGER ***/
166148
pref('extensions.formautofill.addresses.enabled', false);
167149
pref('extensions.formautofill.creditCards.enabled', false);
168-
pref('browser.formfill.enable', false);
169150

170151
/** MIXED CONTENT + CROSS-SITE ***/
171152
pref('network.auth.subresource-http-auth-allow', 1);
153+
pref('security.mixed_content.block_display_content', true);
172154
pref('pdfjs.enableScripting', false);
173155
pref('extensions.postDownloadThirdPartyPrompt', false);
174156
pref('permissions.delegation.enabled', false);
@@ -196,10 +178,6 @@ pref(
196178
'geo.provider.network.url',
197179
'https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%'
198180
);
199-
pref('geo.provider.ms-windows-location', false); // WINDOWS
200-
pref('geo.provider.use_corelocation', false); // MAC
201-
pref('geo.provider.use_gpsd', false); // LINUX
202-
pref('geo.provider.use_geoclue', false); // LINUX
203181
pref('permissions.manager.defaultsUrl', '');
204182
pref('webchannel.allowObject.urlWhitelist', '');
205183

@@ -250,11 +228,15 @@ pref(
250228
);
251229
pref('browser.preferences.moreFromMozilla', false);
252230
pref('browser.tabs.tabmanager.enabled', false);
231+
pref('browser.aboutConfig.showWarning', false);
253232
pref('browser.aboutwelcome.enabled', false);
254-
pref('findbar.highlightAll', true);
255-
pref('middlemouse.contentLoadURL', false);
233+
pref('browser.display.focus_ring_on_anything', true);
234+
pref('browser.display.focus_ring_style', 0);
235+
pref('browser.display.focus_ring_width', 0);
256236
pref('browser.privateWindowSeparation.enabled', false); // WINDOWS
257237
pref('browser.privatebrowsing.enable-new-indicator', false);
238+
pref('cookiebanners.service.mode', 2);
239+
pref('cookiebanners.service.mode.privateBrowsing', 2);
258240
pref('browser.translations.enable', true);
259241

260242
/** FULLSCREEN ***/
@@ -278,23 +260,24 @@ pref('extensions.pocket.enabled', false);
278260

279261
/** DOWNLOADS ***/
280262
pref('browser.download.useDownloadDir', false);
263+
pref('browser.download.always_ask_before_handling_new_types', true);
281264
pref('browser.download.alwaysOpenPanel', false);
282265
pref('browser.download.manager.addToRecentDocs', false);
283-
pref('browser.download.always_ask_before_handling_new_types', true);
284266

285267
/** PDF ***/
286268
pref('browser.download.open_pdf_attachments_inline', true);
269+
pref('pdfjs.sidebarViewOnLoad', 2);
287270

288271
/** TAB BEHAVIOR ***/
289272
pref('browser.tabs.loadBookmarksInTabs', true);
290273
pref('browser.bookmarks.openInTabClosesMenu', false);
291-
pref('cookiebanners.service.mode', 2);
292-
pref('cookiebanners.service.mode.privateBrowsing', 2);
274+
pref('browser.menu.showViewImageInfo', true);
275+
pref('findbar.highlightAll', true);
293276

294277
/****************************************************************************
295278
* SECTION: SMOOTHFOX *
296279
****************************************************************************/
297-
// visit https://github.com/yokoffing/Betterfox/blob/master/Smoothfox.js
280+
// visit https://github.com/yokoffing/Betterfox/blob/main/Smoothfox.js
298281
// Enter your scrolling prefs below this line:
299282

300283
/****************************************************************************

src/browser/app/profile/pulse-browser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
// Betterfox has a lower priority than the prefs included in this file
88
#include better-fox.js
9+
#include smooth-fox.js
910

1011
// Prefs from browser/branding/unofficial/prefs/firefox-branding.js:
1112

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Ignore license in this file
2+
//
3+
// The code in this file was created by @yokoffing and is licensed under the
4+
// MIT license:
5+
// MIT License
6+
//
7+
// Copyright (c) 2020 yokoffing
8+
//
9+
// Permission is hereby granted, free of charge, to any person obtaining a copy
10+
// of this software and associated documentation files (the "Software"), to deal
11+
// in the Software without restriction, including without limitation the rights
12+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
// copies of the Software, and to permit persons to whom the Software is
14+
// furnished to do so, subject to the following conditions:
15+
//
16+
// The above copyright notice and this permission notice shall be included in all
17+
// copies or substantial portions of the Software.
18+
//
19+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
// SOFTWARE.
26+
27+
// This file contains cherry-picked preferences from:
28+
// https://github.com/yokoffing/Betterfox/blob/main/Smoothfox.js
29+
//
30+
// TODO: Add a UI / pref section to select preferred scrolling preferences
31+
32+
// recommended for 60hz+ displays
33+
user_pref('apz.overscroll.enabled', true); // not DEFAULT on Linux
34+
user_pref('general.smoothScroll', true); // DEFAULT

0 commit comments

Comments
 (0)