44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
/*
|
|
* 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: "DURATION_IN:",
|
|
replacement: {
|
|
match: /300,/,
|
|
replace: "0,",
|
|
}
|
|
},
|
|
{
|
|
find: 'backdropFilter:"blur(0px)"',
|
|
replacement: {
|
|
match: /\?0:200/,
|
|
replace: "?0:0",
|
|
}
|
|
},
|
|
{
|
|
find: '="ABOVE"',
|
|
replacement: {
|
|
match: /:300/,
|
|
replace: ":0",
|
|
}
|
|
},
|
|
{
|
|
find: "renderLurkerModeUpsellPopout,position:",
|
|
replacement: {
|
|
match: /(\i)=(200|300)/g,
|
|
replace: "$1=0",
|
|
},
|
|
}
|
|
]
|
|
});
|