Skip to content

Commit c11d46e

Browse files
committed
Set user.js update
1 parent 009b49b commit c11d46e

File tree

4 files changed

+56
-16
lines changed

4 files changed

+56
-16
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.zwc
33
metapackages/*.deb
44
/.gtm/
5+
/firefox/userjs_backups

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
SHELL := /bin/bash
12

23
.PHONY: install
34
install:
@@ -12,3 +13,11 @@ build_pyenv-deps:
1213
equivs-build ~/.dotfiles/metapackages/pyenv-deps
1314
sudo apt install --yes ./pyenv-deps_*.deb
1415
rm ./pyenv-deps_*.deb
16+
17+
.PHONY: update-userjs
18+
update-userjs:
19+
bash <(curl -s https://raw.githubusercontent.com/arkenfox/user.js/master/updater.sh) \
20+
-p ~/.dotfiles/firefox \
21+
-d \
22+
-s
23+

firefox/user-overrides.js

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* Enable start page
2+
user_pref("browser.startup.page", 1); // 0102
3+
user_pref("browser.startup.homepage", "https://duckduckgo.com"); // 0103
4+
// */
5+
6+
// Enable back automatic search in url bar
7+
user_pref("keyword.enabled", true); // 0801
8+
user_pref("browser.search.suggest.enabled", true); // 0807
9+
user_pref("browser.urlbar.suggest.searches", true); // 0807
10+
// */
11+
12+
// Enable Cloudflare DoH
13+
user_pref("network.trr.mode", 3);
14+
user_pref("network.trr.uri", "https://mozilla.cloudflare-dns.com/dns-query");
15+
user_pref("network.trr.bootstrapAddress", "1.1.1.1");
16+
user_pref("security.tls.enable_0rtt_data", true); // 1206
17+
user_pref("network.security.esni.enabled", true);
18+
// */
19+
20+
// Fix SEC_ERROR_OCSP_SERVER_ERROR
21+
user_pref("security.OCSP.require", false); // 1212
22+
23+
// Disable cleanup upon shutdown
24+
user_pref("privacy.sanitize.sanitizeOnShutdown", false); // 2802
25+
// 2803
26+
user_pref("privacy.clearOnShutdown.cache", true);
27+
user_pref("privacy.clearOnShutdown.cookies", true);
28+
user_pref("privacy.clearOnShutdown.downloads", true); // see note above
29+
user_pref("privacy.clearOnShutdown.formdata", true); // Form & Search History
30+
user_pref("privacy.clearOnShutdown.history", true); // Browsing & Download History
31+
user_pref("privacy.clearOnShutdown.offlineApps", true); // Offline Website Data
32+
user_pref("privacy.clearOnShutdown.sessions", true); // Active Logins
33+
user_pref("privacy.clearOnShutdown.siteSettings", false); // Site Preferences
34+
35+
// Do not resize inner window as a FPR technique
36+
user_pref("privacy.resistFingerprinting.letterboxing", false); // 4504

firefox/user.js

