Equicord/src/plugins/betterGifPicker/index.ts
sadan4 3d4cf25659
fix remaining things broken by recent Discord update (#3966)
Co-authored-by: V <vendicated@riseup.net>
Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com>
2026-02-05 22:50:16 +01:00

29 lines
794 B
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: "BetterGifPicker",
description: "Makes the gif picker open the favourite category by default",
authors: [Devs.Samwich],
patches: [
{
find: "renderHeaderContent(){",
replacement: [
{
match: /(?<="state",{resultType:)null/,
replace: '"Favorites"'
},
{
match: /(?<=state={resultType:)null/,
replace: '"Favorites"'
}
]
}
]
});