Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an API for making a Google Chrome extension that reads the network resource request activity?

In the Google Chrome developer window, there is a Network tab that shows you all the resources that a web page loads over time. Is there a way to access this data in a Google Chrome extension?

CLARIFICATION: I want to make a Chrome extension that needs to read this data and do something based on what it reads. So I should have asked, "is there a Chrome Extension API that allows this?"

like image 762
dan Avatar asked Apr 17 '11 09:04

dan


People also ask

Is there an API for Chrome?

The Chrome Management API is a suite of services that allows administrators to programmatically view, manage, and get insights about policies and usage of ChromeOS devices and Chrome browsers in their organization.

Can Chrome extensions make HTTP requests?

When building a Chrome extension, you can make cross-site XMLHttpRequests via Content Scripts or the Background Page. Content Scripts is JavaScript that can get injected into a webpage and can manipulate the page's DOM.

Can Chrome extensions read data?

By default, the permission to 'read and change site data' is given to an extension for any website you visit in the browser. But thankfully, Chrome allows you to change it and limit it to either specific websites, or only allow the extension to access your data when you click on the extension's icon.


1 Answers

There is experimental API for accessing network resources. Being experimental means that to use it users need to enable experimental API flag in their settings, plus you won't be able to submit such extension to the gallery.

like image 153
serg Avatar answered Oct 27 '22 20:10

serg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!