+10-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******
22
* name: arkenfox user.js
3-
* date: 22 Nov 2020
4-
* version 84-alpha
3+
* date: 17 Jan 2021
4+
* version 85-alpha
55
* url: https://github.com/arkenfox/user.js
66
* license: MIT: https://github.com/arkenfox/user.js/blob/master/LICENSE.txt
77
@@ -116,7 +116,6 @@ user_pref("browser.newtabpage.activity-stream.telemetry", false);
116116
* Runs code received from a server (aka Remote Code Execution) and sends information back to a metrics server
117117
* [1] https://abouthome-snippets-service.readthedocs.io/ ***/
118118
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
119-
user_pref("browser.newtabpage.activity-stream.asrouter.providers.snippets", "{}");
120119
/* 0105c: disable Activity Stream Top Stories, Pocket-based and/or sponsored content ***/
121120
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
122121
user_pref("browser.newtabpage.activity-stream.section.highlights.includePocket", false);
@@ -630,9 +629,11 @@ user_pref("_user.js.parrot", "1200 syntax error: the parrot's a stiff!");
630629
* if it disables renegotiations but the problem is that the browser can't know that.
631630
* Setting this pref to true is the only way for the browser to ensure there will be
632631
* no unsafe renegotiations on the channel between the browser and the server.
632+
* [STATS] SSL Labs (Dec 2020) reports 99.0% of sites have secure renegotiation [4]
633633
* [1] https://wiki.mozilla.org/Security:Renegotiation
634634
* [2] https://tools.ietf.org/html/rfc5746
635-
* [3] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555 ***/
635+
* [3] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555
636+
* [4] https://www.ssllabs.com/ssl-pulse/ ***/
636637
user_pref("security.ssl.require_safe_negotiation", true);
637638
/* 1202: control TLS versions with min and max
638639
* 1=TLS 1.0, 2=TLS 1.1, 3=TLS 1.2, 4=TLS 1.3
@@ -767,10 +768,8 @@ user_pref("dom.security.https_only_mode_send_http_background_request", false);
767768
/** UI (User Interface) ***/
768769
/* 1270: display warning on the padlock for "broken security" (if 1201 is false)
769770
* Bug: warning padlock not indicated for subresources on a secure page! [2]
770-
* [STATS] SSL Labs (Dec 2020) reports 99.0% of sites have secure renegotiation [3]
771771
* [1] https://wiki.mozilla.org/Security:Renegotiation
772-
* [2] https://bugzilla.mozilla.org/1353705
773-
* [3] https://www.ssllabs.com/ssl-pulse/ ***/
772+
* [2] https://bugzilla.mozilla.org/1353705 ***/
774773
user_pref("security.ssl.treat_unsafe_negotiation_as_broken", true);
775774
/* 1271: control "Add Security Exception" dialog on SSL warnings
776775
* 0=do neither 1=pre-populate url 2=pre-populate url + pre-fetch cert (default)
@@ -1191,7 +1190,10 @@ user_pref("permissions.delegation.enabled", false);
11911190
/* 2624: enable "window.name" protection [FF82+]
11921191
* If a new page from another domain is loaded into a tab, then window.name is set to an empty string. The original
11931192
* string is restored if the tab reverts back to the original page. This change prevents some cross-site attacks ***/
1194-
user_pref("privacy.window.name.update.enabled", true);
1193+
user_pref("privacy.window.name.update.enabled", true); // [DEFAULT: true FF86+]
1194+
/* 2625: disable bypassing 3rd party extension install prompts [FF82+]
1195+
* [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1659530,1681331 ***/
1196+
user_pref("extensions.postDownloadThirdPartyPrompt", false);
11951197

11961198
/** DOWNLOADS ***/
11971199
/* 2650: discourage downloading to desktop
@@ -1676,12 +1678,6 @@ user_pref("browser.search.geoSpecificDefaults.url", "");
16761678
/* END: internal custom pref to test for syntax errors ***/
16771679
user_pref("_user.js.parrot", "SUCCESS: No no he's not dead, he's, he's restin'!");
16781680

1679-
1680-
1681-
1682-
/*** MY OVERRIDES ***/
1683-
user_pref("_user.js.parrot", "overrides section syntax error");
1684-
16851681
/* Enable start page
16861682
user_pref("browser.startup.page", 1); // 0102
16871683
user_pref("browser.startup.homepage", "https://duckduckgo.com"); // 0103
@@ -1718,5 +1714,3 @@ user_pref("privacy.clearOnShutdown.siteSettings", false); // Site Preferences
17181714

17191715
// Do not resize inner window as a FPR technique
17201716
user_pref("privacy.resistFingerprinting.letterboxing", false); // 4504
1721-
1722-
user_pref("_user.js.parrot", "SUCCESS");

0 commit comments

Comments
 (0)