for some reason we have to delete revokeObjectURL???

This commit is contained in:
velzie 2024-10-12 10:58:33 -04:00
parent 4dfa47a2bf
commit 797607aabb
2 changed files with 26 additions and 10 deletions

View 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);
},
});
}