是否有一个API可以让Google Chrome扩展读取网络资源请求活动?
在 Google Chrome 开发者窗口中,有一个“网络”选项卡,可显示网页随时间加载的所有资源。有没有办法在 Google Chrome 扩展程序中访问这些数据?
澄清:我想制作一个 Chrome 扩展程序,需要读取这些数据并根据读取的内容执行某些操作。所以我应该问,“是否有 Chrome 扩展 API 允许这样做?”
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?"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
右键单击网页,选择“检查元素”,选择网络选项卡然后刷新
Right click on the web page, select "Inspect Element", select the network tab then refresh
有实验性 API 用于访问网络资源。实验性意味着要使用它,用户需要在其设置中启用实验性 API 标志,而且您将无法将此类扩展提交到库。
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.