mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-29 16:11:23 +05:30
Compare commits
8 Commits
a8a187a203
...
f40e0e8cb6
| Author | SHA1 | Date | |
|---|---|---|---|
| f40e0e8cb6 | |||
| 743f62d219 | |||
| 3bd4250b53 | |||
| 86e0470506 | |||
| ac901a751b | |||
| 460596ddf4 | |||
| 47fb8b3559 | |||
| c62bd923d8 |
+17
-12
@@ -33,7 +33,7 @@
|
|||||||
// false = reflow pages whenever new data is received
|
// false = reflow pages whenever new data is received
|
||||||
//user_pref("content.notify.ontimer", true); // DEFAULT
|
//user_pref("content.notify.ontimer", true); // DEFAULT
|
||||||
|
|
||||||
// PREF: notification interval (in microseconds) to avoid layout thrashing
|
// PREF: content notification delay - notification interval (in microseconds) to avoid layout thrashing
|
||||||
// When Firefox is loading a page, it periodically reformats
|
// When Firefox is loading a page, it periodically reformats
|
||||||
// or "reflows" the page as it loads. The page displays new elements
|
// or "reflows" the page as it loads. The page displays new elements
|
||||||
// every 0.12 seconds by default. These redraws increase the total page load time.
|
// every 0.12 seconds by default. These redraws increase the total page load time.
|
||||||
@@ -48,11 +48,16 @@
|
|||||||
// [2] https://web.archive.org/web/20240115073722/https://dev.opera.com/articles/efficient-javascript/?page=3#reflow
|
// [2] https://web.archive.org/web/20240115073722/https://dev.opera.com/articles/efficient-javascript/?page=3#reflow
|
||||||
// [3] https://web.archive.org/web/20240115073722/https://dev.opera.com/articles/efficient-javascript/?page=3#smoothspeed
|
// [3] https://web.archive.org/web/20240115073722/https://dev.opera.com/articles/efficient-javascript/?page=3#smoothspeed
|
||||||
user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
|
user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
|
||||||
//user_pref("content.max.tokenizing.time", 1000000);
|
user_pref("content.max.tokenizing.time", 1000000); // (1.00s); alt=2000000; HIDDEN
|
||||||
//user_pref("content.switch.threshold", 500000); // default= 750000
|
user_pref("content.interrupt.parsing", true); // HIDDEN
|
||||||
//user_pref("content.interrupt.parsing", true);
|
user_pref("content.notify.ontimer", true); // HIDDEN
|
||||||
//user_pref("content.notify.ontimer", true);
|
|
||||||
//user_pref("content.maxtextrun", 8191); // DEFAULT
|
// PREF: UI responsiveness threshold
|
||||||
|
user_pref("content.switch.threshold", 300000); // HIDDEN; default= 750000; alt=500000
|
||||||
|
|
||||||
|
// PREF: split text nodes to a length
|
||||||
|
// The number of bytes in a text node.
|
||||||
|
//user_pref("content.maxtextrun", 8191); // DEFAULT; HIDDEN
|
||||||
|
|
||||||
// PREF: new tab preload
|
// PREF: new tab preload
|
||||||
// [WARNING] Disabling this may cause a delay when opening a new tab in Firefox.
|
// [WARNING] Disabling this may cause a delay when opening a new tab in Firefox.
|
||||||
@@ -123,8 +128,8 @@ user_pref("dom.ipc.processPriorityManager.backgroundUsesEcoQoS", false);
|
|||||||
// [2] https://github.com/yokoffing/Betterfox/issues/153
|
// [2] https://github.com/yokoffing/Betterfox/issues/153
|
||||||
// [3] https://github.com/yokoffing/Betterfox/issues/198
|
// [3] https://github.com/yokoffing/Betterfox/issues/198
|
||||||
//user_pref("gfx.canvas.accelerated", true); // [DEFAULT FF133+]
|
//user_pref("gfx.canvas.accelerated", true); // [DEFAULT FF133+]
|
||||||
//user_pref("gfx.canvas.accelerated.cache-items", 16384); // [DEFAULT=8192 FF135+]; Chrome=4096; alt=32768
|
user_pref("gfx.canvas.accelerated.cache-items", 32768); // [default=8192 FF135+]; Chrome=4096
|
||||||
user_pref("gfx.canvas.accelerated.cache-size", 2048); // default=256; Chrome=512; alt=4096
|
user_pref("gfx.canvas.accelerated.cache-size", 4096); // default=256; Chrome=512; alt=4096
|
||||||
user_pref("gfx.content.skia-font-cache-size", 32); // default=5; Chrome=20
|
user_pref("gfx.content.skia-font-cache-size", 32); // default=5; Chrome=20
|
||||||
//user_pref("gfx.canvas.max-size", 32767); // DEFAULT=32767
|
//user_pref("gfx.canvas.max-size", 32767); // DEFAULT=32767
|
||||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1239151#c2
|
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1239151#c2
|
||||||
@@ -279,8 +284,8 @@ user_pref("browser.cache.disk.enable", false);
|
|||||||
// [1] https://kb.mozillazine.org/Browser.cache.memory.capacity#-1
|
// [1] https://kb.mozillazine.org/Browser.cache.memory.capacity#-1
|
||||||
// [2] https://searchfox.org/mozilla-central/source/netwerk/cache2/CacheObserver.cpp#94-125
|
// [2] https://searchfox.org/mozilla-central/source/netwerk/cache2/CacheObserver.cpp#94-125
|
||||||
// [3] https://github.com/WaterfoxCo/Waterfox/commit/3fed16932c80a2f6b37d126fe10aed66c7f1c214
|
// [3] https://github.com/WaterfoxCo/Waterfox/commit/3fed16932c80a2f6b37d126fe10aed66c7f1c214
|
||||||
user_pref("browser.cache.memory.capacity", 65536); // 64MB RAM cahce; alt=131072 (128 MB RAM cache)
|
user_pref("browser.cache.memory.capacity", 65536); // 64MB RAM cache; alt=131072 (128 MB RAM cache)
|
||||||
user_pref("browser.cache.memory.max_entry_size", 16384); // 16MB max entry; alt=32768; 32 MB max entry; default=5120 (5 MB)
|
user_pref("browser.cache.memory.max_entry_size", 32768); // 32 MB max entry; default=5120 (5 MB)
|
||||||
|
|
||||||
// PREF: amount of Back/Forward cached pages stored in memory for each tab
|
// PREF: amount of Back/Forward cached pages stored in memory for each tab
|
||||||
// Pages that were recently visited are stored in memory in such a way
|
// Pages that were recently visited are stored in memory in such a way
|
||||||
@@ -299,7 +304,7 @@ user_pref("dom.storage.shadow_writes", true);
|
|||||||
|
|
||||||
// PREF: tell garbage collector to start running when javascript is using xx MB of memory
|
// PREF: tell garbage collector to start running when javascript is using xx MB of memory
|
||||||
// Garbage collection releases memory back to the system.
|
// Garbage collection releases memory back to the system.
|
||||||
//user_pref("javascript.options.mem.high_water_mark", 128); [HIDDEN OR REMOVED]
|
//user_pref("javascript.options.mem.high_water_mark", 128); // DEFAULT [HIDDEN OR REMOVED]
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* SECTION: MEDIA CACHE *
|
* SECTION: MEDIA CACHE *
|
||||||
@@ -570,7 +575,7 @@ user_pref("network.predictor.enabled", false);
|
|||||||
// PREF: CSS Masonry Layout [NIGHTLY]
|
// PREF: CSS Masonry Layout [NIGHTLY]
|
||||||
// [1] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Masonry_Layout
|
// [1] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Masonry_Layout
|
||||||
// [2] https://www.smashingmagazine.com/native-css-masonry-layout-css-grid/
|
// [2] https://www.smashingmagazine.com/native-css-masonry-layout-css-grid/
|
||||||
user_pref("layout.css.grid-template-masonry-value.enabled", true);
|
//user_pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* SECTION: TAB UNLOAD *
|
* SECTION: TAB UNLOAD *
|
||||||
|
|||||||
+6
-3
@@ -64,6 +64,9 @@ user_pref("browser.profiles.enabled", true);
|
|||||||
// [1] https://github.com/yokoffing/Betterfox/issues/320
|
// [1] https://github.com/yokoffing/Betterfox/issues/320
|
||||||
//user_pref("widget.gtk.non-native-titlebar-buttons.enabled", true);
|
//user_pref("widget.gtk.non-native-titlebar-buttons.enabled", true);
|
||||||
|
|
||||||
|
// PREF: disable search engine switcher in the URL bar [FF136+]
|
||||||
|
//user_pref("browser.urlbar.scotchBonnet.enableOverride", false);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* SECTION: THEME ADJUSTMENTS *
|
* SECTION: THEME ADJUSTMENTS *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -106,13 +109,13 @@ user_pref("browser.ml.enable", false);
|
|||||||
// PREF: AI chat
|
// PREF: AI chat
|
||||||
user_pref("browser.ml.chat.enabled", false);
|
user_pref("browser.ml.chat.enabled", false);
|
||||||
|
|
||||||
// PREF: link previews
|
|
||||||
//user_pref("browser.ml.linkPreview.enabled", false);
|
|
||||||
|
|
||||||
// PREF: AI-enhanced tab groups
|
// PREF: AI-enhanced tab groups
|
||||||
// [1] https://support.mozilla.org/kb/how-use-ai-enhanced-tab-groups
|
// [1] https://support.mozilla.org/kb/how-use-ai-enhanced-tab-groups
|
||||||
//user_pref("browser.tabs.groups.smart.enabled", false);
|
//user_pref("browser.tabs.groups.smart.enabled", false);
|
||||||
|
|
||||||
|
// PREF: link previews
|
||||||
|
//user_pref("browser.ml.linkPreview.enabled", false);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* SECTION: COOKIE BANNER HANDLING *
|
* SECTION: COOKIE BANNER HANDLING *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
+3
-3
@@ -501,9 +501,9 @@ user_pref("browser.privatebrowsing.resetPBM.enabled", true);
|
|||||||
// When downloading a file in private browsing mode, the user will be prompted
|
// When downloading a file in private browsing mode, the user will be prompted
|
||||||
// to chose whether they want to keep or delete files that are downloaded
|
// to chose whether they want to keep or delete files that are downloaded
|
||||||
// while in private browsing.
|
// while in private browsing.
|
||||||
user_pref("browser.download.enableDeletePrivate", true);
|
//user_pref("browser.download.enableDeletePrivate", true);
|
||||||
user_pref("browser.download.deletePrivateChosen", true);
|
//user_pref("browser.download.deletePrivateChosen", true);
|
||||||
user_pref("browser.download.deletePrivate", true);
|
//user_pref("browser.download.deletePrivate", true);
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* SECTION: SHUTDOWN & SANITIZING *
|
* SECTION: SHUTDOWN & SANITIZING *
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ user_pref("security.cert_pinning.enforcement_level", 2); // strict public key pi
|
|||||||
user_pref("captivedetect.canonicalURL", ""); // disable captive portal detection
|
user_pref("captivedetect.canonicalURL", ""); // disable captive portal detection
|
||||||
user_pref("network.captive-portal-service.enabled", false); // disable captive portal detection
|
user_pref("network.captive-portal-service.enabled", false); // disable captive portal detection
|
||||||
user_pref("network.connectivity-service.enabled", false); // disable captive portal detection
|
user_pref("network.connectivity-service.enabled", false); // disable captive portal detection
|
||||||
|
user_pref("browser.download.enableDeletePrivate", true); // Delete files downloaded in private browsing when all private windows are closed
|
||||||
|
user_pref("browser.download.deletePrivateChosen", true); // Delete files downloaded in private browsing when all private windows are closed
|
||||||
|
user_pref("browser.download.deletePrivate", true); // Delete files downloaded in private browsing when all private windows are closed
|
||||||
|
|
||||||
/** PESKYFOX ***/
|
/** PESKYFOX ***/
|
||||||
user_pref("devtools.accessibility.enabled", false); // removes un-needed "Inspect Accessibility Properties" on right-click
|
user_pref("devtools.accessibility.enabled", false); // removes un-needed "Inspect Accessibility Properties" on right-click
|
||||||
@@ -151,3 +154,4 @@ user_pref("network.trr.max-fails", 5); // lower max attempts to use DoH
|
|||||||
user_pref("geo.provider.use_geoclue", false); // [LINUX]
|
user_pref("geo.provider.use_geoclue", false); // [LINUX]
|
||||||
user_pref("pdfjs.defaultZoomValue", "page-width"); // PDF zoom level
|
user_pref("pdfjs.defaultZoomValue", "page-width"); // PDF zoom level
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -84,8 +84,8 @@ user_pref("browser.privatebrowsing.forceMediaMemoryCache", true);
|
|||||||
user_pref("browser.sessionstore.interval", 60000);
|
user_pref("browser.sessionstore.interval", 60000);
|
||||||
|
|
||||||
/** SHUTDOWN & SANITIZING ***/
|
/** SHUTDOWN & SANITIZING ***/
|
||||||
user_pref("browser.privatebrowsing.resetPBM.enabled", true);
|
|
||||||
user_pref("privacy.history.custom", true);
|
user_pref("privacy.history.custom", true);
|
||||||
|
user_pref("browser.privatebrowsing.resetPBM.enabled", true);
|
||||||
|
|
||||||
/** SEARCH / URL BAR ***/
|
/** SEARCH / URL BAR ***/
|
||||||
user_pref("browser.urlbar.trimHttps", true);
|
user_pref("browser.urlbar.trimHttps", true);
|
||||||
@@ -179,6 +179,7 @@ user_pref("browser.privateWindowSeparation.enabled", false); // WINDOWS
|
|||||||
/** AI ***/
|
/** AI ***/
|
||||||
user_pref("browser.ml.enable", false);
|
user_pref("browser.ml.enable", false);
|
||||||
user_pref("browser.ml.chat.enabled", false);
|
user_pref("browser.ml.chat.enabled", false);
|
||||||
|
user_pref("browser.tabs.groups.smart.enabled", false);
|
||||||
|
|
||||||
/** FULLSCREEN NOTICE ***/
|
/** FULLSCREEN NOTICE ***/
|
||||||
user_pref("full-screen-api.transition-duration.enter", "0 0");
|
user_pref("full-screen-api.transition-duration.enter", "0 0");
|
||||||
@@ -227,3 +228,5 @@ user_pref("layout.word_select.eat_space_to_next_word", false);
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* END: BETTERFOX *
|
* END: BETTERFOX *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user