Vencord/src/plugins/noTrack.ts

25 lines
644 B
TypeScript
Raw Normal View History

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