是否可以在 Chrome 网络检查器网络选项卡中隐藏扩展资源? [英] Is it possible to hide extension resources in the Chrome web inspector network tab?
问题描述
当我在 Chrome 网络检查器中查看页面的下载资源时,我还会看到某些扩展程序请求的 HTML/JS/CSS.
When I'm viewing the downloaded resources for a page in the Chrome web inspector, I also see the HTML/JS/CSS requested by certain extensions.
在上面的例子中,indicator.html
、indicator.js
和 indicator.css
实际上是 可读性 Chrome 扩展,不是我的应用程序的一部分.
In the example above, indicator.html
, indicator.js
and indicator.css
are actually part of the Readability Chrome extension, not part of my app.
在这种特殊情况下这没什么大不了的,但是在更复杂的页面上并且安装了多个扩展程序时,它会变得非常拥挤!
This isn't too big a deal in this particular situation, but on a more complex page and with several extensions installed, it can get quite crowded in there!
我想知道是否有办法从这个列表中过滤掉任何与扩展相关的资源(即任何使用 chrome-extension://
协议的请求).
I was wondering if there was a way to filter out any extension-related resources from this list (i.e. any requests using the chrome-extension://
protocol).
有谁知道我是如何做到这一点的?
Does anyone know how I could achieve this?
推荐答案
不是我想要的完全解决方案(我更喜欢全局设置),但现在有一种过滤方法来自扩展的请求,正如一位评论者提到的我最初的问题打开.
Not quite the solution I was after (I'd have preferred a global setting), but there is now a way to filter out requests from extensions, as mentioned by a commenter on the issue I originally opened.
在网络标签过滤框中,输入字符串-scheme:chrome-extension
(如下图):
In the network tab filter box, enter the string -scheme:chrome-extension
(as shown below):
这是区分大小写的,所以请确保它是小写的.这样做将隐藏扩展程序请求的所有资源.
This is case-sensitive, so make sure it's lowercase. Doing this will hide all resources which were requested by extensions.
这篇关于是否可以在 Chrome 网络检查器网络选项卡中隐藏扩展资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!