mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-29 16:11:23 +05:30
Compare commits
13 Commits
142.0
..
1b8f2db23e
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b8f2db23e | |||
| bc8bfacbd8 | |||
| c787453de1 | |||
| 41626dd8ae | |||
| 2b3ed37882 | |||
| 84a5c18efe | |||
| b8956ce35e | |||
| 5ba723d172 | |||
| aafd51b38c | |||
| 427d1f6d34 | |||
| 72ef31240c | |||
| ff797b1831 | |||
| cd66626c17 |
+9
-9
@@ -78,15 +78,6 @@ user_pref("content.notify.interval", 100000); // (.10s); default=120000 (.12s)
|
||||
// PREF: lazy load iframes
|
||||
//user_pref("dom.iframe_lazy_loading.enabled", true); // DEFAULT [FF121+]
|
||||
|
||||
// PREF: Prioritized Task Scheduling API
|
||||
// [1] https://github.com/yokoffing/Betterfox/issues/355
|
||||
// [2] https://blog.mozilla.org/performance/2022/06/02/prioritized-task-scheduling-api-is-prototyped-in-nightly/
|
||||
// [3] https://medium.com/airbnb-engineering/building-a-faster-web-experience-with-the-posttask-scheduler-276b83454e91
|
||||
// [4] https://github.com/WICG/scheduling-apis/blob/main/explainers/prioritized-post-task.md
|
||||
// [5] https://wicg.github.io/scheduling-apis/
|
||||
// [6] https://caniuse.com/mdn-api_taskcontroller
|
||||
//user_pref("dom.enable_web_task_scheduling", true); // DEFAULT [FF142+]
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: GFX RENDERING TWEAKS *
|
||||
****************************************************************************/
|
||||
@@ -552,6 +543,15 @@ user_pref("network.predictor.enabled", false);
|
||||
// [2] https://www.smashingmagazine.com/native-css-masonry-layout-css-grid/
|
||||
user_pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||
|
||||
// PREF: Prioritized Task Scheduling API [NIGHTLY]
|
||||
// [1] https://github.com/yokoffing/Betterfox/issues/355
|
||||
// [2] https://blog.mozilla.org/performance/2022/06/02/prioritized-task-scheduling-api-is-prototyped-in-nightly/
|
||||
// [3] https://medium.com/airbnb-engineering/building-a-faster-web-experience-with-the-posttask-scheduler-276b83454e91
|
||||
// [4] https://github.com/WICG/scheduling-apis/blob/main/explainers/prioritized-post-task.md
|
||||
// [5] https://wicg.github.io/scheduling-apis/
|
||||
// [6] https://caniuse.com/mdn-api_taskcontroller
|
||||
//user_pref("dom.enable_web_task_scheduling", true);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: TAB UNLOAD *
|
||||
****************************************************************************/
|
||||
|
||||
+2
-9
@@ -99,19 +99,12 @@ user_pref("browser.privateWindowSeparation.enabled", false);
|
||||
/****************************************************************************
|
||||
* SECTION: AI *
|
||||
****************************************************************************/
|
||||
// PREF: AI master switch
|
||||
// PREF: LLM / AI master switch
|
||||
// [1] https://github.com/yokoffing/Betterfox/issues/416
|
||||
user_pref("browser.ml.enable", false);
|
||||
|
||||
// PREF: AI chat
|
||||
user_pref("browser.ml.chat.enabled", false);
|
||||
|
||||
// PREF: link previews
|
||||
//user_pref("browser.ml.linkPreview.enabled", false);
|
||||
|
||||
// PREF: 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.ml.chat.enabled", false);
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: COOKIE BANNER HANDLING *
|
||||
|
||||
+2
-2
@@ -23,8 +23,8 @@
|
||||
// [2] https://www.reddit.com/r/firefox/comments/l7xetb/network_priority_for_firefoxs_enhanced_tracking/gle2mqn/?web2x&context=3
|
||||
user_pref("browser.contentblocking.category", "strict"); // [HIDDEN]
|
||||
// [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1970647
|
||||
user_pref("privacy.trackingprotection.allow_list.baseline.enabled", true); // [FF142+]
|
||||
user_pref("privacy.trackingprotection.allow_list.convenience.enabled", true); // [FF142+]
|
||||
//user_pref('privacy.trackingprotection.allow_list.baseline.enabled", true); // DEFAULT [FF142+]
|
||||
//user_pref('privacy.trackingprotection.allow_list.convenience.enabled", true); // DEFAULT [FF142+]
|
||||
//user_pref("privacy.trackingprotection.enabled", true); // enabled with "Strict"
|
||||
//user_pref("privacy.trackingprotection.pbmode.enabled", true); // DEFAULT
|
||||
//user_pref("browser.contentblocking.customBlockList.preferences.ui.enabled", false); // DEFAULT
|
||||
|
||||
@@ -166,8 +166,6 @@ def extract_betterfox(data, profile_folder):
|
||||
zipfile = ZipFile(data)
|
||||
userjs_zipinfo = None
|
||||
for file in zipfile.filelist:
|
||||
if "/zen/" in file.filename and not args.zen:
|
||||
continue
|
||||
if file.filename.endswith("user.js"):
|
||||
userjs_zipinfo = file
|
||||
userjs_zipinfo.filename = Path(userjs_zipinfo.filename).name
|
||||
@@ -207,7 +205,6 @@ if __name__ == "__main__":
|
||||
|
||||
)
|
||||
argparser.add_argument("--overrides", "-o", default=default_profile_folder.joinpath("user-overrides.js"), help="if the provided file exists, add overrides to user.js. Defaults to " + str(default_profile_folder.joinpath("user-overrides.js"))),
|
||||
argparser.add_argument("--zen", "-z", action="store_true", default=False, help="Install user.js for the Zen browser instead. Defaults to False"),
|
||||
|
||||
|
||||
advanced = argparser.add_argument_group("Advanced")
|
||||
|
||||
@@ -63,8 +63,6 @@ user_pref("layout.css.grid-template-masonry-value.enabled", true);
|
||||
****************************************************************************/
|
||||
/** TRACKING PROTECTION ***/
|
||||
user_pref("browser.contentblocking.category", "strict");
|
||||
user_pref("privacy.trackingprotection.allow_list.baseline.enabled", true);
|
||||
user_pref("privacy.trackingprotection.allow_list.convenience.enabled", true);
|
||||
user_pref("browser.download.start_downloads_in_tmp_dir", true);
|
||||
user_pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||
user_pref("browser.uitour.enabled", false);
|
||||
@@ -179,7 +177,6 @@ user_pref("browser.privateWindowSeparation.enabled", false); // WINDOWS
|
||||
|
||||
/** AI ***/
|
||||
user_pref("browser.ml.enable", false);
|
||||
user_pref("browser.ml.chat.enabled", false);
|
||||
|
||||
/** FULLSCREEN NOTICE ***/
|
||||
user_pref("full-screen-api.transition-duration.enter", "0 0");
|
||||
@@ -234,5 +231,3 @@ user_pref("layout.word_select.eat_space_to_next_word", false);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-3
@@ -10,7 +10,7 @@
|
||||
/****************************************************************************
|
||||
* BetterZen *
|
||||
* "Ex nihilo nihil fit" *
|
||||
* version: 142 *
|
||||
* version: 138 *
|
||||
* url: https://github.com/yokoffing/Betterfox *
|
||||
****************************************************************************/
|
||||
|
||||
@@ -38,8 +38,6 @@ user_pref("network.predictor.enable-prefetch", false);
|
||||
****************************************************************************/
|
||||
/** TRACKING PROTECTION ***/
|
||||
user_pref("browser.contentblocking.category", "strict");
|
||||
user_pref("privacy.trackingprotection.allow_list.baseline.enabled", true);
|
||||
user_pref("privacy.trackingprotection.allow_list.convenience.enabled", true);
|
||||
user_pref("browser.download.start_downloads_in_tmp_dir", true);
|
||||
|
||||
/** OCSP & CERTS / HPKP ***/
|
||||
|
||||
Reference in New Issue
Block a user