Vencord/src/plugins/noTrack.ts
2022-10-01 02:27:28 +02:00

26 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: "",
}
}
]
});