I know that it is easy to intercept a function in js, among other things:
console.log = (function () {
var log = console.log;
return function () {
alert(arguments);
log.apply(console, arguments);
})();
but is there a way to wrap console.log so that when calling the user
console.log("hi")
does the random.js source appear in the console, and not the capture location?
source
share