Manifest V3: declarativeNetRequest how to get parameter from URL and redirect the URL follow that parameter?

Skip to first unread message

Ngoc Duc Huynh

May 13, 2022, 7:59:12 PMMay 13
to Chromium Extensions
- Hi, on Facebook when click to external request it will go to URL something like this:
- In manifest V2 I simply get URL parameter and then close the tab( and open a new tab which URL is URL parameter I get and increase the totalBlocking value by 1 in, in manifest v3 I check the docs about declarativeNetRequest but don't know how to make this work


May 14, 2022, 12:00:00 AMMay 14
to Chromium Extensions,
You could have used regexFilter + regexSubstitution as shown in examples from the documentation, but the problem is that the `url` parameter is percent-encoded:

AFAICT, declarativeNetRequest can't decode it automatically and we can't do it using regexSubstitution either.
Consider adding a feature request on
Reply all
Reply to author
0 new messages