19

I would like to hide some packets in the Network tab of Chrome DevTools. 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 these? ^p?j=olark does not work, nor does !p?j=olark.

SuperStormer
  • 4,997
  • 5
  • 25
  • 35
Dionys
  • 3,083
  • 1
  • 19
  • 28
  • Does this answer your question? [Is there a way to filter network requests using Google Chrome developer tools?](https://stackoverflow.com/questions/14637278/is-there-a-way-to-filter-network-requests-using-google-chrome-developer-tools) – SuperStormer May 23 '23 at 05:41

2 Answers2

29

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:

enter image description here

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

enter image description here

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

enter image description here

For example you can filter out the GET requests:

enter image description here:

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

enter image description here

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).)*$.

enter image description here


(*) Chrome 44.0.2403.125

mindrones
  • 1,173
  • 11
  • 15
  • 3
    With Chrome 60 there is no checkbox 'Regex' anymore so you'd have to add an opening and closing forward slash to your filter expression to trigger RegEx filtering: `/^((?!browser-sync).)*$/` – robro Aug 16 '17 at 07:43
  • @robro on Chrome 60.0.3112.101 (OSX) `/^((?!browser-sync).)*$` is not working for me. It is hiding all logs. Instead I had to use `/^((?!browser-sync).)*$/` (trailing `/` as well) – Jason Axelson Aug 18 '17 at 22:02
  • @JasonAxelson which is exactly why there is a trailing `/` in my comment ;) – robro Aug 21 '17 at 07:40
  • Haha, I must've missed that character while copy and pasting! – Jason Axelson Aug 22 '17 at 17:49
  • Ahh to bad they don't support ! (not) I was doing like `!status-code:200` as trying to only see errors in an ocean of request.. but this helps me. Thanks!!!! – Piotr Kula Jun 03 '20 at 14:17
-3

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.