cnwangjie / better-onetab

:bookmark_tabs: A better OneTab for Chrome :memo: Temporarily removed from firefox :construction: V2 is WIP
https://chrome.google.com/webstore/detail/better-onetab/eookhngofldnbnidjlbkeecljkfpmfpg
MIT License
1.69k stars 285 forks source link

Instructions: How to install on FireFox #390

Open harmankang opened 3 years ago

harmankang commented 3 years ago

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:

mathieucaroff commented 3 years ago

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 commented 2 years ago

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)