Hacker News new | ask | show | jobs
by Darkenetor 3203 days ago
Reimplementing whole classes wouldn't have been a problem, just replace the original ones with a proxy to a copy.

Luckily console.log calls are actually excluded from the callers stack, so the only way is to change console itself. Just as evil if you also intercept console methods logging and return the original ones, but less of a mess at least.