Plugin

MoreQuickReactions

Increases the number of reactions available in the Quick React hover menu

Emotes Reactions Customisation Shortcuts
index.ts
Download

Source

src/plugins/moreQuickReactions/index.ts
1import { definePluginSettings } from "@api/Settings";
2import { Devs } from "@utils/constants";
3import definePlugin, { OptionType } from "@utils/types";
4
5const settings = definePluginSettings({
6 reactionCount: {
7 description: "Number of reactions (0-42)",
8 type: OptionType.NUMBER,
9 default: 5
10 },
11});
12
13export default definePlugin({
14 name: "MoreQuickReactions",
15 description: "Increases the number of reactions available in the Quick React hover menu",
16 authors: [Devs.iamme],
17 tags: ["Emotes", "Reactions", "Customisation", "Shortcuts"],
18 settings,
19
20 get reactionCount() {
21 return settings.store.reactionCount;
22 },
23
24 patches: [
25 {
26 find: "#{intl::MESSAGE_UTILITIES_A11Y_LABEL}",
27 replacement: {
28 match: /(?<=length>=3\?.{0,40})\.slice\(0,3\)/,
29 replace: ".slice(0,$self.reactionCount)"
30 }
31 }
32 ],
33});
34