'Make "Selected Context Only" persist in Chrome DevTools console settings

I get a ton of misc errors from misc Chrome Extensions in my console. If I go to settings and check "Selected Context Only" then they go away and everything is good.

If I ever close that tab, or open a fresh Chrome window, "Selected Context Only" is unchecked again.

Is it possible to get this setting persisted forever and ever?



Solution 1:[1]

You can use the filter option as a workaround. For example I was able to hide warnings like 'DevTools failed to load SourceMap: Could not load content for...' with regex -/failed\sto\sload\ssource\smap/

enter image description here

Also you can find a documentation for filtering here https://developers.google.com/web/tools/chrome-devtools/console/reference#filter

Solution 2:[2]

Selecting the same option form settings (f1) worked for me

Solution 3:[3]

I have the same problem with chrome and brave browser. To avoid showing the error messages comming from webpack dev server like the following screenshot. I defined negative filter in Console to filter them out.

/^((?!sockjs).)*$/

enter image description here enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 llsanketll
Solution 3