mirror of
https://github.com/arkenfox/user.js.git
synced 2025-09-01 09:28:31 +02:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
ff9bf76e52 | |||
4bc5b89cfe | |||
bb1e5bfd54 | |||
27d72eda9e | |||
07117c65c1 | |||
919d4bfe96 | |||
e38e253c25 | |||
14aaec71fb | |||
c0780df24d | |||
0ea1605642 | |||
bd384622db |
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
/*** ghacks-user.js troubleshooter.js v1.6.0 ***/
|
/*** ghacks-user.js troubleshooter.js v1.6.1 ***/
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
@ -107,7 +107,7 @@
|
|||||||
]
|
]
|
||||||
|
|
||||||
// any runtime-set pref that everyone will have and that can be safely reset
|
// any runtime-set pref that everyone will have and that can be safely reset
|
||||||
const oFILLER = { type: 64, name: 'extensions.blocklist.pingCountTotal', value: -1 };
|
const oFILLER = { type: 64, name: 'app.update.lastUpdateTime.browser-cleanup-thumbnails', value: 1580000000 };
|
||||||
|
|
||||||
function getMyList(arr) {
|
function getMyList(arr) {
|
||||||
const aRet = [];
|
const aRet = [];
|
||||||
|
40
user.js
40
user.js
@ -1,7 +1,7 @@
|
|||||||
/******
|
/******
|
||||||
* name: ghacks user.js
|
* name: ghacks user.js
|
||||||
* date: 23 April 2020
|
* date: 24 May 2020
|
||||||
* version 75
|
* version 76
|
||||||
* 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
|
||||||
@ -272,12 +272,10 @@ user_pref("network.connectivity-service.enabled", false);
|
|||||||
/*** [SECTION 0400]: BLOCKLISTS / SAFE BROWSING (SB) ***/
|
/*** [SECTION 0400]: BLOCKLISTS / SAFE BROWSING (SB) ***/
|
||||||
user_pref("_user.js.parrot", "0400 syntax error: the parrot's passed on!");
|
user_pref("_user.js.parrot", "0400 syntax error: the parrot's passed on!");
|
||||||
/** BLOCKLISTS ***/
|
/** BLOCKLISTS ***/
|
||||||
/* 0401: enforce Firefox blocklist, but sanitize blocklist url
|
/* 0401: enforce Firefox blocklist
|
||||||
* [NOTE] It includes updates for "revoked certificates"
|
* [NOTE] It includes updates for "revoked certificates"
|
||||||
* [1] https://blog.mozilla.org/security/2015/03/03/revoking-intermediate-certificates-introducing-onecrl/
|
* [1] https://blog.mozilla.org/security/2015/03/03/revoking-intermediate-certificates-introducing-onecrl/ ***/
|
||||||
* [2] https://trac.torproject.org/projects/tor/ticket/16931 ***/
|
|
||||||
user_pref("extensions.blocklist.enabled", true); // [DEFAULT: true]
|
user_pref("extensions.blocklist.enabled", true); // [DEFAULT: true]
|
||||||
user_pref("extensions.blocklist.url", "https://blocklists.settings.services.mozilla.com/v1/blocklist/3/%APP_ID%/%APP_VERSION%/");
|
|
||||||
|
|
||||||
/** SAFE BROWSING (SB)
|
/** SAFE BROWSING (SB)
|
||||||
Safe Browsing has taken many steps to preserve privacy. *IF* required, a full url is never
|
Safe Browsing has taken many steps to preserve privacy. *IF* required, a full url is never
|
||||||
@ -738,6 +736,10 @@ user_pref("security.mixed_content.block_display_content", true);
|
|||||||
/* 1243: block unencrypted requests from Flash on encrypted pages to mitigate MitM attacks [FF59+]
|
/* 1243: block unencrypted requests from Flash on encrypted pages to mitigate MitM attacks [FF59+]
|
||||||
* [1] https://bugzilla.mozilla.org/1190623 ***/
|
* [1] https://bugzilla.mozilla.org/1190623 ***/
|
||||||
user_pref("security.mixed_content.block_object_subrequest", true);
|
user_pref("security.mixed_content.block_object_subrequest", true);
|
||||||
|
/* 1244: enable https-only-mode [FF76+]
|
||||||
|
* [NOTE] This is experimental
|
||||||
|
* [1] https://bugzilla.mozilla.org/1613063 */
|
||||||
|
// user_pref("dom.security.https_only_mode", true);
|
||||||
|
|
||||||
/** CIPHERS [WARNING: do not meddle with your cipher suite: see the section 1200 intro] ***/
|
/** CIPHERS [WARNING: do not meddle with your cipher suite: see the section 1200 intro] ***/
|
||||||
/* 1261: disable 3DES (effective key size < 128)
|
/* 1261: disable 3DES (effective key size < 128)
|
||||||
@ -779,7 +781,7 @@ user_pref("security.insecure_connection_text.enabled", true); // [FF60+]
|
|||||||
user_pref("_user.js.parrot", "1400 syntax error: the parrot's bereft of life!");
|
user_pref("_user.js.parrot", "1400 syntax error: the parrot's bereft of life!");
|
||||||
/* 1401: disable websites choosing fonts (0=block, 1=allow)
|
/* 1401: disable websites choosing fonts (0=block, 1=allow)
|
||||||
* This can limit most (but not all) JS font enumeration which is a high entropy fingerprinting vector
|
* This can limit most (but not all) JS font enumeration which is a high entropy fingerprinting vector
|
||||||
* [SETUP-WEB] Disabling fonts can uglify the web a fair bit.
|
* [SETUP-WEB] Can break some PDFs (missing text). Limiting to default fonts can "uglify" the web
|
||||||
* [SETTING] General>Language and Appearance>Fonts & Colors>Advanced>Allow pages to choose... ***/
|
* [SETTING] General>Language and Appearance>Fonts & Colors>Advanced>Allow pages to choose... ***/
|
||||||
user_pref("browser.display.use_document_fonts", 0);
|
user_pref("browser.display.use_document_fonts", 0);
|
||||||
/* 1403: disable icon fonts (glyphs) and local fallback rendering
|
/* 1403: disable icon fonts (glyphs) and local fallback rendering
|
||||||
@ -1132,7 +1134,7 @@ user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
|||||||
/* 2605: block web content in file processes [FF55+]
|
/* 2605: block web content in file processes [FF55+]
|
||||||
* [SETUP-WEB] You may want to disable this for corporate or developer environments
|
* [SETUP-WEB] You may want to disable this for corporate or developer environments
|
||||||
* [1] https://bugzilla.mozilla.org/1343184 ***/
|
* [1] https://bugzilla.mozilla.org/1343184 ***/
|
||||||
user_pref("browser.tabs.remote.allowLinkedWebInFileUriProcess", false);
|
user_pref("browser.tabs.remote.allowLinkedWebInFileUriProcess", false); // [DEFAULT: false FF76+]
|
||||||
/* 2606: disable UITour backend so there is no chance that a remote page can use it ***/
|
/* 2606: disable UITour backend so there is no chance that a remote page can use it ***/
|
||||||
user_pref("browser.uitour.enabled", false);
|
user_pref("browser.uitour.enabled", false);
|
||||||
user_pref("browser.uitour.url", "");
|
user_pref("browser.uitour.url", "");
|
||||||
@ -1410,12 +1412,13 @@ user_pref("privacy.firstparty.isolate", true);
|
|||||||
This spoof *shouldn't* affect core chrome/Firefox performance
|
This spoof *shouldn't* affect core chrome/Firefox performance
|
||||||
** 1217238 - reduce precision of time exposed by javascript (FF55+)
|
** 1217238 - reduce precision of time exposed by javascript (FF55+)
|
||||||
** 1369303 - spoof/disable performance API (see 2410-deprecated, 4602, 4603) (FF56+)
|
** 1369303 - spoof/disable performance API (see 2410-deprecated, 4602, 4603) (FF56+)
|
||||||
** 1333651 & 1383495 & 1396468 - spoof Navigator API (see section 4700) (FF56+)
|
** 1333651 & 1383495 & 1396468 - spoof User Agent & Navigator API (see section 4700) (FF56+)
|
||||||
FF56: The version number will be rounded down to the nearest multiple of 10
|
FF56: Version: rounded down to the nearest multiple of 10
|
||||||
FF57: The version number will match current ESR (1393283, 1418672, 1418162, 1511763)
|
FF57: Version: match current ESR (1393283, 1418672, 1418162, 1511763)
|
||||||
FF59: The OS will be reported as Windows, OSX, Android, or Linux (to reduce breakage) (1404608)
|
FF59: OS: Windows, OSX, Android, or Linux (to reduce breakage) (1404608)
|
||||||
FF66: The OS in HTTP Headers will be reduced to Windows or Android (1509829)
|
FF66: OS: HTTP Headers reduced to Windows or Android (1509829)
|
||||||
FF68: Reported OS versions updated to Windows 10, OS 10.14, and Adnroid 8.1 (1511434)
|
FF68: OS: updated to Windows 10, OS 10.14, and Android 8.1 (1511434)
|
||||||
|
FF78: OS: updated to OS 10.15 and Android 9.0 (1635011)
|
||||||
** 1369319 - disable device sensor API (see 4604) (FF56+)
|
** 1369319 - disable device sensor API (see 4604) (FF56+)
|
||||||
** 1369357 - disable site specific zoom (see 4605) (FF56+)
|
** 1369357 - disable site specific zoom (see 4605) (FF56+)
|
||||||
** 1337161 - hide gamepads from content (see 4606) (FF56+)
|
** 1337161 - hide gamepads from content (see 4606) (FF56+)
|
||||||
@ -1429,7 +1432,7 @@ user_pref("privacy.firstparty.isolate", true);
|
|||||||
** 1354633 - limit MediaError.message to a whitelist (FF57+)
|
** 1354633 - limit MediaError.message to a whitelist (FF57+)
|
||||||
** 1382533 - enable fingerprinting resistance for Presentation API (FF57+)
|
** 1382533 - enable fingerprinting resistance for Presentation API (FF57+)
|
||||||
This blocks exposure of local IP Addresses via mDNS (Multicast DNS)
|
This blocks exposure of local IP Addresses via mDNS (Multicast DNS)
|
||||||
** 967895 - enable site permission prompt before allowing canvas data extraction (FF58+)
|
** 967895 - spoof canvas and enable site permission prompt before allowing canvas data extraction (FF58+)
|
||||||
FF59: Added to site permissions panel (1413780) Only prompt when triggered by user input (1376865)
|
FF59: Added to site permissions panel (1413780) Only prompt when triggered by user input (1376865)
|
||||||
** 1372073 - spoof/block fingerprinting in MediaDevices API (FF59+)
|
** 1372073 - spoof/block fingerprinting in MediaDevices API (FF59+)
|
||||||
Spoof: enumerate devices reports one "Internal Camera" and one "Internal Microphone" if
|
Spoof: enumerate devices reports one "Internal Camera" and one "Internal Microphone" if
|
||||||
@ -1452,6 +1455,7 @@ user_pref("privacy.firstparty.isolate", true);
|
|||||||
** 1564422 - spoof audioContext outputLatency (FF70+)
|
** 1564422 - spoof audioContext outputLatency (FF70+)
|
||||||
** 1595823 - spoof audioContext sampleRate (FF72+)
|
** 1595823 - spoof audioContext sampleRate (FF72+)
|
||||||
** 1607316 - spoof pointer as coarse and hover as none (ANDROID) (FF74+)
|
** 1607316 - spoof pointer as coarse and hover as none (ANDROID) (FF74+)
|
||||||
|
** 1621433 - randomize canvas (previously FF58+ returned an all-white canvas) (FF78+)
|
||||||
***/
|
***/
|
||||||
user_pref("_user.js.parrot", "4500 syntax error: the parrot's popped 'is clogs");
|
user_pref("_user.js.parrot", "4500 syntax error: the parrot's popped 'is clogs");
|
||||||
/* 4501: enable privacy.resistFingerprinting [FF41+]
|
/* 4501: enable privacy.resistFingerprinting [FF41+]
|
||||||
@ -1718,6 +1722,12 @@ user_pref("privacy.userContext.longPressBehavior", 2);
|
|||||||
// [-] https://bugzilla.mozilla.org/1477756
|
// [-] https://bugzilla.mozilla.org/1477756
|
||||||
user_pref("webgl.disable-extensions", true);
|
user_pref("webgl.disable-extensions", true);
|
||||||
// * * * /
|
// * * * /
|
||||||
|
// FF76
|
||||||
|
// 0401: sanitize blocklist url
|
||||||
|
// [2] https://trac.torproject.org/projects/tor/ticket/16931
|
||||||
|
// [-] https://bugzilla.mozilla.org/1618188
|
||||||
|
user_pref("extensions.blocklist.url", "https://blocklists.settings.services.mozilla.com/v1/blocklist/3/%APP_ID%/%APP_VERSION%/");
|
||||||
|
// * * * /
|
||||||
// ***/
|
// ***/
|
||||||
|
|
||||||
/* END: internal custom pref to test for syntax errors ***/
|
/* END: internal custom pref to test for syntax errors ***/
|
||||||
|
Reference in New Issue
Block a user