Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions: How to install on FireFox #390

Open
harmankang opened this issue Aug 7, 2021 · 2 comments
Open

Instructions: How to install on FireFox #390

harmankang opened this issue Aug 7, 2021 · 2 comments

Comments

@harmankang
Copy link

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.
@harmankang harmankang changed the title How to install on FireFox Instructions: How to install on FireFox Aug 7, 2021
@cnwangjie cnwangjie pinned this issue Aug 8, 2021
@mathieucaroff
Copy link

better-onetab isn't available on firefox right now

Could you please develop that matter, I'd like to know what prevents the addition of better-onetab to the Firefox Marketplace.

Thank you for your investment in the making of better-onetab

@aarmn
Copy link

aarmn commented Aug 26, 2022

better-onetab isn't available on Firefox right now

Could you please develop that matter, I'd like to know what prevents the addition of better-onetab to the Firefox Marketplace.

Thank you for your investment in the making of better-onetab

I'm also interested to know why you won't add it to Firefox marketplace? is there a ToS violation based of Firefox ToS? or is there a weird technical issue?
TBH I always wanted to use better-onetab and stuck with onetab for sake of cross-browser support, now that I see it's technically possible to build it directly for Firefox, it is really amazing for me what may cause this!
Even in case it may cause some issues with Firefox, I guess I can help testing, coding and finally publishing it
I suggest, Let's temporary add it with a disclaimer to Firefox store, and then address possible issues overtime. we can also work to decrease chances of worse case scenario: data-loss, so that even a possible platform dependent bug don't cause everything to irrecoverably crash down, if this project is being actively maintained, which it seems so, I would love to have a short talk so we can migrate safely to Firefox. (I have some experience with Firefox add-on devel, and I have a similar project to this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants