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

Support opening multiple URLs in the current Temporary Container #600

Open Gitoffthelawn opened 2 years ago

Gitoffthelawn commented 2 years ago

I would like to use this extension with another excellent extension, Multiple Paste and Go Button, which I'll refer to as MPGB.

Note that I have TC's site isolation feature enabled.

As an example, let's say, I'm logged into Stoically's Slithering Snakes Site, and that site is in the current tab, which is temporary container 15. In the clipboard, I have 5 other URLs that point to different pages on the same incredibly popular site. I want to use MPGP to quickly load those 5 other URLs. Since I'm logged in, I want to use temporary container 15 for all these URLs.

Here's what I've tried:

  1. If I simply invoke MPGB, the 5 URLs will load in temporary containers 16-20. This won't be desired because the site won't know I'm logged in.
  2. If I disable TC's site isolation, then invoke MPGB, the same issue will be present.
  3. If I lookup the keyboard shortcut I assigned to TC's "Open a new tab in the same Container as the current tab" function, press it, and then invoke MPGB, the same issue will also be present.

I don't want to exclude this site from TC or from its site isolation feature because I want this functionality on several sites, and I would prefer not to start punching holes in TC's functionality.

Can TC currently handle this use case? If not, could it be added?

If it will be too time-consuming/challenging to make the 2 extensions work together, another idea is to simply include the MPGB functionality in TC. The logic is quite simple and mostly contained in just 2 small JavaScript files: