Fix NoTrack

This commit is contained in:
Vendicated 2023-10-25 14:56:20 +02:00 committed by V
parent 2a56081bc2
commit 69b54535c3

@ -24,9 +24,9 @@ export default definePlugin({
description: "Disable Discord's tracking ('science'), metrics and Sentry crash reporting", description: "Disable Discord's tracking ('science'), metrics and Sentry crash reporting",
authors: [Devs.Cyn, Devs.Ven, Devs.Nuckyz, Devs.Arrow], authors: [Devs.Cyn, Devs.Ven, Devs.Nuckyz, Devs.Arrow],
required: true, required: true,
patches: true ? [] : [ patches: [
{ {
find: "TRACKING_URL:", find: "AnalyticsActionHandlers.handle",
replacement: { replacement: {
match: /^.+$/, match: /^.+$/,
replace: "()=>{}", replace: "()=>{}",
@ -43,8 +43,8 @@ export default definePlugin({
find: ".METRICS,", find: ".METRICS,",
replacement: [ replacement: [
{ {
match: /this\._intervalId.+?12e4\)/, match: /this\._intervalId=/,
replace: "" replace: "this._intervalId=undefined&&"
}, },
{ {
match: /(?<=increment=function\(\i\){)/, match: /(?<=increment=function\(\i\){)/,