Rui
Rui

Reputation: 31

How to filter http requests by chrome extension

I am working on creating an chrome extension to filter http requests. That means when request an URL, chrome extension can filter some object requests and do not send them to web server. I searched for a while, did not find a solution in chrome.* API. Does anyone know ifGoogle chrome support this, or is there any way to accomplish this function?

Upvotes: 3

Views: 2492

Answers (1)

Wladimir Palant
Wladimir Palant

Reputation: 57651

There is webRequest API. At the moment it is still experimental but will apparently become stable with Chrome 17 (can be tested in Canary builds). There the API is called chrome.webRequest rather than chrome.experimental.webRequest and requires webRequest permission (plus webRequestBlocking if you want to block requests). Other than that the current documentation is correct.

Upvotes: 2

Related Questions