stoically / temporary-containers

Firefox Add-on that lets you open automatically managed disposable containers
https://addons.mozilla.org/firefox/addon/temporary-containers/
MIT License
846 stars 57 forks source link

Is there a way to configure a specific domain to always open in a temporary container, unless you're already in a permanent container? #637

Open briankendall opened 5 months ago

briankendall commented 5 months ago

I have a specific thing I'd like to do with permanent containers: I'd like to set specific websites (e.g. youtube.com) to always open in a temporary container, both when I navigate to it from a link or type it into the URL bar. The one exception would be if the current tab is already in a permanent container, for those times when I actually want to be logged into the site.

Is there any way to do that?

anewuser commented 5 months ago

Instead of using Temporary Containers, it seems that you could set up Cookie AutoDelete to delete Youtube cookies and site data by default, and then add exceptions for specific containers.

Gitoffthelawn commented 2 months ago

@anewuser Interesting idea. Just FYI, looking at the current reviews for CookieAutoDelete, multiple people are reporting that it has been abandoned and no longer works correctly.

anewuser commented 2 months ago

Well, then @briankendall can uninstall it and simply set all YouTube cookies to be deleted when he closes Firefox (it says only "cookies" but includes localStorage too):

With this setup, there's no reason to worry about leftover YouTube cookies in any container, and he'll still be able to log in to his YouTube account in his main container with just one click.

Note that Firefox has been isolating third-party cookies and site data by default for two years already, so the only reason for keeping multiple permanent containers is to be able to stay logged in to different accounts on the same site.

There's also a lightweight alternative to the "Temporary Containers" extension: Open in Temp Container.