diff --git a/PeskyFox.js b/PeskyFox.js index 9314cda..b4650a1 100644 --- a/PeskyFox.js +++ b/PeskyFox.js @@ -9,9 +9,9 @@ /**************************************************************************** * PeskyFox * - * "Aquila non capit muscas." * + * "Aquila non capit muscas" * * priority: remove annoyances * - * version: July 2022 * + * version: September 2022 * * url: https://github.com/yokoffing/Better-Fox * ***************************************************************************/ @@ -37,6 +37,9 @@ user_pref("layout.css.prefers-color-scheme.content-override", 2); // PREF: Allow Firefox to use userChome, userContent, etc. user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); +// PREF: add compact mode back to options +user_pref("browser.compactmode.show", true); + // PREF: Mozilla VPN user_pref("browser.privatebrowsing.vpnpromourl", ""); @@ -81,6 +84,75 @@ user_pref("full-screen-api.transition-duration.leave", "0 0"); user_pref("full-screen-api.warning.delay", 0); user_pref("full-screen-api.warning.timeout", 0); +/**************************************************************************** + * SECTION: FONT APPEARANCE * +****************************************************************************/ + +// PREF: smoother font +// [1] https://www.reddit.com/r/firefox/comments/wvs04y/windows_11_firefox_v104_font_rendering_different/?context=3 + user_pref("gfx.webrender.quality.force-subpixel-aa-where-possible", true); + user_pref("gfx.font_rendering.cleartype_params.rendering_mode", 5); + // user_pref("gfx.font_rendering.cleartype_params.gamma", 1750); + +// PREF: use DirectWrite everywhere like Chrome +// [1] https://www.reddit.com/r/firefox/comments/wvs04y/comment/ilklzy1/?context=3 + user_pref("gfx.font_rendering.cleartype_params.force_gdi_classic_for_families", ""); + // user_pref("gfx.font_rendering.cleartype_params.enhanced_contrast", 50); + +// PREF: use Mac OS X Appearance panel text smoothing setting when rendering text + // user_pref("gfx.use_text_smoothing_setting", true); + +/**************************************************************************** + * SECTION: URL BAR * +****************************************************************************/ + +// PREF: URL bar suggestions (bookmarks, history, open tabs) / dropdown options in the URL bar +// user_pref("browser.urlbar.suggest.bookmarks", true); +user_pref("browser.urlbar.suggest.engines", false); +// user_pref("browser.urlbar.suggest.history", false); +// user_pref("browser.urlbar.suggest.openpage", true); +// user_pref("browser.urlbar.suggest.searches", false); +// Disable dropdown suggestions with empty query: +user_pref("browser.urlbar.suggest.topsites", false); +user_pref("browser.urlbar.suggest.calculator", true); +user_pref("browser.urlbar.unitConversion.enabled", true); + +// PREF: Adaptive History Autofill +// [1] https://docs.google.com/document/u/1/d/e/2PACX-1vRBLr_2dxus-aYhZRUkW9Q3B1K0uC-a0qQyE3kQDTU3pcNpDHb36-Pfo9fbETk89e7Jz4nkrqwRhi4j/pub +// user_pref("browser.urlbar.autoFill", true); [DEFAULT] +// user_pref("browser.urlbar.autoFill.adaptiveHistory.enabled", false); + +// PREF: Quick Actions in the URL Bar +// [1] https://www.ghacks.net/2022/07/19/mozilla-is-testing-quick-actions-in-firefoxs-address-bar/ +// user_pref("browser.urlbar.quickactions.enabled", false); +// user_pref("browser.urlbar.shortcuts.quickactions", false); + +// PREF: Address bar / URL bar dropdown +// This value controls the total number of entries to appear in the location bar dropdown. +// [NOTE] Items (bookmarks/history/openpages) with a high "frequency"/"bonus" will always +// be displayed (no we do not know how these are calculated or what the threshold is), +// and this does not affect the search by search engine suggestion. +// default=10, disable=0 +// user_pref("browser.urlbar.maxRichResults", 1); + +/**************************************************************************** + * SECTION: AUTOPLAY * +****************************************************************************/ + +// PREF: do not autoplay media audio +// [NOTE] You can set exceptions under site permissions +// [SETTING] Privacy & Security>Permissions>Autoplay>Settings>Default for all websites +// 0=Allow all, 1=Block non-muted media (default), 5=Block all +user_pref("media.autoplay.default", 1); // default +user_pref("media.block-autoplay-until-in-foreground", true); // default + +// PREF: disable autoplay of HTML5 media if you interacted with the site [FF78+] +// 0=sticky (default), 1=transient, 2=user +// Firefox's Autoplay Policy Documentation (PDF) is linked below via SUMO +// [NOTE] If you have trouble with some video sites (e.g. YouTube), then add an exception (see previous PREF) +// [1] https://support.mozilla.org/questions/1293231 +// user_pref("media.autoplay.blocking_policy", 2); + /**************************************************************************** * SECTION: NEW TAB PAGE * ****************************************************************************/ @@ -174,133 +246,8 @@ user_pref("browser.download.autohideButton", true); // default // [SETTING] General>Files and Applications>What should Firefox do with other files user_pref("browser.download.always_ask_before_handling_new_types", true); -/**************************************************************************** - * SECTION: VARIOUS * -****************************************************************************/ - -// PREF: add compact mode back to options -user_pref("browser.compactmode.show", true); - -// PREF: restore "View image info" -user_pref("browser.menu.showViewImageInfo", true); - -// PREF: unload tabs on low memory -// Firefox will detect if your computer’s memory is running low (less than 400MB) -// and suspend tabs that you have not used in awhile. -// [1] https://support.mozilla.org/en-US/questions/1262073 -// [2] https://blog.nightly.mozilla.org/2021/05/14/these-weeks-in-firefox-issue-93/ -user_pref("browser.tabs.unloadOnLowMemory", true); // default - -// PREF: URL bar suggestions (bookmarks, history, open tabs) / dropdown options in the URL bar -// user_pref("browser.urlbar.suggest.bookmarks", true); -user_pref("browser.urlbar.suggest.engines", false); -// user_pref("browser.urlbar.suggest.history", false); -// user_pref("browser.urlbar.suggest.openpage", true); -// user_pref("browser.urlbar.suggest.searches", false); -// Disable dropdown suggestions with empty query -user_pref("browser.urlbar.suggest.topsites", false); - -// PREF: Adaptive History Autofill -// [1] https://docs.google.com/document/u/1/d/e/2PACX-1vRBLr_2dxus-aYhZRUkW9Q3B1K0uC-a0qQyE3kQDTU3pcNpDHb36-Pfo9fbETk89e7Jz4nkrqwRhi4j/pub -// user_pref("browser.urlbar.autoFill", true); [DEFAULT] -// user_pref("browser.urlbar.autoFill.adaptiveHistory.enabled", false); - -// PREF: Quick Actions in the URL Bar -// [1] https://www.ghacks.net/2022/07/19/mozilla-is-testing-quick-actions-in-firefoxs-address-bar/ -// user_pref("browser.urlbar.quickactions.enabled", false); -// user_pref("browser.urlbar.shortcuts.quickactions", false); - -// PREF: Address bar / URL bar dropdown -// This value controls the total number of entries to appear in the location bar dropdown. -// [NOTE] Items (bookmarks/history/openpages) with a high "frequency"/"bonus" will always -// be displayed (no we do not know how these are calculated or what the threshold is), -// and this does not affect the search by search engine suggestion. -// default=10, disable=0 -// user_pref("browser.urlbar.maxRichResults", 1); - -// PREF: Set a default permission for Notifications -// To add site exceptions: Page Info>Permissions>Receive Notifications. -// To manage site exceptions: Options>Privacy & Security>Permissions>Notifications>Settings. -// 0=always ask (default), 1=allow, 2=block -user_pref("permissions.default.desktop-notification", 2); - -// PREF: disable Push API -// Push is an API that allows websites to send you (subscribed) messages even when the site -// isn't loaded, by pushing messages to your userAgentID through Mozilla's Push Server. -// [1] https://support.mozilla.org/en-US/kb/push-notifications-firefox -// [2] https://developer.mozilla.org/en-US/docs/Web/API/Push_API -// [3] https://www.reddit.com/r/firefox/comments/fbyzd4/the_most_private_browser_isnot_firefox/ -user_pref("dom.push.enabled", false); -// user_pref("dom.push.userAgentID", ""); - -// PREF: do not autoplay media audio -// [NOTE] You can set exceptions under site permissions -// [SETTING] Privacy & Security>Permissions>Autoplay>Settings>Default for all websites -// 0=Allow all, 1=Block non-muted media (default), 5=Block all -user_pref("media.autoplay.default", 1); // default -user_pref("media.block-autoplay-until-in-foreground", true); // default - -// PREF: disable autoplay of HTML5 media if you interacted with the site [FF78+] -// 0=sticky (default), 1=transient, 2=user -// Firefox's Autoplay Policy Documentation (PDF) is linked below via SUMO -// [NOTE] If you have trouble with some video sites (e.g. YouTube), then add an exception (see previous PREF) -// [1] https://support.mozilla.org/questions/1293231 -// user_pref("media.autoplay.blocking_policy", 2); - -// PREF: Disable Reader mode -// Firefox will not have to parse webpage for Reader when navigating. -// Minimal performance impact. -// user_pref("reader.parse-on-load.enabled", false); - -// PREF: Disable backspace action -// 0=previous page, 1=scroll up, 2=do nothing -user_pref("browser.backspace_action", 2); // default - -// PREF: Disable ALT key toggling the menu bar -// user_pref("ui.key.menuAccessKey", 0); - -// PREF: CTRL+TAB cycles tabs in chronological order instead of recently- -// used order -// user_pref("browser.ctrlTab.recentlyUsedOrder", false); - -// PREF: Show all matches in Findbar -user_pref("findbar.highlightAll", true); - -// PREF: Spell-check -// 0=none, 1-multi-line, 2=multi-line & single-line -// user_pref("layout.spellcheckDefault", 1); // default - -// PREF: Disable Accessibility services -user_pref("accessibility.force_disabled", 1); - -// PREF: Limit the number of bookmark backups Firefox keeps -user_pref("browser.bookmarks.max_backups", 2); - -// PREF: Allow for more granular control of zoom levels -// Especially useful if you want to set your default zoom to a custom level -// user_pref("toolkit.zoomManager.zoomValues", ".3,.5,.67,.8,.9,.95,1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,2,2.4,3"); - -// PREF: Hide image placeholders -user_pref("browser.display.show_image_placeholders", false); - -// PREF: Wrap long lines of text when using source / debugger -user_pref("view_source.wrap_long_lines", true); -user_pref("devtools.debugger.ui.editor-wrapping", true); - -// PREF: print preview -user_pref("print.tab_modal.enabled", true); // default - -// PREF: CSS Constructable Stylesheets -user_pref("layout.css.constructable-stylesheets.enabled", true); // default - -// PREF: CSS Masonry Layout -user_pref("layout.css.grid-template-masonry-value.enabled", true); - -// PREF: Web API inputmode -user_pref("dom.forms.inputmode", true); // default - -// PREF: Web API WebGPU -// user_pref("dom.webgpu.enabled", true); +// PREF: autohide the downloads button +user_pref("browser.download.autohideButton", true); // DEFAULT /**************************************************************************** * SECTION: PDF * @@ -393,12 +340,86 @@ user_pref("browser.bookmarks.openInTabClosesMenu", false); // user_pref("accessibility.blockautorefresh", true); // user_pref("browser.meta_refresh_when_inactive.disabled", true); -// PREF: AVIF image format -// [1] https://www.omgubuntu.co.uk/2021/01/firefox-86-avif-image-support -user_pref("image.avif.enabled", true); // default +// PREF: Limit events that can cause a pop-up +// Firefox provides an option to provide exceptions for sites, remembered in your Site Settings. +// (default) "change click dblclick auxclick mouseup pointerup notificationclick reset submit touchend contextmenu" +// (alternate) user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown"); +user_pref("dom.popup_allowed_events", "click dblclick"); +user_pref("dom.disable_open_during_load", true); // default +user_pref("privacy.popups.showBrowserMessage", true); // default -// PREF: JPEG XL image format -user_pref("image.jxl.enabled", true); +// PREF: unload tabs on low memory +// Firefox will detect if your computer’s memory is running low (less than 400MB) +// and suspend tabs that you have not used in awhile. +// [1] https://support.mozilla.org/en-US/questions/1262073 +// [2] https://blog.nightly.mozilla.org/2021/05/14/these-weeks-in-firefox-issue-93/ +user_pref("browser.tabs.unloadOnLowMemory", true); // default + +/**************************************************************************** + * SECTION: UNCATEGORIZED * +****************************************************************************/ + +// PREF: restore "View image info" +// user_pref("browser.menu.showViewImageInfo", true); + +// PREF: disable Push API +// Push is an API that allows websites to send you (subscribed) messages even when the site +// isn't loaded, by pushing messages to your userAgentID through Mozilla's Push Server. +// [1] https://support.mozilla.org/en-US/kb/push-notifications-firefox +// [2] https://developer.mozilla.org/en-US/docs/Web/API/Push_API +// [3] https://www.reddit.com/r/firefox/comments/fbyzd4/the_most_private_browser_isnot_firefox/ +user_pref("dom.push.enabled", false); +// user_pref("dom.push.userAgentID", ""); + +// PREF: Disable Reader mode +// Firefox will not have to parse webpage for Reader when navigating. +// Minimal performance impact. +// user_pref("reader.parse-on-load.enabled", false); + +// PREF: Disable backspace action +// 0=previous page, 1=scroll up, 2=do nothing +user_pref("browser.backspace_action", 2); // default + +// PREF: Disable ALT key toggling the menu bar +// user_pref("ui.key.menuAccessKey", 0); + +// PREF: CTRL+TAB cycles tabs in chronological order instead of recently- +// used order +// user_pref("browser.ctrlTab.recentlyUsedOrder", false); + +// PREF: Show all matches in Findbar +user_pref("findbar.highlightAll", true); + +// PREF: Spell-check +// 0=none, 1-multi-line, 2=multi-line & single-line +// user_pref("layout.spellcheckDefault", 1); // default + +// PREF: Disable Accessibility services +user_pref("accessibility.force_disabled", 1); +user_pref("devtools.accessibility.enabled", false); + +// PREF: Limit the number of bookmark backups Firefox keeps +user_pref("browser.bookmarks.max_backups", 2); + +// PREF: Allow for more granular control of zoom levels +// Especially useful if you want to set your default zoom to a custom level + // user_pref("toolkit.zoomManager.zoomValues", ".3,.5,.67,.8,.9,.95,1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,2,2.4,3"); + +// PREF: Hide image placeholders +// user_pref("browser.display.show_image_placeholders", false); + +// PREF: Wrap long lines of text when using source / debugger +user_pref("view_source.wrap_long_lines", true); +user_pref("devtools.debugger.ui.editor-wrapping", true); + +// PREF: print preview +user_pref("print.tab_modal.enabled", true); // default + +// PREF: Web API inputmode +user_pref("dom.forms.inputmode", true); // default + +// PREF: Web API WebGPU +// user_pref("dom.webgpu.enabled", true); // PREF: Prevent password truncation when submitting form data // [1] https://www.ghacks.net/2020/05/18/firefox-77-wont-truncate-text-exceeding-max-length-to-address-password-pasting-issues/ @@ -406,21 +427,7 @@ user_pref("editor.truncate_user_pastes", false); // PREF: Adjust the minimum tab width // [!] Can be overridden by userChrome.css. -// user_pref("browser.tabs.tabMinWidth", 120); // default=76 - -// PREF: reduce size of picture-in-picture icon on the first run -user_pref("media.videocontrols.picture-in-picture.video-toggle.has-used", true); -// PREF: always show the picture-in-picture toggle -// user_pref("media.videocontrols.picture-in-picture.video-toggle.always-show", true); + // user_pref("browser.tabs.tabMinWidth", 120); // default=76 // PREF: Plain Text only when copying text. user_pref("clipboard.plainTextOnly", true); - -// PREF: Limit events that can cause a pop-up -// Really cuts down on pop-ups Private Browsing websites... Thank me later. -// Firefox provides an option to provide exceptions for sites, remembered in your Site Settings. -// (default) "change click dblclick auxclick mouseup pointerup notificationclick reset submit touchend contextmenu" -// (recommended) user_pref("dom.popup_allowed_events", "dblclick"); -user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown"); -user_pref("dom.disable_open_during_load", true); // default -user_pref("privacy.popups.showBrowserMessage", true); // default