scramjet / src /client /shared /antiantidebugger.ts
soiz1's picture
Upload 150 files
bee6636 verified
raw
history blame contribute delete
393 Bytes
import { ScramjetClient } from "../client";
export default function (client: ScramjetClient) {
client.Proxy("console.clear", {
apply(ctx) {
// fuck you
ctx.return(undefined);
},
});
const log = console.log;
client.Trap("console.log", {
set(_ctx, _v) {
// is there a legitimate reason to let sites do this?
},
get(_ctx) {
return log;
},
});
}