2024-01-15 22:00:41 -05:00
|
|
|
/*
|
|
|
|
* 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: [
|
|
|
|
{
|
2024-06-18 22:36:21 -04:00
|
|
|
find: '"state",{resultType:',
|
2024-01-15 22:00:41 -05:00
|
|
|
replacement: [{
|
2024-03-28 08:40:48 -04:00
|
|
|
match: /(?<="state",{resultType:)null/,
|
|
|
|
replace: '"Favorites"'
|
2024-01-15 22:00:41 -05:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|