mozilla / multi-account-containers

Firefox Multi-Account Containers lets you keep parts of your online life separated into color-coded tabs that preserve your privacy. Cookies are separated by container, allowing you to use the web with multiple identities or accounts simultaneously.
https://addons.mozilla.org/firefox/addon/multi-account-containers/
Mozilla Public License 2.0
2.73k stars 343 forks source link

Open specific link with special url schema corresponding to a certain container. #2134

Open momoblydblk opened 3 years ago

momoblydblk commented 3 years ago

Expected behavior (Examples)

Open link such as moz-extension://[whatever id is assigned to this extension(the container)]/[container_name]/twitter.com will open twitter in the specific container. Example: Link: moz-extension://1bbd76ed-631f-4901-ac00-54c1ca5ba151/Personal/twitter.com will open twitter.com in the Personal container (if there is a container named that)

I'm not sure if this is the correct id assigned to this extension by AMO, but this is what I get from my browser, so I decide to stick with it.

Notes

Will be handy if you have multiple google accounts with their own calendar. One for work and one for personal. You can add this as bookmarks to fastly open the corresponding calendar page.

Narven commented 3 years ago

This would be really awesome to have. Any external tool/app could open urls in a specific container. I was searching for some way to do this. This extension is the main reason why I use firefox.

This would save a lot o manual work.

momoblydblk commented 3 years ago

This would be really awesome to have. Any external tool/app could open urls in a specific container. I was searching for some way to do this. This extension is the main reason why I use firefox.

This would save a lot o manual work.

The ideal situation I expected for this is to use this with a bookmark. Having a work folder all containing schema to open page in the container and having a personal folder doing the same thing but in a different container. I don't need to mannually open tab in specific containers before clicking the bookmark.

momoblydblk commented 2 years ago

So no one from the official noticed this thing?

toupeira commented 2 years ago

I currently use https://github.com/honsiorovskyi/open-url-in-container which does something like this, but it would definitely be great to have this in the official addon.

I mainly use this for bookmarks where I use multiple accounts in separate containers, so I can't just set those sites to always open in a specific container since they share the same domain. My own use-case could also be solved by more granular URL patterns (with an optional path, and wildcards), or container settings on bookmarks.

But a custom URL scheme would still be useful for other use-cases like scripting, or shortcuts outside of Firefox.

momoblydblk commented 2 years ago

I currently use https://github.com/honsiorovskyi/open-url-in-container which does something like this, but it would definitely be great to have this in the official addon.

I mainly use this for bookmarks where I use multiple accounts in separate containers, so I can't just set those sites to always open in a specific container since they share the same domain. My own use-case could also be solved by more granular URL patterns (with an optional path, and wildcards), or container settings on bookmarks.

But a custom URL scheme would still be useful for other use-cases like scripting, or shortcuts outside of Firefox.

Thanks, it helps a lot

LuisAPI commented 1 year ago

Yeah, this would be awesome if implemented!

kapsiR commented 11 months ago

That would be really cool and a great feature! I'd suggest using the bookmark itself as the "base element" where the configuration sits.

Just like "This bookmark should open in container work and this bookmark should open in container home"...

Wersjon commented 8 months ago

Similar things to this is to allow opening page directories to be always open in certain Container i.e. github.com/Company1/... should be in container Company1 github.com/myAccount1/... should be in container MyAccount1 This would be really helpful when working with multiple accounts on same sites