Hacker News new | ask | show | jobs
by alje 666 days ago
That is a built-in Firefox container feature. Open a website in a container and then click on the container icon (right next to the search bar) to keep that site open in that container. Every other time, that site loads directly into that container
1 comments

Thats per domain, not on any pattern of URL.
Yep, I think it's called "Containerise" with the British spelling. To make it work you need to remove your existing URL rules from the main container tabs add-on, or they'll fight like cat and dog if there's a conflict.

What's great about regex matching is that you can grab a regex for each of your Google accounts, and bookmark the URL that the regex matches. I've changed the Firefox search bar config to prioritise bookmarks in the results. I can now type 'gmail', and the top two results are:

Gmail (work)

Gmail (personal)

Each opens in opens in the correct container. The trick sometimes is finding a bookmarkable URL with a specific string that you can use in a regex.

To be honest it's one of the features I wish Firefox would add to their add-on because I don't like giving their party add-ons access to my data.