SMYN: Patch Fixes. (#641)
* Fixes. * Remove deprecated patches. * Remove leftover.
This commit is contained in:
parent
73679c6b77
commit
fd25533331
1 changed files with 3 additions and 21 deletions
|
|
@ -921,8 +921,8 @@ export default definePlugin({
|
|||
// Attach the group ID to their messages to allow animating gradients within a group.
|
||||
find: "CUSTOM_GIFT?\"\":",
|
||||
replacement: {
|
||||
match: /(\(\i,\i,\i\);)(let \i=\i.id===\i(?:.{0,500}?)hovering:(\i))/,
|
||||
replace: "$1arguments[0].message.showMeYourNameGroupId=!!arguments[0].groupId?`g-${arguments[0].groupId}`:null;$self.handleHoveringMessage(arguments[0].message,$3);$2"
|
||||
match: /(isHovered:(\i).{0,1300}?\(\i,\i,\i\);)(let \i=\i.id===\i)/,
|
||||
replace: "$1arguments[0].message.showMeYourNameGroupId=!!arguments[0].groupId?`g-${arguments[0].groupId}`:null;$self.handleHoveringMessage(arguments[0].message,$2);$3"
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -965,24 +965,6 @@ export default definePlugin({
|
|||
replace: "$1showMeYourNameNickname:$2=$self.getMemberListProfilesReactionsVoiceNameText({...arguments[0],type:\"profilesPopout\"})??(arguments[0].nickname)"
|
||||
},
|
||||
},
|
||||
{
|
||||
// Tags *should* contain the guild ID nested in its structure, but on the first time
|
||||
// loading a guild member's preview profile, it will be undefined. This patch bypasses
|
||||
// that by passing the guild ID as its own prop.
|
||||
find: "\"UserProfilePopoutBody\"}",
|
||||
replacement: {
|
||||
match: /(pronouns,tags:)/,
|
||||
replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:"
|
||||
}
|
||||
},
|
||||
{
|
||||
// Same as above, but for bot members.
|
||||
find: "popularApplicationCommandIds)!=null&&null",
|
||||
replacement: {
|
||||
match: /(pronouns,tags:)/,
|
||||
replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:"
|
||||
}
|
||||
},
|
||||
{
|
||||
// Replace names in the profile tooltip for switching between guild and global profiles.
|
||||
// You must open a profile modal before the code this is patching will be searchable.
|
||||
|
|
@ -1013,7 +995,7 @@ export default definePlugin({
|
|||
replacement: [
|
||||
{
|
||||
// Replace names in reaction popouts.
|
||||
match: /children:(\[null!=(?:.{0,300}?)forceUsername:!0}\)\])/,
|
||||
match: /children:(null!=(?:.{0,300}?)children:\i}\))/,
|
||||
replace: "style:{\"overflow\":\"visible\"},children:($self.getMemberListProfilesReactionsVoiceNameElement({user:arguments[0].user,guildId:arguments[0].guildId,type:\"reactionsPopout\"}))??($1)"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue