From a452945ac899feca7d8c11add91d3a23b5ccb59d Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Thu, 19 Oct 2023 05:14:14 +0700 Subject: [PATCH] feat(plugin): NoTypingAnimation (#1680) --- src/plugins/noTypingAnimation/index.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/plugins/noTypingAnimation/index.ts diff --git a/src/plugins/noTypingAnimation/index.ts b/src/plugins/noTypingAnimation/index.ts new file mode 100644 index 00000000..d4aab900 --- /dev/null +++ b/src/plugins/noTypingAnimation/index.ts @@ -0,0 +1,21 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2023 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { Devs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +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" + } + }] +});