This is a Firefox extension that enables support for opening links in specific containers using custom protocol handler. It works for terminal, OS shortcuts and regular HTML pages.
An extension can be installed from the official Mozilla Add-Ons Store for Firefox.
- provides custom protocol handler to open URLs in containers
- supports both command line and internal invocations
- supports creation of containers on the fly
- supports setting colors and icons when creating new containers
- supports tabs pinning
- supports opening tabs in reader mode
- works well in combination with other extensions
Open https://mozilla.org
in a container named MyContainer
.
$ firefox 'ext+container:name=MyContainer&url=https://mozilla.org'
Open https://mozilla.org
in a container named MyContainer
. If the container doesn't exist, create it using an orange
colored fruit
icon. Also, pin the tab.
$ firefox 'ext+container:name=MyContainer&color=orange&icon=fruit&url=https://mozilla.org&pinned=true'
Also it will work with the links on the site:
<a href="ext+container:name=MyContainer&url=https://mozilla.org">Mozilla.Org in MyContainer</a>
This extension registers urls with custom protocol ext+container:
that are opened in Firefox to open
the extension embedded page opener.html#!/ext:container:
where query-string is "id=&url="
is html-encoded
It then uses browser.tabs.create({cookieStoreId: <container-id>, url: <url>})
to open the website in new tab
and closes the extension page tab itself
$ git clone https://github.com/honsiorovskyi/open-url-in-container.git
$ cd open-url-in-container
$ yarn
$ yarn build
Mozilla Public License Version 2.0
Contributions are very welcome. There's no specific process right now, just open your PRs/issues in this repo.