Add new MPL profiles, add option to disable HPL

This commit is contained in:
shirt 2023-01-16 18:40:34 -05:00
parent 0c6844c4bb
commit 96856b02e0
Signed by: shirt
GPG key ID: A5D61AB2D5489EE1
9 changed files with 94 additions and 64 deletions

View file

@ -14,11 +14,6 @@ function getBrowser() {
chrome.webRequest.onBeforeRequest.addListener(
function (details) {
/* Allow our shim to load an untouched copy */
if (details.url.endsWith("?no_filter")) {
return {};
}
if (getBrowser() == "Chrome") {
return { redirectUrl: chrome.runtime.getURL("cadmium-playercore-shim.js") };
}
@ -46,6 +41,7 @@ chrome.webRequest.onBeforeRequest.addListener(
urls: [
"*://assets.nflxext.com/*/ffe/player/html/*",
"*://www.assets.nflxext.com/*/ffe/player/html/*"
]
],
types: ["script"]
}, ["blocking"]
);