blob: 49f542e6a0ca13eced48906db247ae3b95fd7184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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: "",
}
}
]
});
|