github-mathjax icon indicating copy to clipboard operation
github-mathjax copied to clipboard

Do the same for Firefox?

Open Naereen opened this issue 7 years ago • 20 comments

Well, everything is in the title: could you (try to) do a Firefox version of this extension? It seems interesting and well designed, but only for Chrome! :fox_face: !

Naereen avatar Apr 11 '17 17:04 Naereen

Given that I no longer use Firefox myself, this would be a low priority. However, once I'll have time, I'll look into how much work it would be to port the extension.

orsharir avatar Apr 13 '17 04:04 orsharir

I just tried it with firefox (cloned the repository and invoked web-ext run). The add-on runs and works perfectly without any modifications! It would be really awesome if you could upload it to https://addons.mozilla.org/.

tobiasdiez avatar Sep 28 '17 19:09 tobiasdiez

@tobiasdiez who that's great.

I have no idea how to do that, I guess you just need to create an account and upload it? Maybe @orsharir could do it so that it is kept up-to-date?

Naereen avatar Sep 28 '17 20:09 Naereen

@tobiasdiez @orsharir Any update?

Naereen avatar Oct 06 '17 08:10 Naereen

I'm going to be a bit busy in the coming weeks. Hopefully, I'll be able to look into it afterwards.

orsharir avatar Oct 07 '17 09:10 orsharir

@orsharir OK, great!

Naereen avatar Oct 07 '17 09:10 Naereen

Hi, Have you tried?

Naereen avatar Jan 28 '18 11:01 Naereen

Hi @orsharir , as the people in my team started to use you extension and I am a Firefox user, I packaged your extension for Firefox at https://addons.mozilla.org/en-US/firefox/addon/github-with-mathjax-support .

Let me know if you want to package it on the Firefox Add Ons website yourself, I would be happy to remove my unofficial package in that case.

traversaro avatar Mar 08 '18 22:03 traversaro

@traversaro it works perfectly, good job :clap:!

Naereen avatar Mar 09 '18 07:03 Naereen

Note that the extension itself did not need any modification, I just uploaded in its current form to https://addons.mozilla.org/ .

traversaro avatar Mar 09 '18 08:03 traversaro

Unfortunately the extensions was removed after review on March 16th 2018. This was the review:

Details: This version did not pass the review because of the following issues:

  1. JQuery 1.* is no longer accepted. Please use JQuery 3.* We accept JQuery/JQuery-UI libraries downloaded from 'ajax.googleapis.com', 'jquery.com' or 'jqueryui.com'; and used without any modification (downloaded and not copy pasted). Minified versions are better. (file-name change does not matter) I'm sorry, but we cannot accept modified, re-configured or customized libraries. Please use non-custom versions of jquery-ui, as well as the stock version of jquery and others, that match the original checksums on the maintainer's website. e.g.: jquery-min-1.7.2.js

  2. This version contains obfuscated, minified, concatenated or otherwise machine-generated code. Please provide the original sources, together with instructions on how to generate the final XPI. Source code must be provided as an archive and uploaded using the source code upload field, which can be done during submission or on the version page in the developer hub.

Please read through the instructions at https://developer.mozilla.org/en-US/Add-ons/Source_Code_Submission. More Information: https://blog.mozilla.org/addons/2016/04/05/improved-review-time-with-links-to-sources/

Established libraries (eg: JQuery, bootstrap) do not require the inclusion of their sources. Please use non-custom versions of jquery-ui, as well as the stock version of jquery and others, that match the original checksums on the maintainer's website.

Please fix them and submit again. Thank you.

I am trying to prepare a Firefox friendly version, let me know if you are interested in merging PR for Firefox compatibility.

traversaro avatar May 05 '18 14:05 traversaro

Unfortunately my javascript skills are not sufficient to migrate the extension to the latest jQuery, so for the time being I am giving up on this porting.

traversaro avatar May 05 '18 16:05 traversaro

Neither are mine… Don't try too much if you don't have time, it's probably not worth it…

Naereen avatar May 05 '18 20:05 Naereen

Apparently you can also easily distribute the extension on your own as .xpi file, without passing through the addons.mozilla.org website, but just uploading the extension to https://addons.mozilla.org/en-US/developers/addon/submit/distribution for signing it.

See https://github.com/traversaro/github-mathjax-firefox for the version of this extension for Firefox.

traversaro avatar May 05 '18 22:05 traversaro

@traversaro thanks, works really well. Install is automatic just by clicking on the xpi file link on your repo.

nunoguedelha avatar May 08 '18 12:05 nunoguedelha

Well yes it works, but it is completely unsecured, and that's the whole purpose of https://addons.mozilla.org

Naereen avatar May 08 '18 21:05 Naereen

It do well in Firefox straightly. I just load the manifest.json from the main repo in Firefox's debug mode. Some modifies have been done?

zombie110year avatar May 11 '19 03:05 zombie110year

Are there any plans to continue migrating this to Firefox? I followed the rabbit trail and found xhub which does something similar but they don't have a port for Firefox either. Currently debating whether to update/port this or just port theirs.

mahyarmirrashed avatar Feb 04 '22 09:02 mahyarmirrashed

https://github.com/traversaro/github-mathjax-firefox still works for me, but xhub seems to be the go-to solution in the longterm. However, they are currently using the new manifest_version: 3 which is not yet supported by firefox https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/manifest_version (although there was recent progress on this, so maybe in nightly versions of firefox it might work)

tobiasdiez avatar Feb 04 '22 11:02 tobiasdiez

https://github.com/traversaro/github-mathjax-firefox still works for me, but xhub seems to be the go-to solution in the longterm. However, they are currently using the new manifest_version: 3 which is not yet supported by firefox https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/manifest_version (although there was recent progress on this, so maybe in nightly versions of firefox it might work)

It seems that they made the code for XHUB private now.

mahyarmirrashed avatar Apr 04 '22 14:04 mahyarmirrashed