Closed nilshellerhoff closed 3 years ago
Nvm, doesn't reliably work with Firefox. Might PR again later
I have now switched from CustomEvents to window.postMessage and it now also works in Firefox.
I don't have Netflix myself to test it, but those changes don't affect other websites and seems Netflix didn't work before, so I merge it.
Fixes #20
I had to add a second content script to inject
netflix.js
into the page header. This was necessary, as content scripts can't normally interact withwindow
variables, sowindow.netflix
was unavailable.Tested in Chrome and Firefox.