mirror of
https://github.com/arkenfox/user.js.git
synced 2025-09-01 17:38:30 +02:00
Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
bc5add9450 | |||
b117916207 | |||
2f4b93a18f | |||
d50c772d7d | |||
7a1d0a92af | |||
f2e4a79ca0 | |||
c84c419544 | |||
bdaa2867b9 | |||
e2e8c4ea8f | |||
d13f39d9f9 | |||
ca022d8c2d | |||
7388485063 | |||
8259191167 | |||
b99dd27de8 | |||
62a68f0814 | |||
be376afc1e | |||
f5e54b4a70 | |||
7135907b2f | |||
12ca83b550 | |||
e4a85c30c1 | |||
45d23f8d75 | |||
40e8e1acbe | |||
6789dc7fef | |||
5eaa8196e2 |
@ -7,7 +7,7 @@ A `user.js` is a configuration file that can control Firefox settings - for a mo
|
|||||||
|
|
||||||
The `arkenfox user.js` is a **template** which aims to provide as much privacy and enhanced security as possible, and to reduce tracking and fingerprinting as much as possible - while minimizing any loss of functionality and breakage (but it will happen).
|
The `arkenfox user.js` is a **template** which aims to provide as much privacy and enhanced security as possible, and to reduce tracking and fingerprinting as much as possible - while minimizing any loss of functionality and breakage (but it will happen).
|
||||||
|
|
||||||
Everyone, experts included, should at least read the [wiki](https://github.com/arkenfox/user.js/wiki), as it contains important information regarding a few `user.js` settings.
|
Everyone, experts included, should at least read the [wiki](https://github.com/arkenfox/user.js/wiki), as it contains important information regarding a few `user.js` settings. There is also an [interactive current release](https://arkenfox.github.io/gui/), thanks to [icpantsparti2](https://github.com/icpantsparti2).
|
||||||
|
|
||||||
Note that we do *not* recommend connecting over Tor on Firefox. Use the [Tor Browser](https://www.torproject.org/projects/torbrowser.html.en) if your [threat model](https://2019.www.torproject.org/about/torusers.html) calls for it, or for accessing hidden services.
|
Note that we do *not* recommend connecting over Tor on Firefox. Use the [Tor Browser](https://www.torproject.org/projects/torbrowser.html.en) if your [threat model](https://2019.www.torproject.org/about/torusers.html) calls for it, or for accessing hidden services.
|
||||||
|
|
||||||
|
@ -3,17 +3,19 @@ TITLE prefs.js cleaner
|
|||||||
|
|
||||||
REM ### prefs.js cleaner for Windows
|
REM ### prefs.js cleaner for Windows
|
||||||
REM ## author: @claustromaniac
|
REM ## author: @claustromaniac
|
||||||
REM ## version: 2.5
|
REM ## version: 2.7
|
||||||
|
|
||||||
CD /D "%~dp0"
|
CD /D "%~dp0"
|
||||||
|
|
||||||
|
IF /I "%~1"=="-unattended" (SET _ua=1)
|
||||||
|
|
||||||
:begin
|
:begin
|
||||||
ECHO:
|
ECHO:
|
||||||
ECHO:
|
ECHO:
|
||||||
ECHO ########################################
|
ECHO ########################################
|
||||||
ECHO #### prefs.js cleaner for Windows ####
|
ECHO #### prefs.js cleaner for Windows ####
|
||||||
ECHO #### by claustromaniac ####
|
ECHO #### by claustromaniac ####
|
||||||
ECHO #### v2.5 ####
|
ECHO #### v2.7 ####
|
||||||
ECHO ########################################
|
ECHO ########################################
|
||||||
ECHO:
|
ECHO:
|
||||||
CALL :message "This script should be run from your Firefox profile directory."
|
CALL :message "This script should be run from your Firefox profile directory."
|
||||||
@ -22,18 +24,20 @@ CALL :message "This will allow inactive preferences to be reset to their default
|
|||||||
ECHO This Firefox profile shouldn't be in use during the process.
|
ECHO This Firefox profile shouldn't be in use during the process.
|
||||||
CALL :message ""
|
CALL :message ""
|
||||||
TIMEOUT 1 /nobreak >nul
|
TIMEOUT 1 /nobreak >nul
|
||||||
CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]"
|
|
||||||
CLS
|
IF NOT DEFINED _ua (
|
||||||
IF ERRORLEVEL 3 (EXIT /B)
|
CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]"
|
||||||
IF ERRORLEVEL 2 (GOTO :showhelp)
|
CLS
|
||||||
|
IF ERRORLEVEL 3 (EXIT /B)
|
||||||
|
IF ERRORLEVEL 2 (GOTO :showhelp)
|
||||||
|
)
|
||||||
IF NOT EXIST "user.js" (CALL :abort "user.js not found in the current directory." 30)
|
IF NOT EXIST "user.js" (CALL :abort "user.js not found in the current directory." 30)
|
||||||
IF NOT EXIST "prefs.js" (CALL :abort "prefs.js not found in the current directory." 30)
|
IF NOT EXIST "prefs.js" (CALL :abort "prefs.js not found in the current directory." 30)
|
||||||
CALL :strlenCheck
|
CALL :strlenCheck
|
||||||
CALL :FFcheck
|
CALL :FFcheck
|
||||||
|
|
||||||
CALL :message "Backing up prefs.js..."
|
CALL :message "Backing up prefs.js..."
|
||||||
FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic os get LocalDateTime /VALUE 2^>NUL`) DO IF '.%%i.'=='.LocalDateTime.' SET ldt=%%j
|
FOR /F "delims=" %%# IN ('powershell get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
|
||||||
SET ldt=%ldt:~0,8%_%ldt:~8,6%
|
|
||||||
COPY /B /V /Y prefs.js "prefs-backup-%ldt%.js"
|
COPY /B /V /Y prefs.js "prefs-backup-%ldt%.js"
|
||||||
|
|
||||||
CALL :message "Cleaning prefs.js..."
|
CALL :message "Cleaning prefs.js..."
|
||||||
|
@ -2,33 +2,65 @@
|
|||||||
|
|
||||||
## prefs.js cleaner for Linux/Mac
|
## prefs.js cleaner for Linux/Mac
|
||||||
## author: @claustromaniac
|
## author: @claustromaniac
|
||||||
## version: 1.5
|
## version: 1.9
|
||||||
|
|
||||||
## special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh
|
## special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh
|
||||||
|
|
||||||
currdir=$(pwd)
|
## DON'T GO HIGHER THAN VERSION x.9 !! ( because of ASCII comparison in update_prefsCleaner() )
|
||||||
|
|
||||||
|
# Check if running as root and if any files have the owner/group as root/wheel.
|
||||||
|
if [ "${EUID:-"$(id -u)"}" -eq 0 ]; then
|
||||||
|
printf "You shouldn't run this with elevated privileges (such as with doas/sudo).\n"
|
||||||
|
exit 1
|
||||||
|
elif [ -n "$(find ./ -user 0 -o -group 0)" ]; then
|
||||||
|
printf 'It looks like this script was previously run with elevated privileges,
|
||||||
|
you will need to change ownership of the following files to your user:\n'
|
||||||
|
find . -user 0 -o -group 0
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
readonly CURRDIR=$(pwd)
|
||||||
|
|
||||||
## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed)
|
## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed)
|
||||||
sfp=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
SCRIPT_FILE=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
||||||
|
|
||||||
## fallback for Macs without coreutils
|
## fallback for Macs without coreutils
|
||||||
if [ -z "$sfp" ]; then sfp=${BASH_SOURCE[0]}; fi
|
[ -z "$SCRIPT_FILE" ] && SCRIPT_FILE=${BASH_SOURCE[0]}
|
||||||
|
|
||||||
## change directory to the Firefox profile directory
|
|
||||||
cd "$(dirname "${sfp}")"
|
AUTOUPDATE=true
|
||||||
|
QUICKSTART=false
|
||||||
|
|
||||||
|
## download method priority: curl -> wget
|
||||||
|
DOWNLOAD_METHOD=''
|
||||||
|
if command -v curl >/dev/null; then
|
||||||
|
DOWNLOAD_METHOD='curl --max-redirs 3 -so'
|
||||||
|
elif command -v wget >/dev/null; then
|
||||||
|
DOWNLOAD_METHOD='wget --max-redirect 3 --quiet -O'
|
||||||
|
else
|
||||||
|
AUTOUPDATE=false
|
||||||
|
echo -e "No curl or wget detected.\nAutomatic self-update disabled!"
|
||||||
|
fi
|
||||||
|
|
||||||
fQuit() {
|
fQuit() {
|
||||||
## change directory back to the original working directory
|
## change directory back to the original working directory
|
||||||
cd "${currdir}"
|
cd "${CURRDIR}"
|
||||||
[ "$1" -eq 0 ] && echo -e "\n$2" || echo -e "\n$2" >&2
|
[ "$1" -eq 0 ] && echo -e "\n$2" || echo -e "\n$2" >&2
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
||||||
fUsage() {
|
fUsage() {
|
||||||
echo -e "\nUsage: $0 [-s]"
|
echo -e "\nUsage: $0 [-ds]"
|
||||||
echo -e "
|
echo -e "
|
||||||
Optional Arguments:
|
Optional Arguments:
|
||||||
-s Start immediately"
|
-s Start immediately
|
||||||
|
-d Don't auto-update prefsCleaner.sh"
|
||||||
|
}
|
||||||
|
|
||||||
|
download_file() { # expects URL as argument ($1)
|
||||||
|
declare -r tf=$(mktemp)
|
||||||
|
|
||||||
|
$DOWNLOAD_METHOD "${tf}" "$1" &>/dev/null && echo "$tf" || echo '' # return the temp-filename or empty string on error
|
||||||
}
|
}
|
||||||
|
|
||||||
fFF_check() {
|
fFF_check() {
|
||||||
@ -40,6 +72,24 @@ fFF_check() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## returns the version number of a prefsCleaner.sh file
|
||||||
|
get_prefsCleaner_version() {
|
||||||
|
echo "$(sed -n '5 s/.*[[:blank:]]\([[:digit:]]*\.[[:digit:]]*\)/\1/p' "$1")"
|
||||||
|
}
|
||||||
|
|
||||||
|
## updates the prefsCleaner.sh file based on the latest public version
|
||||||
|
update_prefsCleaner() {
|
||||||
|
declare -r tmpfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/prefsCleaner.sh')"
|
||||||
|
[ -z "$tmpfile" ] && echo -e "Error! Could not download prefsCleaner.sh" && return 1 # check if download failed
|
||||||
|
|
||||||
|
[[ $(get_prefsCleaner_version "$SCRIPT_FILE") == $(get_prefsCleaner_version "$tmpfile") ]] && return 0
|
||||||
|
|
||||||
|
mv "$tmpfile" "$SCRIPT_FILE"
|
||||||
|
chmod u+x "$SCRIPT_FILE"
|
||||||
|
"$SCRIPT_FILE" "$@" -d
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
fClean() {
|
fClean() {
|
||||||
# the magic happens here
|
# the magic happens here
|
||||||
prefs="@@"
|
prefs="@@"
|
||||||
@ -78,19 +128,37 @@ fStart() {
|
|||||||
fQuit 0 "All done!"
|
fQuit 0 "All done!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
while getopts "sd" opt; do
|
||||||
|
case $opt in
|
||||||
|
s)
|
||||||
|
QUICKSTART=true
|
||||||
|
;;
|
||||||
|
d)
|
||||||
|
AUTOUPDATE=false
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
## change directory to the Firefox profile directory
|
||||||
|
cd "$(dirname "${SCRIPT_FILE}")"
|
||||||
|
|
||||||
|
[ "$AUTOUPDATE" = true ] && update_prefsCleaner "$@"
|
||||||
|
|
||||||
echo -e "\n\n"
|
echo -e "\n\n"
|
||||||
echo " ╔══════════════════════════╗"
|
echo " ╔══════════════════════════╗"
|
||||||
echo " ║ prefs.js cleaner ║"
|
echo " ║ prefs.js cleaner ║"
|
||||||
echo " ║ by claustromaniac ║"
|
echo " ║ by claustromaniac ║"
|
||||||
echo " ║ v1.5 ║"
|
echo " ║ v1.9 ║"
|
||||||
echo " ╚══════════════════════════╝"
|
echo " ╚══════════════════════════╝"
|
||||||
echo -e "\nThis script should be run from your Firefox profile directory.\n"
|
echo -e "\nThis script should be run from your Firefox profile directory.\n"
|
||||||
echo "It will remove any entries from prefs.js that also exist in user.js."
|
echo "It will remove any entries from prefs.js that also exist in user.js."
|
||||||
echo "This will allow inactive preferences to be reset to their default values."
|
echo "This will allow inactive preferences to be reset to their default values."
|
||||||
echo -e "\nThis Firefox profile shouldn't be in use during the process.\n"
|
echo -e "\nThis Firefox profile shouldn't be in use during the process.\n"
|
||||||
echo -e "\nIn order to proceed, select a command below by entering its corresponding number.\n"
|
|
||||||
|
|
||||||
[ "$1" == '-s' ] && fStart
|
[ "$QUICKSTART" = true ] && fStart
|
||||||
|
|
||||||
|
echo -e "\nIn order to proceed, select a command below by entering its corresponding number.\n"
|
||||||
|
|
||||||
select option in Start Help Exit; do
|
select option in Start Help Exit; do
|
||||||
case $option in
|
case $option in
|
||||||
@ -114,3 +182,5 @@ select option in Start Help Exit; do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fQuit 0
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
- removed from the arkenfox user.js
|
- removed from the arkenfox user.js
|
||||||
- deprecated by Mozilla but listed in the arkenfox user.js in the past
|
- deprecated by Mozilla but listed in the arkenfox user.js in the past
|
||||||
|
|
||||||
Last updated: 19-November-2022
|
Last updated: 27-January-2023
|
||||||
|
|
||||||
Instructions:
|
Instructions:
|
||||||
- [optional] close Firefox and backup your profile
|
- [optional] close Firefox and backup your profile
|
||||||
@ -238,9 +238,14 @@
|
|||||||
|
|
||||||
/* REMOVED */
|
/* REMOVED */
|
||||||
/* 103+ */
|
/* 103+ */
|
||||||
|
'beacon.enabled',
|
||||||
|
'browser.startup.blankWindow',
|
||||||
'browser.newtab.preload',
|
'browser.newtab.preload',
|
||||||
'browser.newtabpage.activity-stream.feeds.discoverystreamfeed',
|
'browser.newtabpage.activity-stream.feeds.discoverystreamfeed',
|
||||||
'browser.newtabpage.activity-stream.feeds.snippets',
|
'browser.newtabpage.activity-stream.feeds.snippets',
|
||||||
|
'browser.region.network.url',
|
||||||
|
'browser.region.update.enabled',
|
||||||
|
'browser.search.region',
|
||||||
'browser.ssl_override_behavior',
|
'browser.ssl_override_behavior',
|
||||||
'browser.tabs.warnOnClose',
|
'browser.tabs.warnOnClose',
|
||||||
'devtools.chrome.enabled',
|
'devtools.chrome.enabled',
|
||||||
|
@ -3,10 +3,10 @@ TITLE arkenfox user.js updater
|
|||||||
|
|
||||||
REM ## arkenfox user.js updater for Windows
|
REM ## arkenfox user.js updater for Windows
|
||||||
REM ## author: @claustromaniac
|
REM ## author: @claustromaniac
|
||||||
REM ## version: 4.17
|
REM ## version: 4.19
|
||||||
REM ## instructions: https://github.com/arkenfox/user.js/wiki/5.1-Updater-[Options]#-windows
|
REM ## instructions: https://github.com/arkenfox/user.js/wiki/5.1-Updater-[Options]#-windows
|
||||||
|
|
||||||
SET v=4.17
|
SET v=4.19
|
||||||
|
|
||||||
VERIFY ON
|
VERIFY ON
|
||||||
CD /D "%~dp0"
|
CD /D "%~dp0"
|
||||||
@ -177,9 +177,8 @@ IF EXIST user.js.new (
|
|||||||
IF DEFINED _singlebackup (
|
IF DEFINED _singlebackup (
|
||||||
MOVE /Y user.js user.js.bak >nul
|
MOVE /Y user.js user.js.bak >nul
|
||||||
) ELSE (
|
) ELSE (
|
||||||
FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic os get LocalDateTime /VALUE 2^>NUL`) DO IF '.%%i.'=='.LocalDateTime.' SET ldt=%%j
|
FOR /F "delims=" %%# IN ('powershell get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
|
||||||
SET ldt=%ldt:~0,8%_%ldt:~8,6%
|
MOVE /Y user.js "user-backup-!ldt!.js" >nul
|
||||||
MOVE /Y user.js "user-backup-%ldt%.js" >nul
|
|
||||||
)
|
)
|
||||||
REN user.js.new user.js
|
REN user.js.new user.js
|
||||||
CALL :message "Update complete."
|
CALL :message "Update complete."
|
||||||
|
13
updater.sh
13
updater.sh
@ -2,12 +2,23 @@
|
|||||||
|
|
||||||
## arkenfox user.js updater for macOS and Linux
|
## arkenfox user.js updater for macOS and Linux
|
||||||
|
|
||||||
## version: 3.5
|
## version: 3.8
|
||||||
## Author: Pat Johnson (@overdodactyl)
|
## Author: Pat Johnson (@overdodactyl)
|
||||||
## Additional contributors: @earthlng, @ema-pe, @claustromaniac, @infinitewarp
|
## Additional contributors: @earthlng, @ema-pe, @claustromaniac, @infinitewarp
|
||||||
|
|
||||||
## DON'T GO HIGHER THAN VERSION x.9 !! ( because of ASCII comparison in update_updater() )
|
## DON'T GO HIGHER THAN VERSION x.9 !! ( because of ASCII comparison in update_updater() )
|
||||||
|
|
||||||
|
# Check if running as root and if any files have the owner/group as root/wheel.
|
||||||
|
if [ "${EUID:-"$(id -u)"}" -eq 0 ]; then
|
||||||
|
printf "You shouldn\'t run this with elevated privileges (such as with doas/sudo).\n"
|
||||||
|
exit 1
|
||||||
|
elif [ -n "$(find ./ -user 0 -o -group 0)" ]; then
|
||||||
|
printf 'It looks like this script was previously run with elevated privileges,
|
||||||
|
you will need to change ownership of the following files to your user:\n'
|
||||||
|
find . -user 0 -o -group 0
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
readonly CURRDIR=$(pwd)
|
readonly CURRDIR=$(pwd)
|
||||||
|
|
||||||
SCRIPT_FILE=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
SCRIPT_FILE=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
||||||
|
75
user.js
75
user.js
@ -1,7 +1,7 @@
|
|||||||
/******
|
/******
|
||||||
* name: arkenfox user.js
|
* name: arkenfox user.js
|
||||||
* date: 21 November 2022
|
* date: 4 May 2023
|
||||||
* version: 107
|
* version: 112
|
||||||
* url: https://github.com/arkenfox/user.js
|
* url: https://github.com/arkenfox/user.js
|
||||||
* license: MIT: https://github.com/arkenfox/user.js/blob/master/LICENSE.txt
|
* license: MIT: https://github.com/arkenfox/user.js/blob/master/LICENSE.txt
|
||||||
|
|
||||||
@ -110,13 +110,6 @@ 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]
|
||||||
user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]
|
user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]
|
||||||
/* 0203: disable region updates
|
|
||||||
* [1] https://firefox-source-docs.mozilla.org/toolkit/modules/toolkit_modules/Region.html ***/
|
|
||||||
user_pref("browser.region.update.enabled", false); // [FF79+]
|
|
||||||
// user_pref("browser.region.network.url", ""); // [FF78+] Defense-in-depth
|
|
||||||
/* 0204: set search region
|
|
||||||
* [NOTE] May not be hidden if Firefox has changed your settings due to your region (0203) ***/
|
|
||||||
// user_pref("browser.search.region", "US"); // [HIDDEN PREF]
|
|
||||||
/* 0210: set preferred language for displaying pages
|
/* 0210: set preferred language for displaying pages
|
||||||
* [SETTING] General>Language and Appearance>Language>Choose your preferred language...
|
* [SETTING] General>Language and Appearance>Language>Choose your preferred language...
|
||||||
* [TEST] https://addons.mozilla.org/about ***/
|
* [TEST] https://addons.mozilla.org/about ***/
|
||||||
@ -268,7 +261,8 @@ 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 with MAC addresses, and can leak with VPNs: assuming
|
* IPv6 can be abused, especially with MAC addresses, and can leak with VPNs: assuming
|
||||||
* your ISP and/or router and/or website is IPv6 capable. Most sites will fall back to IPv4
|
* your ISP and/or router and/or website is IPv6 capable. Most sites will fall back to IPv4
|
||||||
* [STATS] Firefox telemetry (Sept 2022) shows ~8% of successful connections are IPv6
|
* [SETUP-WEB] PR_CONNECT_RESET_ERROR: this pref *might* be the cause
|
||||||
|
* [STATS] Firefox telemetry (Feb 2023) shows ~9% of successful connections are IPv6
|
||||||
* [NOTE] This is an application level fallback. Disabling IPv6 is best done at an
|
* [NOTE] This is 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.
|
||||||
@ -432,7 +426,7 @@ user_pref("_user.js.parrot", "1200 syntax error: the parrot's a stiff!");
|
|||||||
* but the problem is that the browser can't know that. Setting this pref to true is the only way for the
|
* but the problem is that the browser can't know that. Setting this pref to true is the only way for the
|
||||||
* browser to ensure there will be no unsafe renegotiations on the channel between the browser and the server
|
* browser to ensure there will be no unsafe renegotiations on the channel between the browser and the server
|
||||||
* [SETUP-WEB] SSL_ERROR_UNSAFE_NEGOTIATION: is it worth overriding this for that one site?
|
* [SETUP-WEB] SSL_ERROR_UNSAFE_NEGOTIATION: is it worth overriding this for that one site?
|
||||||
* [STATS] SSL Labs (Sept 2022) reports over 99.3% of top sites have secure renegotiation [4]
|
* [STATS] SSL Labs (Feb 2023) reports over 99.3% of top sites have secure renegotiation [4]
|
||||||
* [1] https://wiki.mozilla.org/Security:Renegotiation
|
* [1] https://wiki.mozilla.org/Security:Renegotiation
|
||||||
* [2] https://datatracker.ietf.org/doc/html/rfc5746
|
* [2] https://datatracker.ietf.org/doc/html/rfc5746
|
||||||
* [3] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555
|
* [3] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555
|
||||||
@ -477,8 +471,7 @@ user_pref("security.OCSP.require", true);
|
|||||||
user_pref("security.family_safety.mode", 0);
|
user_pref("security.family_safety.mode", 0);
|
||||||
/* 1223: enable strict PKP (Public Key Pinning)
|
/* 1223: enable strict PKP (Public Key Pinning)
|
||||||
* 0=disabled, 1=allow user MiTM (default; such as your antivirus), 2=strict
|
* 0=disabled, 1=allow user MiTM (default; such as your antivirus), 2=strict
|
||||||
* [SETUP-WEB] MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE: If you rely on an AV (antivirus) to protect
|
* [SETUP-WEB] MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE ***/
|
||||||
* your web browsing by inspecting ALL your web traffic, then override to current default ***/
|
|
||||||
user_pref("security.cert_pinning.enforcement_level", 2);
|
user_pref("security.cert_pinning.enforcement_level", 2);
|
||||||
/* 1224: enable CRLite [FF73+]
|
/* 1224: enable CRLite [FF73+]
|
||||||
* 0 = disabled
|
* 0 = disabled
|
||||||
@ -498,7 +491,7 @@ user_pref("security.pki.crlite_mode", 2);
|
|||||||
* [SETTING] to add site exceptions: Padlock>HTTPS-Only mode>On (after "Continue to HTTP Site")
|
* [SETTING] to add site exceptions: Padlock>HTTPS-Only mode>On (after "Continue to HTTP Site")
|
||||||
* [SETTING] Privacy & Security>HTTPS-Only Mode (and manage exceptions)
|
* [SETTING] Privacy & Security>HTTPS-Only Mode (and manage exceptions)
|
||||||
* [TEST] http://example.com [upgrade]
|
* [TEST] http://example.com [upgrade]
|
||||||
* [TEST] http://httpforever.com/ [no upgrade] ***/
|
* [TEST] http://httpforever.com/ | http://http.rip [no upgrade] ***/
|
||||||
user_pref("dom.security.https_only_mode", true); // [FF76+]
|
user_pref("dom.security.https_only_mode", true); // [FF76+]
|
||||||
// user_pref("dom.security.https_only_mode_pbm", true); // [FF80+]
|
// user_pref("dom.security.https_only_mode_pbm", true); // [FF80+]
|
||||||
/* 1245: enable HTTPS-Only mode for local resources [FF77+] ***/
|
/* 1245: enable HTTPS-Only mode for local resources [FF77+] ***/
|
||||||
@ -564,15 +557,6 @@ user_pref("privacy.userContext.ui.enabled", true);
|
|||||||
|
|
||||||
/*** [SECTION 2000]: PLUGINS / MEDIA / WEBRTC ***/
|
/*** [SECTION 2000]: PLUGINS / MEDIA / WEBRTC ***/
|
||||||
user_pref("_user.js.parrot", "2000 syntax error: the parrot's snuffed it!");
|
user_pref("_user.js.parrot", "2000 syntax error: the parrot's snuffed it!");
|
||||||
/* 2001: disable WebRTC (Web Real-Time Communication)
|
|
||||||
* Firefox uses mDNS hostname obfuscation on desktop (except Windows7/8) and the
|
|
||||||
* private IP is NEVER exposed, except if required in TRUSTED scenarios; i.e. after
|
|
||||||
* you grant device (microphone or camera) access
|
|
||||||
* [SETUP-HARDEN] Test first. Windows7/8 users only: behind a proxy who never use WebRTC
|
|
||||||
* [TEST] https://browserleaks.com/webrtc
|
|
||||||
* [1] https://groups.google.com/g/discuss-webrtc/c/6stQXi72BEU/m/2FwZd24UAQAJ
|
|
||||||
* [2] https://datatracker.ietf.org/doc/html/draft-ietf-mmusic-mdns-ice-candidates#section-3.1.1 ***/
|
|
||||||
// user_pref("media.peerconnection.enabled", false);
|
|
||||||
/* 2002: force WebRTC inside the proxy [FF70+] ***/
|
/* 2002: force WebRTC inside the proxy [FF70+] ***/
|
||||||
user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
|
user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
|
||||||
/* 2003: force a single network interface for ICE candidates generation [FF42+]
|
/* 2003: force a single network interface for ICE candidates generation [FF42+]
|
||||||
@ -603,22 +587,15 @@ user_pref("media.eme.enabled", false);
|
|||||||
user_pref("_user.js.parrot", "2400 syntax error: the parrot's kicked the bucket!");
|
user_pref("_user.js.parrot", "2400 syntax error: the parrot's kicked the bucket!");
|
||||||
/* 2402: prevent scripts from moving and resizing open windows ***/
|
/* 2402: prevent scripts from moving and resizing open windows ***/
|
||||||
user_pref("dom.disable_window_move_resize", true);
|
user_pref("dom.disable_window_move_resize", true);
|
||||||
/* 2404: limit events that can cause a popup [SETUP-WEB] ***/
|
|
||||||
user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
|
|
||||||
|
|
||||||
/*** [SECTION 2600]: MISCELLANEOUS ***/
|
/*** [SECTION 2600]: MISCELLANEOUS ***/
|
||||||
user_pref("_user.js.parrot", "2600 syntax error: the parrot's run down the curtain!");
|
user_pref("_user.js.parrot", "2600 syntax error: the parrot's run down the curtain!");
|
||||||
/* 2601: prevent accessibility services from accessing your browser [RESTART]
|
/* 2601: prevent accessibility services from accessing your browser [RESTART]
|
||||||
* [1] https://support.mozilla.org/kb/accessibility-services ***/
|
* [1] https://support.mozilla.org/kb/accessibility-services ***/
|
||||||
user_pref("accessibility.force_disabled", 1);
|
user_pref("accessibility.force_disabled", 1);
|
||||||
/* 2602: disable sending additional analytics to web servers
|
|
||||||
* [1] https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon ***/
|
|
||||||
user_pref("beacon.enabled", false);
|
|
||||||
/* 2603: remove temp files opened with an external application
|
/* 2603: remove temp files opened with an external application
|
||||||
* [1] https://bugzilla.mozilla.org/302433 ***/
|
* [1] https://bugzilla.mozilla.org/302433 ***/
|
||||||
user_pref("browser.helperApps.deleteTempFileOnExit", true);
|
user_pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||||
/* 2604: disable page thumbnail collection ***/
|
|
||||||
user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
|
||||||
/* 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", ""); // Defense-in-depth
|
// user_pref("browser.uitour.url", ""); // Defense-in-depth
|
||||||
@ -714,7 +691,7 @@ user_pref("browser.contentblocking.category", "strict");
|
|||||||
/* 2710: enable state partitioning of service workers [FF96+] ***/
|
/* 2710: enable state partitioning of service workers [FF96+] ***/
|
||||||
user_pref("privacy.partition.serviceWorkers", true); // [DEFAULT: true FF105+]
|
user_pref("privacy.partition.serviceWorkers", true); // [DEFAULT: true FF105+]
|
||||||
/* 2720: enable APS (Always Partitioning Storage) ***/
|
/* 2720: enable APS (Always Partitioning Storage) ***/
|
||||||
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", true); // [FF104+] [DEFAULT: true FF109+}
|
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", true); // [FF104+] [DEFAULT: true FF109+]
|
||||||
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); // [FF105+] [DEFAULT: false FF109+]
|
user_pref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false); // [FF105+] [DEFAULT: false FF109+]
|
||||||
|
|
||||||
/*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/
|
/*** [SECTION 2800]: SHUTDOWN & SANITIZING ***/
|
||||||
@ -829,6 +806,7 @@ user_pref("privacy.sanitize.timeSpan", 0);
|
|||||||
531915 - use fdlibm's sin, cos and tan in jsmath (FF93, ESR91.1)
|
531915 - use fdlibm's sin, cos and tan in jsmath (FF93, ESR91.1)
|
||||||
1756280 - enforce navigator.pdfViewerEnabled as true and plugins/mimeTypes as hard-coded values (FF100)
|
1756280 - enforce navigator.pdfViewerEnabled as true and plugins/mimeTypes as hard-coded values (FF100)
|
||||||
1692609 - reduce JS timing precision to 16.67ms (previously FF55+ was 100ms) (FF102)
|
1692609 - reduce JS timing precision to 16.67ms (previously FF55+ was 100ms) (FF102)
|
||||||
|
1422237 - return "srgb" with color-gamut (FF110)
|
||||||
***/
|
***/
|
||||||
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+]
|
||||||
@ -863,10 +841,6 @@ user_pref("privacy.resistFingerprinting.letterboxing", true); // [HIDDEN PREF]
|
|||||||
// user_pref("privacy.resistFingerprinting.testGranularityMask", 0);
|
// user_pref("privacy.resistFingerprinting.testGranularityMask", 0);
|
||||||
/* 4506: set RFP's font visibility level (1402) [FF94+] ***/
|
/* 4506: set RFP's font visibility level (1402) [FF94+] ***/
|
||||||
// user_pref("layout.css.font-visibility.resistFingerprinting", 1); // [DEFAULT: 1]
|
// user_pref("layout.css.font-visibility.resistFingerprinting", 1); // [DEFAULT: 1]
|
||||||
/* 4507: disable showing about:blank as soon as possible during startup [FF60+]
|
|
||||||
* When default true this no longer masks the RFP chrome resizing activity
|
|
||||||
* [1] https://bugzilla.mozilla.org/1448423 ***/
|
|
||||||
user_pref("browser.startup.blankWindow", false);
|
|
||||||
/* 4510: disable using system colors
|
/* 4510: disable using system colors
|
||||||
* [SETTING] General>Language and Appearance>Fonts and Colors>Colors>Use system colors ***/
|
* [SETTING] General>Language and Appearance>Fonts and Colors>Colors>Use system colors ***/
|
||||||
user_pref("browser.display.use_system_colors", false); // [DEFAULT: false NON-WINDOWS]
|
user_pref("browser.display.use_system_colors", false); // [DEFAULT: false NON-WINDOWS]
|
||||||
@ -901,7 +875,7 @@ user_pref("_user.js.parrot", "5000 syntax error: the parrot's taken 'is last bow
|
|||||||
* caches, searches, cookies, localStorage, IndexedDB etc (which you can achieve in normal mode).
|
* caches, searches, cookies, localStorage, IndexedDB etc (which you can achieve in normal mode).
|
||||||
* In fact, PB mode limits or removes the ability to control some of these, and you need to quit
|
* In fact, PB mode limits or removes the ability to control some of these, and you need to quit
|
||||||
* Firefox to clear them. PB is best used as a one off window (Menu>New Private Window) to provide
|
* Firefox to clear them. PB is best used as a one off window (Menu>New Private Window) to provide
|
||||||
* a temporary self-contained new session. Close all Private Windows to clear the PB mode session.
|
* a temporary self-contained new session. Close all private windows to clear the PB session.
|
||||||
* [SETTING] Privacy & Security>History>Custom Settings>Always use private browsing mode
|
* [SETTING] Privacy & Security>History>Custom Settings>Always use private browsing mode
|
||||||
* [1] https://wiki.mozilla.org/Private_Browsing
|
* [1] https://wiki.mozilla.org/Private_Browsing
|
||||||
* [2] https://support.mozilla.org/kb/common-myths-about-private-browsing ***/
|
* [2] https://support.mozilla.org/kb/common-myths-about-private-browsing ***/
|
||||||
@ -973,6 +947,12 @@ user_pref("_user.js.parrot", "5000 syntax error: the parrot's taken 'is last bow
|
|||||||
// user_pref("extensions.formautofill.addresses.enabled", false); // [FF55+]
|
// user_pref("extensions.formautofill.addresses.enabled", false); // [FF55+]
|
||||||
// user_pref("extensions.formautofill.creditCards.enabled", false); // [FF56+]
|
// user_pref("extensions.formautofill.creditCards.enabled", false); // [FF56+]
|
||||||
// user_pref("extensions.formautofill.heuristics.enabled", false); // [FF55+]
|
// user_pref("extensions.formautofill.heuristics.enabled", false); // [FF55+]
|
||||||
|
/* 5018: limit events that can cause a pop-up ***/
|
||||||
|
// user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
|
||||||
|
/* 5019: disable page thumbnail collection ***/
|
||||||
|
// user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
|
||||||
|
/* 5020: disable Windows native notifications and use app notications instead [FF111+] [WINDOWS] ***/
|
||||||
|
// user_pref("alerts.useSystemBackend.windows.notificationserver.enabled", false);
|
||||||
|
|
||||||
/*** [SECTION 5500]: OPTIONAL HARDENING
|
/*** [SECTION 5500]: OPTIONAL HARDENING
|
||||||
Not recommended. Overriding these can cause breakage and performance issues,
|
Not recommended. Overriding these can cause breakage and performance issues,
|
||||||
@ -1027,25 +1007,28 @@ user_pref("network.http.referer.spoofSource", false); // [DEFAULT: false]
|
|||||||
* [1] https://www.squarefree.com/2004/07/01/race-conditions-in-security-dialogs/ ***/
|
* [1] https://www.squarefree.com/2004/07/01/race-conditions-in-security-dialogs/ ***/
|
||||||
user_pref("security.dialog_enable_delay", 1000); // [DEFAULT: 1000]
|
user_pref("security.dialog_enable_delay", 1000); // [DEFAULT: 1000]
|
||||||
/* 6008: enforce no First Party Isolation [FF51+]
|
/* 6008: enforce no First Party Isolation [FF51+]
|
||||||
* [WARNING] Replaced with network partitioning (FF85+) and TCP (2701),
|
* [WARNING] Replaced with network partitioning (FF85+) and TCP (2701), and enabling FPI
|
||||||
* and enabling FPI disables those. FPI is no longer maintained ***/
|
* disables those. FPI is no longer maintained except at Tor Project for Tor Browser's config ***/
|
||||||
user_pref("privacy.firstparty.isolate", false); // [DEFAULT: false]
|
user_pref("privacy.firstparty.isolate", false); // [DEFAULT: false]
|
||||||
/* 6009: enforce SmartBlock shims [FF81+]
|
/* 6009: enforce SmartBlock shims [FF81+]
|
||||||
* In FF96+ these are listed in about:compat
|
* In FF96+ these are listed in about:compat
|
||||||
* [1] https://blog.mozilla.org/security/2021/03/23/introducing-smartblock/ ***/
|
* [1] https://blog.mozilla.org/security/2021/03/23/introducing-smartblock/ ***/
|
||||||
user_pref("extensions.webcompat.enable_shims", true); // [DEFAULT: true]
|
user_pref("extensions.webcompat.enable_shims", true); // [DEFAULT: true]
|
||||||
/* 6010: enforce/reset TLS 1.0/1.1 downgrades to session only
|
/* 6010: enforce no TLS 1.0/1.1 downgrades
|
||||||
* [NOTE] In FF97+ the TLS 1.0/1.1 downgrade UX was removed
|
|
||||||
* [TEST] https://tls-v1-1.badssl.com:1010/ ***/
|
* [TEST] https://tls-v1-1.badssl.com:1010/ ***/
|
||||||
user_pref("security.tls.version.enable-deprecated", false); // [DEFAULT: false]
|
user_pref("security.tls.version.enable-deprecated", false); // [DEFAULT: false]
|
||||||
/* 6011: enforce disabling of Web Compatibility Reporter [FF56+]
|
/* 6011: enforce disabling of Web Compatibility Reporter [FF56+]
|
||||||
* Web Compatibility Reporter adds a "Report Site Issue" button to send data to Mozilla
|
* Web Compatibility Reporter adds a "Report Site Issue" button to send data to Mozilla
|
||||||
* [WHY] To prevent wasting Mozilla's time with a custom setup ***/
|
* [WHY] To prevent wasting Mozilla's time with a custom setup ***/
|
||||||
user_pref("extensions.webcompat-reporter.enabled", false); // [DEFAULT: false]
|
user_pref("extensions.webcompat-reporter.enabled", false); // [DEFAULT: false]
|
||||||
/* 6050: prefsCleaner: reset items removed from arkenfox FF102+ ***/
|
/* 6050: prefsCleaner: reset previously active items removed from arkenfox FF102+ ***/
|
||||||
|
// user_pref("beacon.enabled", "");
|
||||||
|
// user_pref("browser.startup.blankWindow", "");
|
||||||
// user_pref("browser.newtab.preload", "");
|
// user_pref("browser.newtab.preload", "");
|
||||||
// user_pref("browser.newtabpage.activity-stream.feeds.discoverystreamfeed", "");
|
// user_pref("browser.newtabpage.activity-stream.feeds.discoverystreamfeed", "");
|
||||||
// user_pref("browser.newtabpage.activity-stream.feeds.snippets", "");
|
// user_pref("browser.newtabpage.activity-stream.feeds.snippets", "");
|
||||||
|
// user_pref("browser.region.network.url", "");
|
||||||
|
// user_pref("browser.region.update.enabled", "");
|
||||||
// user_pref("browser.ssl_override_behavior", "");
|
// user_pref("browser.ssl_override_behavior", "");
|
||||||
// user_pref("devtools.chrome.enabled", "");
|
// user_pref("devtools.chrome.enabled", "");
|
||||||
// user_pref("dom.disable_beforeunload", "");
|
// user_pref("dom.disable_beforeunload", "");
|
||||||
@ -1155,6 +1138,13 @@ user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies
|
|||||||
* [NOTE] To remove all subscriptions, reset "dom.push.userAgentID"
|
* [NOTE] To remove all subscriptions, reset "dom.push.userAgentID"
|
||||||
* [1] https://support.mozilla.org/kb/push-notifications-firefox ***/
|
* [1] https://support.mozilla.org/kb/push-notifications-firefox ***/
|
||||||
// user_pref("dom.push.enabled", false);
|
// user_pref("dom.push.enabled", false);
|
||||||
|
/* 7020: disable WebRTC (Web Real-Time Communication)
|
||||||
|
* [WHY] Firefox desktop uses mDNS hostname obfuscation and the private IP is never exposed until
|
||||||
|
* required in TRUSTED scenarios; i.e. after you grant device (microphone or camera) access
|
||||||
|
* [TEST] https://browserleaks.com/webrtc
|
||||||
|
* [1] https://groups.google.com/g/discuss-webrtc/c/6stQXi72BEU/m/2FwZd24UAQAJ
|
||||||
|
* [2] https://datatracker.ietf.org/doc/html/draft-ietf-mmusic-mdns-ice-candidates#section-3.1.1 ***/
|
||||||
|
// user_pref("media.peerconnection.enabled", false);
|
||||||
|
|
||||||
/*** [SECTION 8000]: DON'T BOTHER: FINGERPRINTING
|
/*** [SECTION 8000]: DON'T BOTHER: FINGERPRINTING
|
||||||
[WHY] They are insufficient to help anti-fingerprinting and do more harm than good
|
[WHY] They are insufficient to help anti-fingerprinting and do more harm than good
|
||||||
@ -1194,6 +1184,9 @@ user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", fa
|
|||||||
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
|
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
|
||||||
/* 9003: disable What's New toolbar icon [FF69+] ***/
|
/* 9003: disable What's New toolbar icon [FF69+] ***/
|
||||||
user_pref("browser.messaging-system.whatsNewPanel.enabled", false);
|
user_pref("browser.messaging-system.whatsNewPanel.enabled", false);
|
||||||
|
/* 9004: disable search terms [FF110+]
|
||||||
|
* [SETTING] Search>Search Bar>Use the address bar for search and navigation>Show search terms instead of URL... ***/
|
||||||
|
user_pref("browser.urlbar.showSearchTerms.enabled", false);
|
||||||
|
|
||||||
/*** [SECTION 9999]: DEPRECATED / REMOVED / LEGACY / RENAMED
|
/*** [SECTION 9999]: DEPRECATED / REMOVED / LEGACY / RENAMED
|
||||||
Documentation denoted as [-]. Items deprecated prior to FF91 have been archived at [1]
|
Documentation denoted as [-]. Items deprecated prior to FF91 have been archived at [1]
|
||||||
|
Reference in New Issue
Block a user