funktechno / git-kanban-enhanced-extension

chrome extension to add additional kanban project planning to git hosting: github.com, gitlab.com, gitea.io, bitbucket.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firefox

lonix1 opened this issue · comments

Firstly, well done! This is an incredibly useful and promising extension.

Any plans to support firefox?

it's open sourced your welcome to look into it, It's not something I'm prioritizing now though. I can publish it if it becomes stable.

Any reason you went with chrome plugins instead of webextensions? From what I understand webextensions work on all browsers.

I'm not familiar with this term is it a different type of format? There is some documentation on porting chrome extensions to firefox.

some bakground for WebExtensions:
https://stackoverflow.com/tags/firefox-webextensions/info
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions
https://developer.chrome.com/extensions

Basically when written using the webextensions api, the addon becomes usable by all browsers.

from what I can tell the best thing is to use the webextension api rather than the chrome api to make it cross platform. I probably could try changing my function calls to see if I can still replicate my functionality.

e.g. instead of chrome.tabs use browser.tabs

https://github.com/funktechno/git-kanban-enhanced-chrome-extension/blob/master/src/backend/index.js

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Working_with_the_Tabs_API

I don't have a lot of chrome api calls, but I can work on converting these over.

Sounds great, I'll be the first beta tester! :)

Let me know when/if you have something you want me to test! 😄

👍 This is exciting... Can't wait for the plugin to be approved, so I can try it!

Any idea how long that takes?

They are way faster in their approval than chrome. I've posted the links in the readme already. https://addons.mozilla.org/en-US/firefox/addon/git-kanban-enhanced-selfhosted/. I had to majorly refactor my build tools for mozilla support. It did decrease my build size tremendously from 6mb to ~150kb with very minor changes in the actual code logic. One of the reasons for the refactor was firefox didn't like my vendor.js being 5mb and wanted each file to be at least smaller than 4mb so I looked into bundle code splitting which webpack 3 didn't support natively, but webpack 4 does.

The development process should be clearer now in the readme if you'd like to contribute. Basically only the kanban in gitea is functional now. I want to extend on the kanbans in the others.

I think the key changes is I had to update how the rest calls were made for firefox to work / root didn't work so I had to add window.location.host. The other changes we talked about earlier about the chrome. api extensions I didn't need to change b/c I found a polyfill that is now included in my build process.