mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
for some reason we have to delete revokeObjectURL???
This commit is contained in:
parent
4dfa47a2bf
commit
797607aabb
2 changed files with 26 additions and 10 deletions
26
src/client/shared/antiantidebugger.ts
Normal file
26
src/client/shared/antiantidebugger.ts
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
client.Proxy("URL.revokeObjectURL", {
|
||||||
|
apply(ctx) {
|
||||||
|
ctx.return(undefined);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
|
@ -1,10 +0,0 @@
|
||||||
import { ScramjetClient } from "../client";
|
|
||||||
|
|
||||||
export default function (client: ScramjetClient) {
|
|
||||||
client.Proxy("console.clear", {
|
|
||||||
apply(ctx) {
|
|
||||||
// fuck you
|
|
||||||
ctx.return(undefined);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue