better anti devtools; disable sourcemaps

main
Vendicated 2 years ago
parent 96fed019b8
commit a72dedb9aa
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3

@ -115,7 +115,7 @@ await Promise.all([
globPlugins,
gitHashPlugin
],
sourcemap: "inline",
sourcemap: false,
watch,
minify: false,
})

@ -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(){}}"
}
}]
});
Loading…
Cancel
Save