GoogleChrome / developer.chrome.com

The frontend, backend, and content source code for developer.chrome.com
https://developer.chrome.com
Other
1.66k stars 1.58k forks source link

Document how dNR replaces webRequestBlocking in MV2 #4286

Closed Hames0024 closed 1 year ago

Hames0024 commented 1 year ago

Hi, "webRequestBlocking" is supported in manifest v3? How can I declare it on "manifest.json"

jpmedley commented 1 year ago

In V3, blocking web requests are placed with declarative net requests. I know the documents are less than perfect, but we're working on them. In the meantime, feel free to send me questions. They'll help me with the improvement work. You can contact me through my GitHub profile.

Hames0024 commented 1 year ago

Thank you, Can you send me declarative net request example code? Add, update and remove rule...

I want to learn more from you.

Are you using telegram? I want to meet you on telegram. My id @S_Halli

Hames0024 commented 1 year ago

Is it possible modify post requestbody by using declarativeNetRequests? WebRequestBlocking is alived in several Extensions like "Tamper Extension". Do you know what their plan?

jpmedley commented 1 year ago

I don't use Telegram. I'd prefer you contact me through email. My address is on my GitHub profile.

It is not possible to modify requestbody using declarativeNetRequest. Can you tell me more about your use case? There might be another way to solve your problem.

I don't know the upgrade timelines for any specific extension. If a particular extension still uses webRequestBlocking, it's still on V2. Developer have until January 2024 to upgrade according to our timeline.

jpmedley commented 1 year ago

@IanStanion-google, can you please add a reference to the PR where you fixed this?

AmySteam commented 1 year ago

Fixed in #5473