aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.mjs2
-rw-r--r--src/plugins/STFU.ts12
2 files changed, 9 insertions, 5 deletions
diff --git a/build.mjs b/build.mjs
index 8b97e88..6bdeffa 100755
--- a/build.mjs
+++ b/build.mjs
@@ -115,7 +115,7 @@ await Promise.all([
globPlugins,
gitHashPlugin
],
- sourcemap: "inline",
+ sourcemap: false,
watch,
minify: false,
})
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