mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-24 13:57:02 -04:00
forked!!
This commit is contained in:
parent
538b87062a
commit
ea7451bcdc
326 changed files with 24876 additions and 2280 deletions
30
src/equicordplugins/noModalAnimation/index.ts
Normal file
30
src/equicordplugins/noModalAnimation/index.ts
Normal file
|
@ -0,0 +1,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: "BackdropStyles:function(){",
|
||||
replacement: {
|
||||
match: /\?0:300/,
|
||||
replace: "?0:0",
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue