Add manifest URL field, reset keys when manifest changes, organize repo, update to Manifest v3 #3

Open
voldemort wants to merge 26 commits from voldemort/CDRM-Extension:main into main
Showing only changes of commit f40e1880d6 - Show all commits

View File

@ -827,6 +827,7 @@ function handleDRMInterception(drmInfo, body, url, setBodyCallback, continueRequ
const method = (config.method || "GET").toUpperCase(); const method = (config.method || "GET").toUpperCase();
if (method === "POST" && config.body) { if (method === "POST" && config.body) {
logWithPrefix("[FETCH] Intercepting POST request to:", resource);
const drmInfo = detectDRMChallenge(config.body); const drmInfo = detectDRMChallenge(config.body);
const result = handleDRMInterception( const result = handleDRMInterception(
@ -860,6 +861,7 @@ function handleDRMInterception(drmInfo, body, url, setBodyCallback, continueRequ
XMLHttpRequest.prototype.send = function (body) { XMLHttpRequest.prototype.send = function (body) {
if (this._method && this._method.toUpperCase() === "POST" && body) { if (this._method && this._method.toUpperCase() === "POST" && body) {
logWithPrefix("[XHR] Intercepting POST request to:", this._url);
const drmInfo = detectDRMChallenge(body); const drmInfo = detectDRMChallenge(body);
const result = handleDRMInterception( const result = handleDRMInterception(