Tag Archives: firefox

Firefox Multi-Account Containers – manual site association

open about:debugging#/runtime/this-firefox

inspect “Firefox Multi-Account Containers”

paste the following function into Console

1
2
3
4
async function open_in_container(id, fqdn) {
    var uuid = Object(await browser.storage.local.get(`identitiesState@@_firefox-container-${id}`))[`identitiesState@@_firefox-container-${id}`]['macAddonUUID']
    return await browser.storage.local.set(JSON.parse(`{"siteContainerMap@@_${fqdn}": {"userContextId": "${id}","neverAsk": true,"identityMacAddonUUID": "${uuid}"}}`));
}

call the just defined function

1
await open_in_container(2, "example.com");

first parameter is the container id
second parameter is the fqdn of the site