#!/bin/bash
# this file is distributed under version 3 or superior from GNU Public Licence
# see https://www.gnu.org/licenses/gpl-3.0.en.html

# you need to personalise the source variable
# there is the source profile for me:
source="$HOME/.mozilla/firefox/*.base"

# merci à ·☽•Nameless☆•777 · pour son idée d'utiliser mktemp
randompath=$(mktemp -d XXXXXXXXX --suffix=.firefox -p /tmp)

cp -r `{mathjax} {source}/* `{randompath}/
firefox --profile `{mathjax} {randompath};  rm -r `{randompath}