Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Instructions: How to install on FireFox #390

@harmankang

Description

@harmankang

better-onetab isn't available on firefox right now, so I had to figure out how to manually install it. Leaving this here for other firefox users.

It's not quite as simple as converting a file. The .crx (for chrome) will nominally convert into .xpi (for firefox), but firefox will reject it because it requires that add-ons be signed.

Part I: Setup the extension

Step 1

Clone the repo

git clone https://github.com/cnwangjie/better-onetab

Step 2

Install the dependencies via yarn

cd better-onetab
yarn install

Step 3 (optional)

Jump into ./src and make changes as needed.

Some ideas:

  • Remove google analytics
  • Truncate the CSP
  • Gut the data sync (b/c of private API)

Step 4

Build (from root)

yarn build

Part II: Setup auth

Step 5

Grab your credentials from https://addons.mozilla.org/en-US/developers/addon/api/key/

(will have to sign up if you don't have a developer account)

Step 6

Install web-ext to create the .xpi

npm install --global web-ext

Step 7

Go into the ./dist directory and call web-ext.

web-ext sign --api-key="your JWT issuer" --api-secret="your JWT secret"

(This will validate, then sign the package -- it takes a few minutes.)

Step 8

A new directory called ./web-ext-artifacts should appear inside ./dist. It contains the signed ./xpi.

Then:

  • In firefox, go to about:addons
  • Click the settings icon
  • Choose "Install add-on from file"
  • Import the signed xpi
  • Install it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions