Skip to content

Instantly share code, notes, and snippets.

@norpol
Created April 4, 2018 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norpol/013871db3902bf7717fa42c1400d53ff to your computer and use it in GitHub Desktop.
Save norpol/013871db3902bf7717fa42c1400d53ff to your computer and use it in GitHub Desktop.
Launches a temprorary firefox session
#!/bin/sh
set -u
PROFILEDIR="$(mktemp -p /tmp -d tmp-fx-profile.XXXXXX.d)"
[ -d "${PROFILEDIR}" ] || exit "mktemp failed"
firefox -profile "${PROFILEDIR}" -no-remote -new-instance $*
rm -rf "${PROFILEDIR}"
@norpol
Copy link
Author

norpol commented Apr 4, 2018

@norpol
Copy link
Author

norpol commented Apr 4, 2018

Great for testing browser extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment