mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
23 lines
620 B
TypeScript
23 lines
620 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: ".GIFPickerResultTypes.SEARCH",
|
|
replacement: [{
|
|
match: /(?<="state",{resultType:)null/,
|
|
replace: '"Favorites"'
|
|
}]
|
|
}
|
|
]
|
|
});
|