#!/bin/sh -e
DIR="${XDG_CACHE_HOME:-$HOME/.cache}"
mkdir -p -- "$DIR"
TEMP="$(mktemp -d -- "$DIR/firefox-XXXXXX")"
trap "rm -rf -- '$TEMP'" INT TERM EXIT
wget 'https://raw.githubusercontent.com/pyllyukko/user.js/master/user.js' -O "$TEMP/user.js"
firefox -profile "$TEMP" -no-remote "$@"
It also uses very hardened options from https://github.com/pyllyukko/user.js
For healthy employees without pre-existing health conditions, the odds of developing a new health condition rise by 83% in the first 15 to 18 months after a layoff, with the most common conditions being stress-related illnesses, including hypertension, heart disease, and arthritis. The psychological and financial pressure of being laid off can increase the risk of suicide by 1.3 to 3 times. Displaced workers have twice the risk of developing depression, four times the risk of substance abuse, and six times the risk of committing violent acts including partner and child abuse. The stress induced by a layoff can even impair fetal development.