atomic-chrome icon indicating copy to clipboard operation
atomic-chrome copied to clipboard

Firefox Add-on

Open dsandstrom opened this issue 8 years ago • 13 comments

Is this possible?

dsandstrom avatar Feb 03 '16 20:02 dsandstrom

A co-worker let me know about GhostText for Sublime: https://github.com/Cacodaimon/GhostText-for-SublimeText https://addons.mozilla.org/en-US/firefox/addon/ghosttext-for-firefox/

So it seems like it's possible. Is support planned?

dsandstrom avatar Feb 03 '16 20:02 dsandstrom

It is of course possible. As long as we can start a WebSocket server in the editor, the same implementation should be possible. I have not decided of any plan to support other editors yet, but I am all for it, so help is very welcome.

The Atom plugin can be found here, I think it should not be too complicated to port it to Python and Sublime API.

danhper avatar Feb 04 '16 01:02 danhper

Thanks for the reply. I was talking about a Firefox port, not a sublime port.

On Wed, Feb 3, 2016, 5:38 PM Daniel Perez [email protected] wrote:

It is of course possible. As long as we can start a WebSocket server in the editor, the same implementation should be possible. I have not decided of any plan to support other editors yet, but I am all for it, so help is very welcome.

The Atom plugin can be found here https://github.com/tuvistavie/atomic-chrome-atom, I think it should not be too complicated to port it to Python and Sublime API.

— Reply to this email directly or view it on GitHub https://github.com/tuvistavie/atomic-chrome/issues/5#issuecomment-179567090 .

dsandstrom avatar Feb 04 '16 02:02 dsandstrom

Oh, sorry! I do not have any plan for a Firefox port right now, but almost all the logic could go to be shared as a library, and we could keep only the browser specific implementation in the main plugin package. This should avoid code duplication. However, my priority right now being to improve the Chrome plugin, help is very welcome for this too.

danhper avatar Feb 04 '16 03:02 danhper

I'm currently writing this comment with Firefox Nightly and atomic-chrome so it's basically already working. The only thing I did was add

"applications": { "gecko": { "id": "[email protected]" } }

to the manifest and removed the 'activeTab' permission since it seemed to cause the extension not to load (and I believe is also redundant with the 'tabs' permission ).

Edit: Also works in the current Firefox Developer Edition (v47).

wiiittttt avatar Apr 12 '16 21:04 wiiittttt

That's great news, thank you for the info. I did not know Firefox support was progressing so quickly. I am going to try to package it and distribute it from the release page until normal firefox also supports it.

danhper avatar Apr 17 '16 02:04 danhper

This is great! How can I test this? sounds like it could maybe be a closed issue, and I would be happy to add to the readme and maybe push to the firefox extensions list if I can test it out and confirm it works.

aeischeid avatar Aug 19 '16 16:08 aeischeid

I did not have a change to try it out yet. @wiiittttt Would you have more information about how to have it to work with Firefox?

danhper avatar Sep 02 '16 06:09 danhper

In Firefox 50, the only thing I had to do was go to about:debugging, click "Enable add-on debugging" and then "Load Temporary Add-on". Choose the manifest file.

It appears the applications key in the manifest is no longer needed. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/applications.

wiiittttt avatar Sep 02 '16 10:09 wiiittttt

I just used the Chrome Store Foxified Firefox add-on to install the Atomic Chrome Extension directly from the Chrome Store into Firefox.

Now, I'm using it to type this comment. So it seems to be working just fine as is, if you want to make an official port of it.

btw: I'm using Firefox 51.0.1 (64bit) for Linux Mint.

thancock20 avatar Feb 01 '17 05:02 thancock20

I confirm that this extension works as-is with Firefox 57. I installed it with Chrome Store Foxified as well, and I am typing this post in Emacs, using the extension in Firefox 57. I think the extension could be published to Firefox as it is.

lrineau avatar Dec 05 '17 12:12 lrineau

"Chrome Store Foxified" worked for me. This should be added to the README for people looking to add it to Firefox.

parkour86 avatar Dec 29 '17 03:12 parkour86

Good to hear! If you would like to add a note in the README and send a PR it would be very nice, thanks!

danhper avatar Jan 03 '18 17:01 danhper