Plugin

NoModalAnimation

Remove the 300ms long animation when opening or closing modals

index.ts
Download

Source

src/plugins/noModalAnimation/index.ts
1/*
2 * FiveCord — a Discord client mod
3 * Copyright (c) 2025 FiveCord
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7import { Devs } from "@utils/constants";
8import definePlugin from "@utils/types";
9
10export default definePlugin({
11 name: "NoModalAnimation",
12 description: "Remove the 300ms long animation when opening or closing modals",
13 authors: [Devs.FiveCord],
14 patches: [
15 {
16 find: ".rootWithShadow",
17 replacement: {
18 match: /\?300:100/,
19 replace: "?0:0",
20 }
21 },
22 {
23 find: "BackdropStyles:function(){",
24 replacement: {
25 match: /\?0:300/,
26 replace: "?0:0",
27 }
28 }
29 ]
30});
31