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",
|
2022-09-02 10:15:47 -04:00
|
|
|
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
|
|
|
]
|
|
|
|
});
|