mirror of
https://github.com/arkenfox/user.js.git
synced 2025-09-01 09:28:31 +02:00
Compare commits
16 Commits
v74.0-beta
...
75.0
Author | SHA1 | Date | |
---|---|---|---|
3366e0aa16 | |||
dff5bb478a | |||
d455c500a6 | |||
b90e72370c | |||
dd162d9f48 | |||
d7c276b3fe | |||
394b691599 | |||
ba83c555cc | |||
b695468c7e | |||
deae6e14f9 | |||
97c5378e52 | |||
d2dd0c2ab4 | |||
8c7149c6a5 | |||
d2da48c215 | |||
7e71b6663c | |||
94c83519f2 |
@ -1,7 +1,7 @@
|
|||||||
/***
|
/***
|
||||||
This will reset the preferences that have been removed completely from the ghacks user.js.
|
This will reset the preferences that have been removed completely from the ghacks user.js.
|
||||||
|
|
||||||
Last updated: 19-December-2019
|
Last updated: 12-April-2020
|
||||||
|
|
||||||
For instructions see:
|
For instructions see:
|
||||||
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
||||||
@ -218,6 +218,9 @@
|
|||||||
/* 71-beta */
|
/* 71-beta */
|
||||||
'media.block-autoplay-until-in-foreground',
|
'media.block-autoplay-until-in-foreground',
|
||||||
'middlemouse.paste',
|
'middlemouse.paste',
|
||||||
|
/* 75-beta */
|
||||||
|
'browser.search.geoip.url',
|
||||||
|
'browser.search.region',
|
||||||
/* reset parrot: check your open about:config after running the script */
|
/* reset parrot: check your open about:config after running the script */
|
||||||
'_user.js.parrot'
|
'_user.js.parrot'
|
||||||
]
|
]
|
||||||
|
35
user.js
35
user.js
@ -1,13 +1,13 @@
|
|||||||
/******
|
/******
|
||||||
* name: ghacks user.js
|
* name: ghacks user.js
|
||||||
* date: 05 April 2020
|
* date: 23 April 2020
|
||||||
* version 74-beta
|
* version 75
|
||||||
* authors: v52+ github | v51- www.ghacks.net
|
* authors: v52+ github | v51- www.ghacks.net
|
||||||
* url: https://github.com/ghacksuserjs/ghacks-user.js
|
* url: https://github.com/ghacksuserjs/ghacks-user.js
|
||||||
* license: MIT: https://github.com/ghacksuserjs/ghacks-user.js/blob/master/LICENSE.txt
|
* license: MIT: https://github.com/ghacksuserjs/ghacks-user.js/blob/master/LICENSE.txt
|
||||||
|
|
||||||
* releases: These are end-of-stable-life-cycle legacy archives.
|
* releases: These are end-of-stable-life-cycle legacy archives.
|
||||||
*Always* use the master branch user.js for a current up-to-date version.
|
*Always* use the master branch user.js for a current up-to-date version
|
||||||
url: https://github.com/ghacksuserjs/ghacks-user.js/releases
|
url: https://github.com/ghacksuserjs/ghacks-user.js/releases
|
||||||
|
|
||||||
* README:
|
* README:
|
||||||
@ -158,12 +158,6 @@ user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/
|
|||||||
user_pref("geo.provider.ms-windows-location", false); // [WINDOWS]
|
user_pref("geo.provider.ms-windows-location", false); // [WINDOWS]
|
||||||
user_pref("geo.provider.use_corelocation", false); // [MAC]
|
user_pref("geo.provider.use_corelocation", false); // [MAC]
|
||||||
user_pref("geo.provider.use_gpsd", false); // [LINUX]
|
user_pref("geo.provider.use_gpsd", false); // [LINUX]
|
||||||
/* 0205: disable GeoIP-based search results
|
|
||||||
* [NOTE] May not be hidden if Firefox has changed your settings due to your locale
|
|
||||||
* [1] https://trac.torproject.org/projects/tor/ticket/16254
|
|
||||||
* [2] https://support.mozilla.org/en-US/kb/how-stop-firefox-making-automatic-connections#w_geolocation-for-default-search-engine ***/
|
|
||||||
user_pref("browser.search.region", "US"); // [HIDDEN PREF]
|
|
||||||
user_pref("browser.search.geoip.url", "");
|
|
||||||
/* 0206: disable geographically specific results/search engines e.g. "browser.search.*.US"
|
/* 0206: disable geographically specific results/search engines e.g. "browser.search.*.US"
|
||||||
* i.e. ignore all of Mozilla's various search engines in multiple locales ***/
|
* i.e. ignore all of Mozilla's various search engines in multiple locales ***/
|
||||||
user_pref("browser.search.geoSpecificDefaults", false);
|
user_pref("browser.search.geoSpecificDefaults", false);
|
||||||
@ -174,7 +168,9 @@ user_pref("browser.search.geoSpecificDefaults.url", "");
|
|||||||
* [TEST] https://addons.mozilla.org/about ***/
|
* [TEST] https://addons.mozilla.org/about ***/
|
||||||
user_pref("intl.accept_languages", "en-US, en");
|
user_pref("intl.accept_languages", "en-US, en");
|
||||||
/* 0211: enforce US English locale regardless of the system locale
|
/* 0211: enforce US English locale regardless of the system locale
|
||||||
* [1] https://bugzilla.mozilla.org/867501 ***/
|
* [SETUP-WEB] May break some input methods e.g xim/ibus for CJK languages, see [2]
|
||||||
|
* [1] https://bugzilla.mozilla.org/867501
|
||||||
|
* [2] https://bugzilla.mozilla.org/1629630 ***/
|
||||||
user_pref("javascript.use_us_english_locale", true); // [HIDDEN PREF]
|
user_pref("javascript.use_us_english_locale", true); // [HIDDEN PREF]
|
||||||
/* 0212: enforce fallback text encoding to match en-US
|
/* 0212: enforce fallback text encoding to match en-US
|
||||||
* When the content or server doesn't declare a charset the browser will
|
* When the content or server doesn't declare a charset the browser will
|
||||||
@ -396,7 +392,7 @@ user_pref("_user.js.parrot", "0700 syntax error: the parrot's given up the ghost
|
|||||||
/* 0701: disable IPv6
|
/* 0701: disable IPv6
|
||||||
* IPv6 can be abused, especially regarding MAC addresses. They also do not play nice
|
* IPv6 can be abused, especially regarding MAC addresses. They also do not play nice
|
||||||
* with VPNs. That's even assuming your ISP and/or router and/or website can handle it.
|
* with VPNs. That's even assuming your ISP and/or router and/or website can handle it.
|
||||||
* Firefox telemetry (April 2019) shows only 5% of all connections are IPv6.
|
* Firefox telemetry (April 2019) shows only 5% of all connections are IPv6
|
||||||
* [NOTE] This is just an application level fallback. Disabling IPv6 is best done at an
|
* [NOTE] This is just an application level fallback. Disabling IPv6 is best done at an
|
||||||
* OS/network level, and/or configured properly in VPN setups. If you are not masking your IP,
|
* OS/network level, and/or configured properly in VPN setups. If you are not masking your IP,
|
||||||
* then this won't make much difference. If you are masking your IP, then it can only help.
|
* then this won't make much difference. If you are masking your IP, then it can only help.
|
||||||
@ -596,6 +592,10 @@ user_pref("browser.cache.disk.enable", false);
|
|||||||
* [NOTE] This means any permission changes are session only
|
* [NOTE] This means any permission changes are session only
|
||||||
* [1] https://bugzilla.mozilla.org/967812 ***/
|
* [1] https://bugzilla.mozilla.org/967812 ***/
|
||||||
// user_pref("permissions.memory_only", true); // [HIDDEN PREF]
|
// user_pref("permissions.memory_only", true); // [HIDDEN PREF]
|
||||||
|
/* 1007: disable media cache from writing to disk in Private Browsing
|
||||||
|
* [NOTE] MSE (Media Source Extensions) are already stored in-memory in PB */
|
||||||
|
user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); // [FF75+]
|
||||||
|
user_pref("media.memory_cache_max_size", 16384);
|
||||||
|
|
||||||
/** SESSIONS & SESSION RESTORE ***/
|
/** SESSIONS & SESSION RESTORE ***/
|
||||||
/* 1020: exclude "Undo Closed Tabs" in Session Restore ***/
|
/* 1020: exclude "Undo Closed Tabs" in Session Restore ***/
|
||||||
@ -654,7 +654,7 @@ user_pref("security.ssl.require_safe_negotiation", true);
|
|||||||
/* 1202: control TLS versions with min and max
|
/* 1202: control TLS versions with min and max
|
||||||
* 1=TLS 1.0, 2=TLS 1.1, 3=TLS 1.2, 4=TLS 1.3
|
* 1=TLS 1.0, 2=TLS 1.1, 3=TLS 1.2, 4=TLS 1.3
|
||||||
* [WARNING] Leave these at default, otherwise you alter your TLS fingerprint.
|
* [WARNING] Leave these at default, otherwise you alter your TLS fingerprint.
|
||||||
* Firefox telemetry (April 2019) shows only 0.5% of TLS web traffic uses 1.0 or 1.1
|
* Firefox telemetry (April 2020) shows only 0.25% of TLS web traffic uses 1.0 or 1.1
|
||||||
* [1] https://www.ssllabs.com/ssl-pulse/ ***/
|
* [1] https://www.ssllabs.com/ssl-pulse/ ***/
|
||||||
// user_pref("security.tls.version.min", 3);
|
// user_pref("security.tls.version.min", 3);
|
||||||
// user_pref("security.tls.version.max", 4);
|
// user_pref("security.tls.version.max", 4);
|
||||||
@ -1027,14 +1027,14 @@ user_pref("_user.js.parrot", "2400 syntax error: the parrot's kicked the bucket!
|
|||||||
/* 2401: disable website control over browser right-click context menu
|
/* 2401: disable website control over browser right-click context menu
|
||||||
* [NOTE] Shift-Right-Click will always bring up the browser right-click context menu ***/
|
* [NOTE] Shift-Right-Click will always bring up the browser right-click context menu ***/
|
||||||
// user_pref("dom.event.contextmenu.enabled", false);
|
// user_pref("dom.event.contextmenu.enabled", false);
|
||||||
/* 2402: disable website access to clipboard events/content
|
/* 2402: disable website access to clipboard events/content [SETUP-HARDEN]
|
||||||
* [SETUP-WEB] This will break some sites functionality such as pasting into facebook, wordpress
|
* [NOTE] This will break some sites' functionality e.g. Outlook, Twitter, Facebook, Wordpress
|
||||||
* This applies to onCut/onCopy/onPaste events - i.e. it requires interaction with the website
|
* This applies to onCut/onCopy/onPaste events - i.e. it requires interaction with the website
|
||||||
* [WARNING] If both 'middlemouse.paste' and 'general.autoScroll' are true (at least one
|
* [WARNING] If both 'middlemouse.paste' and 'general.autoScroll' are true (at least one
|
||||||
* is default false) then enabling this pref can leak clipboard content, see [2]
|
* is default false) then enabling this pref can leak clipboard content, see [2]
|
||||||
* [1] https://www.ghacks.net/2014/01/08/block-websites-reading-modifying-clipboard-contents-firefox/
|
* [1] https://www.ghacks.net/2014/01/08/block-websites-reading-modifying-clipboard-contents-firefox/
|
||||||
* [2] https://bugzilla.mozilla.org/1528289 */
|
* [2] https://bugzilla.mozilla.org/1528289 */
|
||||||
user_pref("dom.event.clipboardevents.enabled", false);
|
// user_pref("dom.event.clipboardevents.enabled", false);
|
||||||
/* 2404: disable clipboard commands (cut/copy) from "non-privileged" content [FF41+]
|
/* 2404: disable clipboard commands (cut/copy) from "non-privileged" content [FF41+]
|
||||||
* this disables document.execCommand("cut"/"copy") to protect your clipboard
|
* this disables document.execCommand("cut"/"copy") to protect your clipboard
|
||||||
* [1] https://bugzilla.mozilla.org/1170911 ***/
|
* [1] https://bugzilla.mozilla.org/1170911 ***/
|
||||||
@ -1054,11 +1054,14 @@ user_pref("dom.vibrator.enabled", false);
|
|||||||
* [5] https://www.mozilla.org/security/advisories/mfsa2017-05/#CVE-2017-5400
|
* [5] https://www.mozilla.org/security/advisories/mfsa2017-05/#CVE-2017-5400
|
||||||
* [6] https://rh0dev.github.io/blog/2017/the-return-of-the-jit/ ***/
|
* [6] https://rh0dev.github.io/blog/2017/the-return-of-the-jit/ ***/
|
||||||
user_pref("javascript.options.asmjs", false);
|
user_pref("javascript.options.asmjs", false);
|
||||||
/* 2421: disable Ion and baseline JIT to help harden JS against exploits
|
/* 2421: disable Ion and baseline JIT to harden against JS exploits [SETUP-HARDEN]
|
||||||
|
* [NOTE] In FF75+, when **both** Ion and JIT are disabled, **and** the new
|
||||||
|
* hidden pref is enabled, then Ion can still be used by extensions (1599226)
|
||||||
* [WARNING] Disabling Ion/JIT can cause some site issues and performance loss
|
* [WARNING] Disabling Ion/JIT can cause some site issues and performance loss
|
||||||
* [1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-0817 ***/
|
* [1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-0817 ***/
|
||||||
// user_pref("javascript.options.ion", false);
|
// user_pref("javascript.options.ion", false);
|
||||||
// user_pref("javascript.options.baselinejit", false);
|
// user_pref("javascript.options.baselinejit", false);
|
||||||
|
// user_pref("javascript.options.jit_trustedprincipals", true); // [FF75+] [HIDDEN PREF]
|
||||||
/* 2422: disable WebAssembly [FF52+] [SETUP-PERF]
|
/* 2422: disable WebAssembly [FF52+] [SETUP-PERF]
|
||||||
* [NOTE] In FF71+ this no longer affects extensions (1576254)
|
* [NOTE] In FF71+ this no longer affects extensions (1576254)
|
||||||
* [1] https://developer.mozilla.org/docs/WebAssembly ***/
|
* [1] https://developer.mozilla.org/docs/WebAssembly ***/
|
||||||
|
Reference in New Issue
Block a user