File size: 393 Bytes
bee6636 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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;
},
});
}
|