Update background.js

This commit is contained in:
XMYSTERlOUSX 2022-10-23 08:16:36 +05:30 committed by GitHub
parent e8ffaace9a
commit f57edc7fb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ function getLicenseRequestHeaders(details) {
// Some license requests can hold one time token values in their headers or payload. So blocking such requests before they are sent to the server and capturing them! // Some license requests can hold one time token values in their headers or payload. So blocking such requests before they are sent to the server and capturing them!
// If your license request also holds one time values add them in the below line, seprating by an || operator. Remember to disable the extension if you actually need to play the video of these services! // If your license request also holds one time values add them in the below line, seprating by an || operator. Remember to disable the extension if you actually need to play the video of these services!
if (details.url.includes("api2.hbogoasia.com/onwards-widevine") || details.requestHeaders.includes("prepladder.com") || details.url.includes("scvm1sc0.anycast.nagra.com")) { if (details.url.includes("api2.hbogoasia.com/onwards-widevine") || details.requestHeaders.includes("prepladder.com") || details.url.includes("scvm1sc0.anycast.nagra.com") || details.url.includes("wvls/contentlicenseservice/v1/licenses") || details.url.includes("license.vdocipher.com/auth")) {
return { cancel: true }; return { cancel: true };
} }
} }
@ -153,4 +153,4 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
tabIDs[sender.tab.id] = tabIDs[sender.tab.id] || {}; tabIDs[sender.tab.id] = tabIDs[sender.tab.id] || {};
tabIDs[sender.tab.id] = {license_data: "", license_request: [], license_url: "", req_id: "", pssh: request}; tabIDs[sender.tab.id] = {license_data: "", license_request: [], license_url: "", req_id: "", pssh: request};
console.log(`PSSH:- ${tabIDs[sender.tab.id].pssh}`); console.log(`PSSH:- ${tabIDs[sender.tab.id].pssh}`);
}); });