2020-01-24 07:30:39 +01:00
|
|
|
// Preferences for Firefox. To be symlinked in the profile as user.js.
|
|
|
|
// Settings synced through Firefox Accounts may not be present.
|
|
|
|
|
2021-04-08 22:53:14 +02:00
|
|
|
// Theme
|
2021-07-15 18:57:36 +02:00
|
|
|
user_pref("extensions.activeThemeID", "firefox-compact-dark@mozilla.org");
|
2021-04-08 22:53:14 +02:00
|
|
|
user_pref("devtools.theme", "dark");
|
2021-07-14 20:41:19 +02:00
|
|
|
// Dark interface but light web pages. Patch:
|
|
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1720508#c2
|
2021-07-15 18:57:36 +02:00
|
|
|
// From 91, we can restore the proper option:
|
|
|
|
// user_pref("ui.systemUsesDarkTheme", 0)
|
2021-04-08 22:53:14 +02:00
|
|
|
|
2020-01-24 07:30:39 +01:00
|
|
|
// Ensure context menus stay open after left-click (useful when scale
|
|
|
|
// == 1.5)
|
|
|
|
user_pref("ui.context_menus.after_mouseup", true);
|
|
|
|
|
|
|
|
// Don't display menubar when pressing Alt
|
|
|
|
user_pref("ui.key.menuAccessKeyFocuses", false);
|
|
|
|
|
|
|
|
// No popup at all!
|
|
|
|
user_pref("browser.link.open_newwindow.restriction", 0);
|
|
|
|
|
|
|
|
// Search settings
|
|
|
|
user_pref("browser.search.region", "FR");
|
|
|
|
user_pref("browser.search.suggest.enabled", false);
|
|
|
|
|
2020-04-04 08:18:49 +02:00
|
|
|
// Homepage is newtab. On launch, restore session.
|
2020-01-24 07:30:39 +01:00
|
|
|
user_pref("browser.startup.homepage", "about:newtab");
|
2020-04-04 08:18:49 +02:00
|
|
|
user_pref("browser.startup.page", 3);
|
2020-01-24 07:30:39 +01:00
|
|
|
|
|
|
|
// Languages
|
|
|
|
user_pref("intl.accept_languages", "en-us,en,fr");
|
|
|
|
|
2020-04-12 08:37:25 +02:00
|
|
|
// Disable pocket
|
2020-04-18 12:18:08 +02:00
|
|
|
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
|
2020-04-12 08:37:25 +02:00
|
|
|
user_pref("extensions.pocket.enabled", false);
|
|
|
|
|
2020-04-18 12:09:46 +02:00
|
|
|
// Don't recommend extensions
|
|
|
|
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
|
|
|
|
user_pref("browser.discovery.enabled", false);
|
|
|
|
|
2020-01-24 07:30:39 +01:00
|
|
|
// Backspace is like back
|
|
|
|
user_pref("browser.backspace_action", 0);
|
|
|
|
|
2020-03-20 22:16:39 +01:00
|
|
|
// Don't allow detaching a tab by pulling it
|
2020-02-17 22:36:00 +01:00
|
|
|
user_pref("browser.tabs.allowTabDetach", false);
|
2020-01-24 07:32:50 +01:00
|
|
|
|
2021-04-24 10:01:05 +02:00
|
|
|
// Don't display a close button for tabs
|
|
|
|
user_pref("browser.tabs.tabClipWidth", 1000);
|
|
|
|
|
2020-01-24 07:32:50 +01:00
|
|
|
// Don't display fullscreen warning
|
2020-01-24 07:37:10 +01:00
|
|
|
user_pref("full-screen-api.warning.timeout", 0);
|
|
|
|
user_pref("full-screen-api.transition.timeout", 0);
|
2020-01-24 07:41:36 +01:00
|
|
|
|
2021-07-17 12:41:59 +02:00
|
|
|
// Don't autoplay videos (except when no audio)
|
|
|
|
user_pref("media.autoplay.default", 1);
|
2020-07-05 14:00:45 +02:00
|
|
|
|
2020-01-24 07:41:36 +01:00
|
|
|
// Remove some annoying animations (notably when going full screen)
|
|
|
|
user_pref("toolkit.cosmeticAnimations.enabled", false);
|
2020-01-26 21:01:35 +01:00
|
|
|
|
2020-06-11 22:06:12 +02:00
|
|
|
// Force enable WebRender
|
|
|
|
user_pref("gfx.webrender.all", true);
|
2021-06-21 19:25:30 +02:00
|
|
|
// And VAAPI decoding with ffmpeg
|
|
|
|
user_pref("gfx.x11-egl.force-enabled", true);
|
|
|
|
user_pref("media.ffmpeg.vaapi.enabled", true);
|
2020-02-23 09:29:51 +01:00
|
|
|
|
2021-07-12 19:51:25 +02:00
|
|
|
// Legacy indicator is buggy (no content)
|
2021-07-12 18:56:14 +02:00
|
|
|
user_pref("privacy.webrtc.legacyGlobalIndicator", false);
|
2021-07-12 19:51:25 +02:00
|
|
|
user_pref("privacy.webrtc.globalMuteToggles", true);
|
2021-07-12 18:56:14 +02:00
|
|
|
|
2020-11-10 08:53:33 +01:00
|
|
|
// Enable AVIF
|
|
|
|
user_pref("image.avif.enabled", true);
|
|
|
|
|
2020-02-23 09:29:51 +01:00
|
|
|
// Disable DoH for now
|
|
|
|
user_pref("network.trr.mode", 5);
|