Tuesday 15 June 2010

javascript - How can I get all HTTP requests of a web page by using Chrome Extension API -


I know that I can get all the HTTP requests in DevTool, but now I want to get them in Chrome extension . Which API can work this?

You must be looking at tab id basis.

Something like this ( "webRequest" permission and "all_urls" requires host permission):

< Pre> Chrome.webRequest.onBeforeRequest.addListener (function) {// do something with details}, {tabId: / * ... * /, urls: "& lt; all_urls" gt; "} );

PS I saw my second question about resources; Note that you can filter the request further by type, e.g. "stylesheet"


No comments:

Post a Comment