16 ms·
I have recently learned to make chrome extension, will work on firefox once I get time.
by pawannitj 8y ago
I have recently learned to make chrome extension, will work on firefox once I get time.
- pawannitj 8y agoI have launched it on firefox https://addons.mozilla.org/en-US/firefox/addon/imdb-ratings-on-netflix https://addons.mozilla.org/en-US/firefox/addon/imdb-ratings-...
- chucksmash 8y agoIt can likely be ported nearly directly. Firefox supports a quite faithful port of the `chrome` object the Chrome extension APIs are namespaced under. The four extensions I've written in the past (generally internal-to-co) were all seamlessly supportable in both browsers once Firefox moved away from their old extension interface. There are some differences but Firefox keeps their additions/improvements they make contained to the `browser` namespace, which seem to be spec-driven[1] so maybe those changes will end up in Chrome some day too. TL;DR: don't let worrying about compatibility prevent you from just trying to install and run the same code in FF to see what happens. Also, is the source code for this publicly available? I was going to just check this myself, but I don't immediately see a GitHub link in this thread or at the linked page from FF for Android. [1]: https://browserext.github.io/browserext/ https://browserext.github.io/browserext/
- pawannitj 8y agoThanks for pointers, will try firefox too. GitHub link is mentioned on extension page. https://github.com/pawanmaurya/imdb-ratings-on-netflix https://github.com/pawanmaurya/imdb-ratings-on-netflix
- Sohakes 8y agoI tried it on Firefox and it works fine! I just needed to change the value of <secret_key> to a key I created on their website (or else it fails silently, it would be cool to have some console message I think).
- joshschreuder 8y agoProbably a little late as you've already shipped Chrome, but webextension-toolbox is a pretty neat little CLI tool to help write cross-platform extensions: https://github.com/webextension-toolbox/webextension-toolbox https://github.com/webextension-toolbox/webextension-toolbox