From a72dedb9aabe12978527bbc346089f12dfe848ee Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 7 Sep 2022 15:38:50 +0200 Subject: better anti devtools; disable sourcemaps --- src/plugins/STFU.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/plugins/STFU.ts') diff --git a/src/plugins/STFU.ts b/src/plugins/STFU.ts index 63dd7ef..d154b4f 100644 --- a/src/plugins/STFU.ts +++ b/src/plugins/STFU.ts @@ -2,9 +2,13 @@ import definePlugin from "../utils/types"; export default definePlugin({ name: "STFU", - description: "Disabled the fat warning in the DevTools console", + description: "Disables the 'HOLD UP' banner in the console", author: "Vendicated", - start() { - window.DiscordNative.window.setDevtoolsCallbacks(null, null); - } + patches: [{ + find: "setDevtoolsCallbacks", + replacement: { + match: /\.default=function.+$/s, + replace: ".default=function(){}}" + } + }] }); \ No newline at end of file -- cgit