Plugin
NoModalAnimation
Remove the 300ms long animation when opening or closing modals
1
/*2
* FiveCord — a Discord client mod3
* Copyright (c) 2025 FiveCord4
* SPDX-License-Identifier: GPL-3.0-or-later5
*/6
7
import { Devs } from "@utils/constants";8
import definePlugin from "@utils/types";9
10
export 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