Vencord/src/plugins/noTrack.ts
2022-09-27 14:34:57 +02:00

25 lines
595 B
TypeScript

import definePlugin from "../utils/types";
export default definePlugin({
name: "NoTrack",
description: "Disable Discord's tracking and crash reporting",
author: "Cynosphere",
required: true,
patches: [
{
find: "TRACKING_URL:",
replacement: {
match: /^.+$/,
replace: "()=>{}",
},
},
{
find: "window.DiscordSentry=",
replacement: {
match: /window\.DiscordSentry=function.+\}\(\)/,
replace: "",
}
}
]
});