30_seconds_of_knowledge icon indicating copy to clipboard operation
30_seconds_of_knowledge copied to clipboard

Firefox addon doesn't work

Open raulhsj opened this issue 4 years ago • 19 comments

This is the url: https://addons.mozilla.org/en-US/firefox/addon/30-seconds-of-knowledge/ It says that the page couldn't be found

raulhsj avatar May 19 '20 08:05 raulhsj

Hey @raulhsj, sorry about that. I'm aware it's unavailable at the moment. I had some problems with them reviewing the extension (they couldn't build it). I'm working on that. I hope to have it up again real soon.

petrovicstefanrs avatar May 19 '20 15:05 petrovicstefanrs

Hi @petrovicstefanrs Is there a way to install the addon manually for Firefox?

mansourmahboubi avatar Jul 24 '20 17:07 mansourmahboubi

Hi @petrovicstefanrs Is there a way to install the addon manually for Firefox?

Hello! Yes, there is! Clone the repository, in a terminal enter the folder, run "npm run build:gecko". Type "about:config" (in Firefox ofc), and search for "xpinstall.signatures.required". Set the boolean value to false, and close this page. After this go to the addons page, and add the extension from file. You'll see a zip file called "gecko_build.zip" in the folder where you cloned the repo to. Add that zip, and you're done!

atesztoth avatar Jul 31 '20 08:07 atesztoth

Hey @petrovicstefanrs any news on getting it back to the official addons page for ff?

phoffmeister avatar Aug 19 '20 10:08 phoffmeister

Still getting this error on firefox

mijailr avatar Aug 26 '20 05:08 mijailr

Hi @petrovicstefanrs Is there a way to install the addon manually for Firefox?

Hello! Yes, there is! Clone the repository, in a terminal enter the folder, run "npm run build:gecko". Type "about:config" (in Firefox ofc), and search for "xpinstall.signatures.required". Set the boolean value to false, and close this page. After this go to the addons page, and add the extension from file. You'll see a zip file called "gecko_build.zip" in the folder where you cloned the repo to. Add that zip, and you're done!

Thanks for the tip I do as you said except firefox after version 48 does not respect xpinstall.signatures.required I switched to firefox developer edition and it's working like a charm. I found some tricks for firefox normal edition but firefox developer edition sounds good to me.

mansourmahboubi avatar Aug 27 '20 11:08 mansourmahboubi

I was trying to upload a compiled version to get a valid signature. And the failure was related with this part:

https://github.com/petrovicstefanrs/30_seconds_of_knowledge/blob/1107a1b7e3aef01cd7ea7ada6289ca55fedf3e8f/webpack.config.js#L19-L26

After you change the strict_min_version to the latest ESR then the automatic test on the addons page pass the first step.

       gecko: {
		browser_specific_settings: {
			gecko: {
				id: '[email protected]',
-				strict_min_version: '42.0',
+				strict_min_version: '68.0',
			},
		},
	},

But then it complains about the uses of eval and innerHTML functions used by React, so I believe this isn't easy to solve, or anyone know how to use React DOM with safer methods?

mijailr avatar Aug 27 '20 14:08 mijailr

Hi!

I was wondering if there are any news on making this work from the addons page.

Akrabut avatar Oct 27 '20 11:10 Akrabut

As addition to comment by @atesztoth - simply rename gecko_build.zip to gecko_build.xpi and drag & drop that file on Firefox to install.

MarcinOrlowski avatar Jan 03 '21 07:01 MarcinOrlowski

Firefox still throws an error. I don't want developer edition of Firefox. Any updates?

UPD: Nvm, switched to developer edition

Kreeg avatar Feb 01 '21 12:02 Kreeg

@petrovicstefanrs any news on the Firefox addon? anything we can help with?

lagerfeuer avatar May 25 '21 20:05 lagerfeuer

I'd love to get this addon officially on ff. I could open a pull request if needed.

tqaw19 avatar Oct 26 '21 05:10 tqaw19

Just recently started working on this project again. I should have a new version soon, and I'll try to fix the FF addon in that update. Sorry for the trouble with it, just couldn't find time to work on this for the past ~2 yrs.

petrovicstefanrs avatar Oct 26 '21 12:10 petrovicstefanrs

Sounds great, thanks for the update, and thanks for your time and effort 👍🏼

lagerfeuer avatar Oct 26 '21 19:10 lagerfeuer

Small update here. I tried fixing the extension so it worked with FF, but ran into a bunch of other issues. So I decided to do an overhaul. I'll be updating all packages, rewriting react classes to functional components with hooks, and updating manifest to v3. Hopefully, after that is done and the version is stable and easy to develop on, I'll be able to release it as v2 that works on both Chrome and FF. As someone mentioned above, ff complains about using eval and innerHTML, hopefully, this rewrite will address those issues and more. So far I have it set up to work with updated webpack and react and manifest versions, but almost nothing else works because of it, so I'm working on that now.

petrovicstefanrs avatar Oct 30 '21 21:10 petrovicstefanrs

Another small update. I managed to make the extension work with the new Webpack and new Manifest versions. In the meantime, I also tried reuploading the current (v1.2) version to Firefox for review, in hopes of releasing it again but it's been around 10 days, and no word back from them. The addon portal also has a notification that says they are experiencing high demand and reviews usually take a few weeks.

Anyway, now that the dev version of the extension is working I can start rewriting it to functional components with hooks + make some other improvements and simplify some code.

petrovicstefanrs avatar Nov 09 '21 20:11 petrovicstefanrs

Another update. The whole extension is now rewritten to react with hooks and manifest v3. I managed to successfully test the extension on Chrome, Brave and Opera browsers.

~Firefox is still having some issues but hopefully, I'll manage to fix it soon or at least come up with a hack to support it until they officially support manifest v3 (I'll probably use v2 for FF until then). For whatever reason documentation around manifest v3 support for FF was not very clear and there was not much of it but 1 thing I've seen was that they projected they would start support for v3 in 2021 Q4. I'm assuming that will be postponed for Q1 2022 so I'll try to have v2 for FF only until then.~

Edit: Managed to make FF work with manifest v2

Edit: Also added some new languages and had to remove support for C++ snippets

petrovicstefanrs avatar Dec 06 '21 00:12 petrovicstefanrs

Hey @petrovicstefanrs, is there anything that the community can do to support this? We'd love to get this on firefox!

deiga avatar May 24 '22 12:05 deiga

I'd be happy to help get this back up onto Firefox, got it running locally for now.

tomal02 avatar Oct 26 '22 23:10 tomal02