Skip to content

Commit d51c67f

Browse files
Adds some new preferences for v68 (#4)
Co-Authored-By: atomGit <atomgit@users.noreply.github.com>
1 parent 9d9fb07 commit d51c67f

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

user.js

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,9 @@ user_pref("security.cert_pinning.enforcement_level", 2);
533533
user_pref("security.mixed_content.block_active_content", true); // [DEFAULT: true]
534534
/* 1241: disable insecure passive content (such as images) on https pages [SETUP-WEB] ***/
535535
user_pref("security.mixed_content.block_display_content", true);
536+
/* 1243: block unencrypted requests from Flash on encrypted pages to mitigate MitM attacks [FF59+]
537+
* [1] https://bugzilla.mozilla.org/1190623 ***/
538+
user_pref("security.mixed_content.block_object_subrequest", true);
536539

537540
/** CIPHERS [see the section 1200 intro] ***/
538541
/* 1261: disable 3DES (effective key size < 128)
@@ -569,6 +572,10 @@ user_pref("security.insecure_connection_icon.enabled", true); // [FF59+]
569572
user_pref("security.insecure_connection_text.enabled", true); // [FF60+]
570573
// user_pref("security.insecure_connection_icon.pbmode.enabled", true);
571574
// user_pref("security.insecure_connection_text.pbmode.enabled", true);
575+
/* 1280: display warnings when insecure HTTP connections are made ***/
576+
user_pref("security.warn_entering_weak", true);
577+
user_pref("security.warn_leaving_secure", true);
578+
user_pref("security.warn_viewing_mixed", true);
572579

573580
/*** [SECTION 1400]: FONTS ***/
574581
user_pref("_user.js.parrot", "1400 syntax error: the parrot's bereft of life!");
@@ -849,6 +856,9 @@ user_pref("dom.webaudio.enabled", false);
849856

850857
/*** [SECTION 2600]: MISCELLANEOUS ***/
851858
user_pref("_user.js.parrot", "2600 syntax error: the parrot's run down the curtain!");
859+
/* 2602: disable sending additional analytics to web servers
860+
* [1] https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon ***/
861+
user_pref("beacon.enabled", false);
852862
/* 2607: disable various developer tools in browser context
853863
* [SETTING] Devtools>Advanced Settings>Enable browser chrome and add-on debugging toolboxes
854864
* [1] https://github.com/pyllyukko/user.js/issues/179#issuecomment-246468676 ***/
@@ -945,6 +955,10 @@ user_pref("_user.js.parrot", "2700 syntax error: the parrot's joined the bleedin
945955
* [NOTE] You can set exceptions under site permissions or use an extension
946956
* [SETTING] Privacy & Security>Content Blocking>Custom>Choose what to block>Cookies ***/
947957
user_pref("network.cookie.cookieBehavior", 2);
958+
/* 2710: disable DOM (Document Object Model) Storage
959+
* [WARNING] This will break a LOT of sites' functionality AND extensions!
960+
* You are better off using an extension for more granular control ***/
961+
// user_pref("dom.storage.enabled", false);
948962
/* 2720: enforce IndexedDB (IDB) as enabled
949963
* IDB is required for extensions and Firefox internals (even before FF63 in [1])
950964
* To control *website* IDB data, control allowing cookies and service workers, or use
@@ -1201,6 +1215,12 @@ user_pref("dom.w3c_pointer_events.enabled", false);
12011215
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=232227,1330876
12021216
user_pref("ui.use_standins_for_native_colors", true);
12031217
// * * * /
1218+
// FF41+
1219+
// 4620: mitigate fingerprinting via canvas
1220+
// [NOTE] This setting has been removed from gHacks v67 (see [1]) but is still enabled by default.
1221+
// [1] https://github.com/ghacksuserjs/ghacks-user.js/commit/8b07fd57d0f8a31dab25661d51235fe1b0c6360c
1222+
user_pref("canvas.capturestream.enabled", false);
1223+
// * * * /
12041224
// ***/
12051225

12061226
/*** [SECTION 4700]: RFP ALTERNATIVES (NAVIGATOR / USER AGENT (UA) SPOOFING)
@@ -1229,6 +1249,8 @@ user_pref("_user.js.parrot", "4700 syntax error: the parrot's taken 'is last bow
12291249
// user_pref("general.platform.override", ""); // [HIDDEN PREF]
12301250
/* 4706: navigator.oscpu ***/
12311251
// user_pref("general.oscpu.override", ""); // [HIDDEN PREF]
1252+
/* 4707: Limit user-agent data by imitating Firefox's user-agent */
1253+
// user_pref("general.useragent.compatMode.firefox", true);
12321254

12331255
/*** [SECTION 5000]: PERSONAL
12341256
Non-project related but useful. If any of these interest you, add them to your overrides ***/
@@ -1288,6 +1310,14 @@ user_pref("mail.tabs.autoHide", true);
12881310
* true=Show just the display name for people in the address book (default)
12891311
* false=Show both the email address and display name. ***/
12901312
user_pref("mail.showCondensedAddresses", false);
1313+
/* 6010: Disable "Filelink for Large Attachments" feature
1314+
* [1] https://support.thunderbird.net/kb/filelink-large-attachments ***/
1315+
user_pref("mail.cloud_files.enabled", false);
1316+
user_pref("mail.cloud_files.inserted_urls.footer.link", "");
1317+
/* 6020: Don't hide cookies and passwords related (advanced?) buttons ***/
1318+
user_pref("pref.privacy.disable_button.view_cookies", false);
1319+
user_pref("pref.privacy.disable_button.cookie_exceptions", false);
1320+
user_pref("pref.privacy.disable_button.view_passwords", false);
12911321

12921322
/** HEADERS ***/
12931323
/* 6004:
@@ -1305,7 +1335,6 @@ user_pref("mailnews.headers.showUserAgent", false);
13051335
* If you don't set it to something in your SMTP server's domain it may increase your spam
13061336
* score. ***/
13071337
user_pref("mail.smtpserver.default.hello_argument", "[127.0.0.1]");
1308-
13091338
/* 6007: Displayed dates and times
13101339
* When your e-mail program displays the e-mail's date and time, it normally converts them to your
13111340
* time zone. If your computer's time zone settings are wrong, then you will see the wrong time
@@ -1442,6 +1471,10 @@ user_pref("purple.logging.log_ims", false);
14421471
user_pref("purple.logging.log_system", false);
14431472
/* 6205: Disable typing notifications ***/
14441473
user_pref("purple.conversations.im.send_typing", false);
1474+
/* 6210: When chat is enabled, do not connect to accounts automatically
1475+
* 0=Do not connect / show the account manager,
1476+
* 1=Connect automatically. (Default) ***/
1477+
// user_pref("messenger.startup.action", 0);
14451478

14461479
/** CALENDAR ***/
14471480
/* 6206: Disable calendar integration ***/

0 commit comments

Comments
 (0)