With this tiny script, Chrome/Firefox's console API won't break your code anymore.
Now you can use all of these without worrying about anything:
https://developer.chrome.com/devtools/docs/console-api
<script src="console-js/dist/console.min.js"></script>
console.debug('Do what you want.');
npm i -S console-js
var console = require('console-js');
console.debug('It works');