-
Notifications
You must be signed in to change notification settings - Fork 23
/
firefox.js
67 lines (49 loc) · 2.09 KB
/
firefox.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Preferences for Firefox. To be symlinked in the profile as user.js.
// Settings synced through Firefox Accounts may not be present.
// Theme
user_pref("extensions.activeThemeID", "[email protected]");
user_pref("devtools.theme", "dark");
user_pref("ui.systemUsesDarkTheme", 0);
// 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);
// Homepage is newtab. On launch, restore session.
user_pref("browser.startup.homepage", "about:newtab");
user_pref("browser.startup.page", 3);
// Languages
user_pref("intl.accept_languages", "en-us,en,fr");
// Disable pocket
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
user_pref("extensions.pocket.enabled", false);
// Don't recommend extensions
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
user_pref("browser.discovery.enabled", false);
// Backspace is like back
user_pref("browser.backspace_action", 0);
// Don't allow detaching a tab by pulling it
user_pref("browser.tabs.allowTabDetach", false);
// Don't display a close button for tabs
user_pref("browser.tabs.tabClipWidth", 1000);
// Don't display fullscreen warning
user_pref("full-screen-api.warning.timeout", 0);
user_pref("full-screen-api.transition.timeout", 0);
// Don't autoplay videos (even without audio)
user_pref("media.autoplay.default", 5);
// Remove some annoying animations (notably when going full screen)
user_pref("toolkit.cosmeticAnimations.enabled", false);
// Force enable WebRender
user_pref("gfx.webrender.all", true);
// And VAAPI decoding with ffmpeg
user_pref("gfx.x11-egl.force-enabled", true);
user_pref("media.ffmpeg.vaapi.enabled", true);
// Enable AVIF
user_pref("image.avif.enabled", true);
// Disable DoH for now
user_pref("network.trr.mode", 5);