'Chrome Extension: How to capture XHR responses without the use of the Debugger [duplicate]

I've checked this and this and none of them helped me, that's why I opened this question I'm trying to save all of the XHR Responses with a chrome extension for a certain website. There's a way to do this but it uses the Debugger, which I don't want to use.

I tried modifying window.XMLHttpRequest.prototype.send to log the responses but it seems like you can't modify the window object using a chrome extension.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source