From 3e732646e5ab83f76b34ec7fdb3d9d8c68faca8d Mon Sep 17 00:00:00 2001 From: V Date: Sat, 12 Aug 2023 05:27:59 +0200 Subject: Fix plugins broken by latest canary update (#1637) * Fix WebContextMenus * BetterGifAltText: futureproof find * Fix pronoundb profile patch * Fix NoScreensharePreview * Fix FakeNitro emote text patch --------- Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com> --- src/plugins/pronoundb/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/pronoundb/index.ts') diff --git a/src/plugins/pronoundb/index.ts b/src/plugins/pronoundb/index.ts index 8605869..52fefdc 100644 --- a/src/plugins/pronoundb/index.ts +++ b/src/plugins/pronoundb/index.ts @@ -68,7 +68,8 @@ export default definePlugin({ find: ".USER_PROFILE_ACTIVITY", replacement: [ { - match: /getGlobalName\(\i\);(?<=displayProfile.{0,200})/, + /* FIXME: old name is getGlobalName, new name is getName. Remove optional Global once stable has also migrated */ + match: /\.get(?:Global)?Name\(\i\);(?<=displayProfile.{0,200})/, replace: "$&const [vcPronounce,vcPronounSource]=$self.useProfilePronouns(arguments[0].user.id,true);if(arguments[0].displayProfile&&vcPronounce)arguments[0].displayProfile.pronouns=vcPronounce;" }, PRONOUN_TOOLTIP_PATCH -- cgit