74c3930e0a
* eslint * workflow * lint main
25 lines
637 B
TypeScript
25 lines
637 B
TypeScript
import definePlugin from "../utils/types";
|
|
import { Devs } from "../utils/constants";
|
|
|
|
export default definePlugin({
|
|
name: "NoTrack",
|
|
description: "Disable Discord's tracking and crash reporting",
|
|
authors: [Devs.Cyn],
|
|
required: true,
|
|
patches: [
|
|
{
|
|
find: "TRACKING_URL:",
|
|
replacement: {
|
|
match: /^.+$/,
|
|
replace: "()=>{}",
|
|
},
|
|
},
|
|
{
|
|
find: "window.DiscordSentry=",
|
|
replacement: {
|
|
match: /window\.DiscordSentry=function.+\}\(\)/,
|
|
replace: "",
|
|
}
|
|
}
|
|
]
|
|
});
|