I have an adblocker installed, which means that whenever I open up Chrome's console I'm greeted by dozens of net::ERR_BLOCKED_BY_CLIENT
entries.
I can filter them out with something like ^((?!net::ERR_BLOCKED_BY_CLIENT).)+$
, but filters are not persisted, so I have to do this constantly.
Is there a more permanent solution available, such as saving console filters or maybe a config/preference that can be edited?
To make things simpler, Chrome only shows you the local resources (so you don't get confused on as to whether you are editing the local or the network resource). To save your changes, press CTRL + S when editing the file.
Filter by log level For example, console. log() is an Info -level message, but console. error() is an Error -level message. To filter messages in the Console, use the Log Level dropdown menu.
If it's the Sources panel, you can manually enable or disable pretty-printing by clicking Format. In general, if you see that icon anywhere, clicking it will enable or disable pretty-printing. Save this answer.
You can filter them by checking "Hide network messages". You will be able to see responses in the Network tab still. I'm not aware of any built in features to save specifc filters unfortunately.
In many cases, you can hide/modify logs and errors by re-defining the Console API functions using Snippets. However, in this case, the error is not logged from the page itself, so it won't help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With