I’m currently migrating a browser extension from Manifest v2 to Manifest v3. Among other things, the extension creates an iFrame of the currently open page, but it blocks a specific script within the iFrame.
I was able to achieve this well in v2 by using chrome.webRequest.onBeforeRequest.addListener
and checking if details.url.includes("abcd.js") && details.frameId !== 0
was true, and then blocking the request if the condition was met.
In Manifest v3, I need to somehow transfer this to declarative_net_request
, but I can’t find a way that worked 🙁
Does anyone have an idea or even a solution?
2