Vencord/src/plugins/noTrack.ts
Ven 74c3930e0a
add eslint config (#53)
* eslint

* workflow

* lint main
2022-10-06 00:42:58 +02:00

26 lines
637 B
TypeScript

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