From 8ebfd9a19073037ed8c714ddb429b6ced8ed09c0 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Mon, 1 Sep 2025 20:53:38 -0300 Subject: [PATCH] NoTypingAnimation: Fix not working due to broken patches --- src/plugins/noTypingAnimation/index.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/plugins/noTypingAnimation/index.ts b/src/plugins/noTypingAnimation/index.ts index d4aab900..74bcdd50 100644 --- a/src/plugins/noTypingAnimation/index.ts +++ b/src/plugins/noTypingAnimation/index.ts @@ -11,11 +11,13 @@ export default definePlugin({ name: "NoTypingAnimation", authors: [Devs.AutumnVN], description: "Disables the CPU-intensive typing dots animation", - patches: [{ - find: "dotCycle", - replacement: { - match: /document.hasFocus\(\)/, - replace: "false" + patches: [ + { + find: "dotCycle", + replacement: { + match: /focused:(\i)/g, + replace: (_, focused) => `_focused:${focused}=false` + } } - }] + ] });