-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make compatible with Manifest v3 #256
Conversation
@MrMamen It's a WIP, but if you already want to take a look. |
ec6ebb8
to
1c7387a
Compare
7f2f34c
to
7f45d64
Compare
e61dc9f
to
6203ca0
Compare
c2329e5
to
ab3d2de
Compare
@MrMamen Can we try to land this? I didn't test too much (also mostly just Netflix), but we can always refine it later. I'd like to release it on Chrome soon. |
Yes. I'll test it a bit. |
NRK doesn't work with scrobbeling. This is due to the injection script not working. (Only tested on Chrome). |
Got it, thanks, I'll see if I can fix it. |
ab3d2de
to
f731c8a
Compare
@MrMamen Script injection for functions should be fixed. |
b4865b3
to
37a8be1
Compare
It seems to me that the scrobbling part needed to be disabled and re-enabled after switching to this branch. (for NRK at least.) If there is no way to prevent this, perhaps the migrate script should simply disable the scrobbling for injection-script sites? |
But that's for Chrome, right? I don't think it will be possible to migrate from v2 to v3 on Chrome, because they have different IDs, so they should be two separate extensions when installed. That wasn't the case for you because you probably don't have the ID configured in your |
I'll see if I can add an import/export functionality to allow users to move their data. |
Om not sure how important this is. More important to get this to shipped. We should be more careful with these things after it hits the Web Stores. |
Ok, I've actually already uploaded it to the Chrome store because I wanted to test something: https://chrome.google.com/webstore/detail/universal-trakt-scrobbler/mbhadeogepkjdjeikcckdkjdjhhkhlid But before we add it to the |
I experience that at least netflix history keeps loading/spinning forever, with no obvious error.. |
37a8be1
to
9671cac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
9671cac
to
35b3711
Compare
Fixes #156
NOTE: This should be carefully tested, as some things might still be broken. I'll continue to test on my end throughout this week.
This follows Chrome's migration guide and:
Shared.functionsToInject
on first run, because they need to be accessible from the service worker)browser.tabs.onRemoved
)XMLHttpRequest
isn't compatible with service workers (rate limiting has been removed as well, but our requests are already sequential, so they shouldn't cause many issues)There might be other changes that need to be made.
These changes should be fully backwards compatible with manifest v2. Webpack is configured to build v2 for Firefox and v3 for Chrome, as v3 isn't accepted in the Firefox store yet, as far as I could tell.