Create and delete temporary Firefox Profiles on the fly
I use a few privacy protecting Firefox extensions and the websites that I normally visit work fine. Unfortunately, sometimes a web site comes along that doesn't appreciate one of my favorite privacy extensions: Canvas Blocker, No Script, Better Privacy, HTTPS Everywhere, Request Policy Continued, and/or Cookie Time.
Rather than try and debug the issue, I normally will use an Chromium Incognito shortcut to access the site. This is great, except Chromium doesn't have flash player. I could just install regular Chrome, but I'd rather not deal with having Chromium and Chrome installed at the same time.
One website that I couldn't get working recently is Spotify. It has worked in the past and I'm sure I could get it to work with my privacy extensions again, but I'm too lazy to debug it! I just want to listen to music!
Instead, I wrote this bash script that creates a new blank Firefox profile on launch and (as long its still running when you close the browser) deletes the profile from the disk as well as from profiles.ini.
https://gist.github.com/sahal/e21c7b8e2fba2a27350d
git clone https://gist.github.com/e21c7b8e2fba2a27350d.git cd e21c7b8e2fba2a27350d chmod +x tempprof.sh ./tempprof.sh
The profile will be deleted when Firefox exits. :D













