From 7322c3af047489e122b59b01825ba5473dc96a62 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Mon, 6 Mar 2023 18:54:01 -0300 Subject: Fix Crash Loops and prevent metrics (#580) --- src/plugins/noTrack.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/plugins/noTrack.ts') 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;" + } + ] } ] }); -- cgit