magnusbakken / espn-fantasy-autopick

A Chrome extension that lets you automatically add active players to the current roster in an ESPN NBA/NHL fantasy league.
MIT License
12 stars 7 forks source link

Remove declarativeContent API usage to allow Firefox support #15

Closed cameronkeif closed 1 year ago

cameronkeif commented 3 years ago

Refactored background.js for both extensions to remove the declarativeContent API usage (and accompanying permission), which allows the extensions to be ported to Firefox.

The result of testing the packed extension via https://www.extensiontest.com (attached is the NBA result, but NHL is identical).

firefox-compatibility

Firefox demo

firefox

Chrome regression test

chrome

magnusbakken commented 3 years ago

Dude, this is awesome! I've been meaning to do this myself as I mentioned in #8. Looks like the changes aren't too big. I'll do some testing myself later today or tomorrow.