Vencord/src/plugins/noTrack.ts

25 lines
644 B
TypeScript
Raw Normal View History

2022-08-29 16:05:22 -04:00
import definePlugin from "../utils/types";
export default definePlugin({
name: "NoTrack",
description: "Disable Discord's tracking and crash reporting",
author: "Cynosphere",
2022-08-30 22:07:16 -04:00
required: true,
2022-09-01 23:27:32 -04:00
patches: [
{
find: "TRACKING_URL:",
replacement: {
match: /=\(0,.\.analyticsTrackingStoreMaker\)/,
replace: "=(function(){})",
},
},
{
find: "window.DiscordSentry=",
replacement: {
match: /window\.DiscordSentry=\(0,.\.initSentry\)\(\)/,
replace: "",
}
2022-08-29 16:05:22 -04:00
}
2022-09-01 23:27:32 -04:00
]
});