Skip to content

Commit 6620ca7

Browse files
author
Linux Netflix User
committed
make Netflix 1080p Firefox work again
* updated cadmium-playercore-1080p.js and get_manifest.js from truedread/netflix-1080p * in those files: changed references to use6Channels to window.use6Channels so it won't carsh if not defined * background.js: instead of redirecting to the changed player core replacing the request body so there are no CORS errors * include aes.js and sha.js in the add-on (freezing version, no web request that can potentially have CORS errors) Probably only the changes in background.js did the trick, but
1 parent 1ecaa5b commit 6620ca7

File tree

6 files changed

+86111
-79716
lines changed

6 files changed

+86111
-79716
lines changed

src/aes.js

Lines changed: 803 additions & 0 deletions
Large diffs are not rendered by default.

src/background.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
browser.webRequest.onBeforeRequest.addListener(
22
function(details) {
3-
return {
4-
//redirectUrl: browser.extension.getURL("cadmium-playercore-5.0008.544.011-1080p.js")
5-
redirectUrl: browser.extension.getURL("cadmium-playercore-1080p.js")
3+
let filter = browser.webRequest.filterResponseData(details.requestId);
4+
let encoder = new TextEncoder();
5+
6+
filter.ondata = event => {
7+
fetch(browser.extension.getURL("cadmium-playercore-1080p.js")).
8+
then(response => response.text()).
9+
then(text => {
10+
filter.write(encoder.encode(text));
11+
filter.disconnect();
12+
});
613
};
14+
return {};
715
}, {
816
urls: [
917
"*://assets.nflxext.com/*/ffe/player/html/*",

0 commit comments

Comments
 (0)