aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/noTrack.ts
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-06 18:54:01 -0300
committerGitHub <noreply@github.com>2023-03-06 22:54:01 +0100
commit7322c3af047489e122b59b01825ba5473dc96a62 (patch)
tree6770f6166e793e48cdab55fd65ab9c88da331555 /src/plugins/noTrack.ts
parent36c27f1111d3a56536d21d2bbeade3f44da7eee0 (diff)
downloadVencord-7322c3af047489e122b59b01825ba5473dc96a62.tar.gz
Vencord-7322c3af047489e122b59b01825ba5473dc96a62.tar.bz2
Vencord-7322c3af047489e122b59b01825ba5473dc96a62.zip
Fix Crash Loops and prevent metrics (#580)
Diffstat (limited to 'src/plugins/noTrack.ts')
-rw-r--r--src/plugins/noTrack.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/noTrack.ts b/src/plugins/noTrack.ts
index 27ff430..617ab8b 100644
--- a/src/plugins/noTrack.ts
+++ b/src/plugins/noTrack.ts
@@ -38,6 +38,19 @@ export default definePlugin({
match: /window\.DiscordSentry=function.+\}\(\)/,
replace: "",
}
+ },
+ {
+ find: ".METRICS,",
+ replacement: [
+ {
+ match: /this\._intervalId.+?12e4\)/,
+ replace: ""
+ },
+ {
+ match: /(?<=increment=function\(\i\){)/,
+ replace: "return;"
+ }
+ ]
}
]
});