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):
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