如何在Chrome DevTools的“网络”标签中添加否定过滤器? [英] How to add negative filter in network tab of Chrome DevTools?

查看:104
本文介绍了如何在Chrome DevTools的“网络”标签中添加否定过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在chrome网络开发工具中隐藏一些数据包。我有很多我想隐藏的olark电话:


p?j = olark-21408520578584&& c = polleven [... ]

p?j = olark-1408520582743& c = polleven [...]

p?j = olark-41408520586905&& c = polleven [... ]

p?j = olark-51408520591078&& c = polleven [...]

...


我应该在过滤器中写些什么来隐藏这些内容?
^ p?j = olark 不起作用,!p?j = olark 也不起作用p>

解决方案

请注意,您在谈论的是网络选项卡还是控制台选项卡:两种情况我都会回答。



网络标签



类似于



如果键入-,则会看到可供选择过滤的类型列表:





请注意,同时将资源名称过滤为包含减号的资源名称:





如果您键入一个单词,它将排除包含该单词的所有资源:





控制台选项卡



在(*)时不能使用减号运算符,但可以使用正则表达式。



例如排除单词 browser -同步我使用 ^((?! browser-sync)。)* $








(*)Chrome 44.0.2403.125


I would like to hide some packets in the Network developper tool of chrome. I am having a lot of olark calls that I would like to hide :

p?j=olark-21408520578584&&c=polleven[...]
p?j=olark-1408520582743&&c=polleven[...]
p?j=olark-41408520586905&&c=polleven[...]
p?j=olark-51408520591078&&c=polleven[...]
...

What should I write in the filter to hide those ? ^p?j=olark does not work, nor does !p?j=olark

解决方案

Note sure you're talking about the Network tab or the Console tab: I'll answer about both cases.

Network tab

Similar to Google's search operators, you can use the minus sign to filter out stuff in the network view, see the examples below.

Here you have the start network list:

If you type -, you'll see a list of types that you can select to filter:

Note that at the same time the resource names are filtered to those containing the minus sign:

For example you can filter out the GET requests:

:

If you instead type a word, it will exclude all resources containing that word:

Console tab

At the moment (*) you can't use the minus search operator, but you can use regular expressions.

For example to exclude the word browser-sync I use ^((?!browser-sync).)*$.


(*) Chrome 44.0.2403.125

这篇关于如何在Chrome DevTools的“网络”标签中添加否定过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