4 ms·
I use next script. It creates temporarily dir for firefox, uses it as a profile dir and remove after firefox closed. #!/bin/sh -e DIR="${XDG_CACHE_HOME:-
by hotdox 6y ago
I use next script. It creates temporarily dir for firefox, uses it as a profile dir and remove after firefox closed.
#!/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 https://github.com/pyllyukko/user.js
It is not my invention, but I lost a link to blog post
- hotdox 6y agoAnother alternative would be https://www.torproject.org/download/ https://www.torproject.org/download/
- appleflaxen 6y agothis is awesome; thank you.