summaryrefslogtreecommitdiff
path: root/home/xyz/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js
blob: cd60648e31b26f82ea866af8e690f15f3373f656 (plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// https://github.com/arkenfox/user.js/issues/1621#issuecomment-1413230640
// https://github.com/arkenfox/user.js/wiki/5.2-Troubleshooting
user_pref("_user.js.parrot", "custom overrides: starting");

// fixes
// douyu pay, bilibili stream watch and user space, pixiv some images not show
// now default for version 115.1 so no need
//user_pref("network.http.referer.XOriginPolicy", 0);
// in the past: baidu
//user_pref("security.ssl.require_safe_negotiation", false);

// fixes and issues unrelated to arkenfox user.js and addons:
// disable ublock origin:
//   baidu drive save to my drive not working
//   baidu drive verify phone when delete file not working
// disable enhanced tracking protection:
//   google drive can't download
//   douyu verification for change password
//   bilibili.com can't login
//   kraken change default from kraken pro to kraken
// disable bypass paywalls clean:
//   login quora.com
// disable ClearURLs:
//   amazon sort
// disable smart referer (sometimes work):
//   mail.qq.com

// arkenfox v128 disabled these previously enabled options, I want to enable them
// set to false to fix: image upload from local, image check not robot, disable surfingkey alt-s hotkey, twitch login and follow, douyin login, douyin chat in live streaming room, google map highway name, protomaps China province name, joinhandshake.com maybe need to disable this once, adobe express, some VPS web VNC keyboard shift modifier not working (e.g., I can't press shift+[ to get { and instead I get [, also for all other keys)
user_pref("privacy.resistFingerprinting", true);
user_pref("privacy.resistFingerprinting.letterboxing", true);
// this can be used to disable RFP by domain, see user.js and https://github.com/arkenfox/user.js/issues/1804#issuecomment-2331701765
//user_pref("privacy.resistFingerprinting.exemptedDomains", "*.example.invalid");
// set to false to fix: labster, protomaps, starlink.com availability map, istheservicedown.com outage map, adobe express
user_pref("webgl.disabled", true);

// http://kb.mozillazine.org/Network.cookie.lifetimePolicy
// https://github.com/arkenfox/user.js/releases/tag/102.1
user_pref("network.cookie.lifetimePolicy", 0);
user_pref("privacy.clearOnShutdown.cookies", false);
// firefox 128 new config needed to not clear cookie on shutdown, see https://github.com/arkenfox/user.js/issues/1846
user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", false);
// enable search engine in location bar
user_pref("keyword.enabled", true); 
// enable https-only mode in private windows only
//user_pref("dom.security.https_only_mode", false);
//user_pref("dom.security.https_only_mode_pbm", true);
// enable search suggestions
//user_pref("browser.search.suggest.enabled", true);
//user_pref("browser.urlbar.suggest.searches", true);
user_pref("extensions.pocket.enabled", false);
user_pref("extensions.screenshots.disabled", true);
// popup allow "keydown" event, for surfingkeys f hotkey open link in another tab, ex: searx (preference "Results on new tabs" set to on)
user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown keydown");
// middle-click enabling auto-scrolling
//user_pref("general.autoScroll", true);
// disable DNS over https, to prevent DNS leak when using VPN
user_pref("network.trr.mode", 5);
// 0: normal, 1: compact, 2: touch
user_pref("browser.uidensity", 1);
// change content process limit, default: 8?
//user_pref("dom.ipc.processCount", 4);
// block all video and audio autoplay
user_pref("media.autoplay.default", 5);
// hardware video acceleration
// https://wiki.archlinux.org/title/Firefox#Hardware_video_acceleration
user_pref("gfx.webrender.all", true);
user_pref("media.ffmpeg.vaapi.enabled", true);

// old about:config and settings, for perfsCleaner.sh
// use extensions on more sites
user_pref("extensions.webextensions.restrictedDomains", "");
// to use userChrome.css
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
// let tree style tab background dark with arc-dark linux theme
// i'm not using TST now, but it still might be useful for other extensions
// however, starting from around firefox 95, this makes some site show dark background with light theme fonts? so not using it now
//user_pref("widget.content.allow-gtk-dark-theme", true);
// when refresh searx page, no window will pop up and ask for resend
// https://www.reddit.com/r/firefox/comments/nnluzz/disable_to_display_this_page_firefox_must_send/gzyoia4?utm_source=share&utm_medium=web2x&context=3
user_pref("dom.confirm_repost.testing.always_accept", true);
// no warn on close multiple tabs
user_pref("browser.tabs.warnOnClose", false);
// address bar do not suggest open tabs
user_pref("browser.urlbar.suggest.openpage", false);
// address bar do not suggest shortcuts:
// websites that appear when there's no entry in url bar
// have sites like facebook that I almost never use and not in my bookmark
user_pref("browser.urlbar.suggest.topsites", false);

// a workaround to disable autofocus on address bar, because I may mistype my password into address bar when typing master password
// pinephone config does not need this, because I set bookmark sidebar as homepage and it does not autofocus on address bar
// https://www.freecodecamp.org/news/what-are-bookmarklets
// no need anymore because I switched to pass
//user_pref("browser.startup.page", 1);
//user_pref("browser.startup.homepage", "javascript:");

// I switched to pass, no need firefox password manager anymore
user_pref("signon.rememberSignons", false);
// no need credit card save and autofill
user_pref("extensions.formautofill.creditCards.enabled", false); // [FF56+]

user_pref("_user.js.parrot", "custom overrides: finished");