Spoof JavaScript Debugging Of Your Secret Methods Code - toString/toSource Override

Posted at

Simple as pie, this is quite generic (all of the Function type will show "I'm native, a.k.a unmodified...",

Function.prototype.toSource = Function.prototype.toString = function toSource(){
 return '[native code]'
}