title: Chrome extensions - Other ways to read response bodies than chrome.devtools.network?
body: <p>I'd like to read (not modify) the response body for all requests that match some pattern in a Chrome extension. I'm currently using <a href="http://developer.chrome.com/extensions/devtools.network.html#event-onRequestFinished" rel="noreferrer">chrome.devtools.network.onRequestFinished</a>, which gives you a <code>Request</code> object with a <code>getContent()</code> method. This works just fine, but of course requires the devtools to be open for the extension to work. Ideally the extension would be a popup, but <a href="http://developer.chrome.com/extensions/webRequest.html#event-onCompleted" rel="noreferrer">chrome.webRequest.onCompleted</a> doesn't seem to give access to the response body. There is a <a href="http://code.google.com/p/chromium/issues/detail?id=104058" rel="noreferrer">feature request</a> to allow the webRequest API to <em>edit</em> response bodies - but can webRequest even read them? If not, is there any other way to read response bodies outside of devtools extensions?</p>