While you patch functions like console.clear it is still detectable that it's been patched via its toString() call and that a built-in function has a .prototype
You can prevent this by replacing the toString function of any Proxies with a fake
function clear() {
[native code]
}
Then of course, deleting its prototype too.
delete console.clear.prototype;
delete console.clear.toString.prototype;
While you patch functions like
console.clearit is still detectable that it's been patched via itstoString()call and that a built-in function has a.prototypeYou can prevent this by replacing the toString function of any Proxies with a fake
Then of course, deleting its prototype too.