I have been starting Firefox with temporary throwaway profiles (for research and testing purposes), and wrote this to make it a little faster.

Based on the article Bypassing the Profile Manager from MozillaZine. This is the “unlisted profile” feature.

And the temporary profile directory gets cleaned up when the script exits.