There is a built-in possibility to assign URLs to containers: <a href="https://konradkruk.com/images/CleanShot%202024-12-02%20at%2014.40.29%402x.png" rel="nofollow">https://konradkruk.com/images/CleanShot%202024-12-02%20at%20...</a><p>However, there is no possibility to adjust matching rules, so this script offers a bit more customization options.
Yep, this addon is for more advanced scenarios. For example, I have different AWS accounts open in a different containers and I want codebuild urls to open in the correct one depending on the project name.
That icon isn't showing up here. Are you sure it isn't coming from another add-on?
Yes! I need this. I have a separate youtube container for background listening videos where I want the video quality to be set low. I want a container so that I don' t have to change quality back and forth when watching videos at full quality. Currently, I have to manually open a container tab and then navigate to the channel.
Does it support regular expressions to match parts of a URL? I have two different GitHub accounts, that I need to be able open in different containers based on the organization name (<a href="https://github.com/<org>" rel="nofollow">https://github.com/<org></a>). I am currently using <a href="https://addons.mozilla.org/en-CA/firefox/addon/containerise/" rel="nofollow">https://addons.mozilla.org/en-CA/firefox/addon/containerise/</a>, but it is a bit of a pain. I would much prefer defining my rules in code.
Yeah, it's JavaScript so you can write whatever logic you want!<p><pre><code> if (url.hostname === "github.com") {
if (/.*foo.*/.test(url.pathname)) {
return "My Foo Conatiner"
}
if (/.*bar.*/.test(url.pathname)) {
return "My Bar Container"
}
}</code></pre>
While containers are a great feature, it's irritating that the official mozilla extension does have greater controls for controlling when pages get loaded into containers. For example Bandcamp has every artist on their own subdomain, which means even though bandcamp.com is set to open in its own container, none of the artists pages do.<p>I've been using <a href="https://addons.mozilla.org/en-CA/firefox/addon/containerise" rel="nofollow">https://addons.mozilla.org/en-CA/firefox/addon/containerise</a> to handle this for me.
I don't know why it's so difficult in Firefox to just run each URL domain in its own container unless instructed otherwise.
In the official Multi-Account Containers add-on, there's an option for "Always open this site in..." where you can chose a container. How does this differ?
Different containers for different paths on the same domain. Obviously not a common use case, but it's there. It's fully programmable, so you can open a different container based on the current phase of the moon if your heart desires it.
This is usually my type of thing but am I being thick, I don't quite get what this is for? Could we get a zoomed out example of addressing said container?
Could someone explain to me what "container" means in this context and why would I want to use "containers" for URLs / domains?
Firefox containers let you isolate browsing contexts. Think separate cookie jars. Example: You can have one container for work (logged into work Gmail, Slack) and another for personal (personal Gmail, Amazon). They won't share logins or tracking data.
Having viewed the code by the CRX addon I'd like to ask -<p>Was all or part of the program written in another language and compiled to Javascript?<p>My Javascript is not the good but it looks that way to me, or perhaps was constructed from some table driven system.