mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 09:57:08 -04:00
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>
This commit is contained in:
parent
d5b3b51050
commit
3e732646e5
6 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue