Awesome Open Source
Awesome Open Source

Multi-Account Containers

The Firefox Multi-Account Containers extension lets you carve out a separate box for each of your online lives – no more opening a different browser just to check your work email! Learn More Here

Available on addons.mozilla.org

For more info, see:

Requirements

  • node 7+ (for jpm)
  • Firefox 57+

Development

Running Locally

Via WebExtensions API (web-ext)

  1. Install the web-ext tool.
  2. Run web-ext run -s src/. This launches Firefox and installs the extension automatically.

This tool provides some additional development features, such as automatic reloading.

Via about:debugging in Firefox

  1. Open the about:debugging page in Firefox.
  2. Click on This Firefox.
  3. Click on Load Temporary Add-on.
  4. Select src/manifest.json.

Here is a video that demonstrates how to do this.

Testing

  • Install dependencies:

    npm install
    
  • Run all tests:

    npm run test
    
  • Only run the linter:

    npm run lint
    

There is a timeout test that sometimes fails on certain machines, so make sure to run the tests on your clone before you make any changes to see if you have this problem.

Distributing

Make the new version

  1. Bump the version number in package.json and manifest.json
  2. Commit the version number bump
  3. Create a git tag for the version: git tag <version>
  4. Push the tag up to GitHub: git push --tags

Publish to AMO

  1. npm run-script build
  2. Upload the .zip to AMO

Publish to GitHub

Finally, we also publish the release to GitHub for those followers.

  1. Download the signed .xpi from the addon versions page
  2. Make the new release on GitHub
    • Use the version number for "Tag version" and "Release title"
    • Release notes: copy the output of git log --no-merges --pretty=format:"%h %s" <previous-version>..<new-version>
    • Attach binaries: select the signed .xpi file

Links

Facebook & Twitter icons CC-Attrib https://fairheadcreative.com.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,997
firefox (323
webextension (106