Can you silence errors and warnings from external js scripts?

Viewed 1269

I have no choice but to use some ancient js lib provided by a client. So no way I can fix the errors, and no way I can find a better solution. The source is unalterable.

Given that scenario, is there any way I can suppress the warnings or errors from that external library? Even if it is something like they had a console log somewhere in there. I'd like to prevent this script from flooding my console with unnecessary information.

Anyone dealt with that before?

1 Answers
Related