AsciiJakob / NoDistractions

Simple, bloat-free website blocker with a focus on intuitiveness
https://addons.mozilla.org/en-US/firefox/addon/nodistractions-website-blocker/
MIT License
3 stars 1 forks source link

Support edge/chrome #20

Open AsciiJakob opened 3 weeks ago

AsciiJakob commented 3 weeks ago

Add support for edge. Since you can add chrome extension to edge, it should be adequate just to support chrome, but being on the Edge store could also be a plus since it is probably what the majority of Edge users use. Supporting chrome will also support other big browsers such as Vivaldi, Brave etc.

AsciiJakob commented 3 weeks ago

This requires moving the extension over to manifest v3, which is inevitable and is something I've already started to look into. Webrequests is not deprecreated in Firefox with with mfv3, but it is in firefox. Therefore the most annoying thing will be to move everything over to use Declerative Net Request instead. Since background pages work differently I will also have to make some other changes, not sure what all of them could be yet, but the "visit anyways" timers will have to use the timer api instead of just a settimeout now.