If they also did not delete it in the prototype, the log method using getPrototypeOf() should work:
console.log = Object.getPrototypeOf(console).log;
Since using console.log = function() {} overrides but does not delete the value defined in the prototype, you can remove the override method:
delete console.log
source share