aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/STFU.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-07 15:38:50 +0200
committerVendicated <vendicated@riseup.net>2022-09-07 15:38:50 +0200
commita72dedb9aabe12978527bbc346089f12dfe848ee (patch)
tree01cdc8bd9fc6c6a99083baf43091d0fb1cd5fdad /src/plugins/STFU.ts
parent96fed019b876a441d5bca958d8682057dd9ca36f (diff)
downloadVencord-a72dedb9aabe12978527bbc346089f12dfe848ee.tar.gz
Vencord-a72dedb9aabe12978527bbc346089f12dfe848ee.tar.bz2
Vencord-a72dedb9aabe12978527bbc346089f12dfe848ee.zip
better anti devtools; disable sourcemaps
Diffstat (limited to 'src/plugins/STFU.ts')
-rw-r--r--src/plugins/STFU.ts12
1 files changed, 8 insertions, 4 deletions
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