diff --git a/src/plugins/moreQuickReactions/README.md b/src/plugins/moreQuickReactions/README.md new file mode 100644 index 000000000..fb94a9db9 --- /dev/null +++ b/src/plugins/moreQuickReactions/README.md @@ -0,0 +1,7 @@ +# MoreQuickReactions + +Increases the number of reactions available in the Quick React hover menu. + +You can change the number of reactions shown in the plugin settings. + +![](https://github.com/user-attachments/assets/957defe3-509f-4e1c-8dd8-b1bdfdf74172) diff --git a/src/plugins/moreQuickReactions/index.ts b/src/plugins/moreQuickReactions/index.ts new file mode 100644 index 000000000..9b8e7b761 --- /dev/null +++ b/src/plugins/moreQuickReactions/index.ts @@ -0,0 +1,38 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2025 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { definePluginSettings } from "@api/Settings"; +import { Devs } from "@utils/constants"; +import definePlugin, { OptionType } from "@utils/types"; + +const settings = definePluginSettings({ + reactionCount: { + description: "Number of reactions (0-42)", + type: OptionType.NUMBER, + default: 5 + }, +}); + +export default definePlugin({ + name: "MoreQuickReactions", + description: "Increases the number of reactions available in the Quick React hover menu", + authors: [Devs.iamme], + settings, + + get reactionCount() { + return settings.store.reactionCount; + }, + + patches: [ + { + find: "#{intl::MESSAGE_UTILITIES_A11Y_LABEL}", + replacement: { + match: /(?<=length>=3\?.{0,40})\.slice\(0,3\)/, + replace: ".slice(0,$self.reactionCount)" + } + } + ], +}); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index e864c651e..85a1e79af 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -489,6 +489,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({ name: "Sqaaakoi", id: 259558259491340288n }, + iamme: { + name: "i am me", + id: 984392761929256980n + }, Byeoon: { name: "byeoon", id: 1167275288036655133n