I am very interested in seeing what you have working for this. My goal is to build a clean Firefox profile with a number of site exceptions before the launch so that various sites do not prompt about self signed certificates and etc. I also am using bash.
It sounds like you may have cracked the very use case I’m seeking. Would it be possible for you to share your code?