better anti devtools; disable sourcemaps
This commit is contained in:
parent
96fed019b8
commit
a72dedb9aa
@ -115,7 +115,7 @@ await Promise.all([
|
|||||||
globPlugins,
|
globPlugins,
|
||||||
gitHashPlugin
|
gitHashPlugin
|
||||||
],
|
],
|
||||||
sourcemap: "inline",
|
sourcemap: false,
|
||||||
watch,
|
watch,
|
||||||
minify: false,
|
minify: false,
|
||||||
})
|
})
|
||||||
|
@ -2,9 +2,13 @@ import definePlugin from "../utils/types";
|
|||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "STFU",
|
name: "STFU",
|
||||||
description: "Disabled the fat warning in the DevTools console",
|
description: "Disables the 'HOLD UP' banner in the console",
|
||||||
author: "Vendicated",
|
author: "Vendicated",
|
||||||
start() {
|
patches: [{
|
||||||
window.DiscordNative.window.setDevtoolsCallbacks(null, null);
|
find: "setDevtoolsCallbacks",
|
||||||
}
|
replacement: {
|
||||||
|
match: /\.default=function.+$/s,
|
||||||
|
replace: ".default=function(){}}"
|
||||||
|
}
|
||||||
|
}]
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user