diff options
author | Vendicated <vendicated@riseup.net> | 2023-03-31 05:55:17 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-03-31 05:55:25 +0200 |
commit | efd99276961ffeaf9440521f2a902ee4f9b5f5ed (patch) | |
tree | 7df7c9a98c45fc929a782b9e8648a99e99f7087a /src/plugins | |
parent | c86a34a15d189c67ce8edd2f23aec37f2440d07c (diff) | |
download | Vencord-efd99276961ffeaf9440521f2a902ee4f9b5f5ed.tar.gz Vencord-efd99276961ffeaf9440521f2a902ee4f9b5f5ed.tar.bz2 Vencord-efd99276961ffeaf9440521f2a902ee4f9b5f5ed.zip |
Fix broken plugins
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/apiMessagePopover.ts | 6 | ||||
-rw-r--r-- | src/plugins/pronoundb/index.ts | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/apiMessagePopover.ts b/src/plugins/apiMessagePopover.ts index a17cac3..be4b639 100644 --- a/src/plugins/apiMessagePopover.ts +++ b/src/plugins/apiMessagePopover.ts @@ -22,12 +22,12 @@ import definePlugin from "@utils/types"; export default definePlugin({ name: "MessagePopoverAPI", description: "API to add buttons to message popovers.", - authors: [Devs.KingFish, Devs.Ven], + authors: [Devs.KingFish, Devs.Ven, Devs.Nuckyz], patches: [{ find: "Messages.MESSAGE_UTILITIES_A11Y_LABEL", replacement: { - // foo && !bar ? createElement(blah,...makeElement(addReactionData)) - match: /\i&&!\i\?\(0,\i\.jsxs?\)\(.{0,200}renderPopout:.{0,300}?(\i)\(.{3,20}\{key:"add-reaction".+?\}/, + // foo && !bar ? createElement(reactionStuffs)... createElement(blah,...makeElement(reply-other)) + match: /\i&&!\i\?\(0,\i\.jsxs?\)\(.{0,200}renderEmojiPicker:.{0,500}\?(\i)\(\{key:"reply-other"/, replace: (m, makeElement) => { const msg = m.match(/message:(.{1,3}),/)?.[1]; if (!msg) throw new Error("Could not find message variable"); diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts index 5587191..59ade8d 100644 --- a/src/plugins/pronoundb/index.ts +++ b/src/plugins/pronoundb/index.ts @@ -63,8 +63,8 @@ export default definePlugin({ { find: ".Messages.USER_POPOUT_PRONOUNS", replacement: { - match: /\i\.\i\.useExperiment\({}\)\.showPronouns/, - replace: "true" + match: /\.showPronouns/, + replace: ".showPronouns||true" } } ], |