-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoModalAnimation.ts
More file actions
30 lines (28 loc) · 761 Bytes
/
Copy pathnoModalAnimation.ts
File metadata and controls
30 lines (28 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 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: "NoModalAnimation",
description: "Remove the 300ms long animation when opening or closing modals",
authors: [Devs.AutumnVN],
patches: [
{
find: ".rootWithShadow",
replacement: {
match: /\?300:100/,
replace: "?0:0",
}
},
{
find: 'backdropFilter:"blur(0px)"',
replacement: {
match: /\?0:300/,
replace: "?0:0",
}
}
]
});