Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Missing dynamic override response content capability #1164

Closed
katopz opened this issue May 18, 2024 · 1 comment
Closed

[Question]: Missing dynamic override response content capability #1164

katopz opened this issue May 18, 2024 · 1 comment

Comments

@katopz
Copy link

katopz commented May 18, 2024

I want to modify requested js from webpage and it seem to be possible via manifest v2 by using webRequestBlocking and onBeforeRequest.

but after manifest v3 the docs said I have to migrate to declarativeNetRequest and rule.json which
provide only static redirect by fixed rules without modification response content capabilities.

So the question is in manifest v3 how can I intercept js + modified it then let the webpage consume modified one (dynamically)?

Thanks

@oliverdunk
Copy link
Member

Hi @katopz, did you have an approach that was working in Manifest V2? Using the webRequest API and the blocking option you can cancel requests but you aren't able to modify the response body.

One option you could look at is using Declarative Net Request to redirect the request to an extension page.

I'm going to close this since this is the issue tracker for our samples repository, but feel free to ask any follow up questions in the mailing list.

@oliverdunk oliverdunk closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants