dheerajdlalwani / back-to-work

A simple browser extension, intended to get you "Back To Work" when you start slacking off to one of those really addictive sites.
MIT License
36 stars 1 forks source link

Support: Add suport for Mozilla Firefox #10

Open gupta-shrinath opened 2 years ago

gupta-shrinath commented 2 years ago

I was trying to install this extension on firefox(primary browser) but it seems that Manifest v3 is not supported. image Mozilla on Manifest v3 support https://blog.mozilla.org/addons/2021/05/27/manifest-v3-update/ https://blog.mozilla.org/addons/2019/09/03/mozillas-manifest-v3-faq/ Possible solution: Downgrade version v2 to support firefox. I have not read the source code of the extension so I don't know if that would be a problem. I'll be happy to work on this if any major work is required.

dheerajdlalwani commented 2 years ago

Okay, let me think this over. If you have any suggestions on how to approach this, feel free to comment down.. Thank you so much!

gupta-shrinath commented 2 years ago

First, we need to know whether the extension(code) runs in Manifest v2 and if so then it would run on firefox as well IMO. If you check this in your local will have a clear idea. I'm not sure whether this is the best solution but it is a simple solution.

dheerajdlalwani commented 2 years ago

No, this particular version uses certain APIs which are specific to Manifest V3. DeclarativeNetRequest API to be one of the major ones. Now Chrome actually has given support for this API in Manifest V2 also, so that it aids the developers in transition from Manifest V2 to V3. I don't know if this is the case with Firefox.