How to add negative filter in network tab of Chrom

2020-08-12 06:21发布

问题:

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

回答1:

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



回答2:

It seems as though the feature you are asking about is not supported on chrome.

See: https://code.google.com/p/chromium/issues/detail?id=133733

Which is tracking a feature request for the functionality that you mention.