1. Install Firefox container management extension 2. Make some containers 3. Visit websites and add them to only open in certain containers 4. Install cookie auto delete extension. 5. Add exceptions for sites you want to be logged into for each container the first time you visit them.
I have some other extension that makes a temp container for each new click that I can’t remember the name of now and I’m not by my PC.
Cookie auto delete may be superfluous.
Con is google is still broken for me (mainly gmail) because of the web of redirects they do and there’s no way in the container extension to add a top level domain to a particular extension (that I’ve found).
You can use the extension "Simple Tab Groups"[1] to automatically open some domains in specific Firefox containers like you described, by assigning a container to a group, and then configuring a domain to always open in that group.
The downside is that not all groups will be visible at a time, and you'll need to first select your previous group before finding the tab you came from. For me, that's an acceptable downside given the advantages it brings.
[1] - https://addons.mozilla.org/en-US/firefox/addon/simple-tab-gr...
You have to turn it to "Automatic mode", and fiddle a bit with the settings, but I have it set up so that every time I open a new tab it is a fresh isolated session, and will be destroyed when the tab is closed.
When I need to be logged in, I use the regular containers in Firefox for each service, or a context like "work", instead of the temporary containers.
E.g., I like to be able to go to facebook.com and be logged in, but when I click an external link, I kind a like to open a tab where I am not logged in. Same for hacker news and Youtube and my email.
When I'm "outside" those websites, sure, just accept all cookies and delete them when I close the tab
I imagine this can be done with Firefox containers and a bit of smarts, but I don't know how.