Canary Fixes

This commit is contained in:
thororen1234 2025-04-14 23:05:42 -04:00
parent f4193076fa
commit 9d2da2a87e
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View file

@ -44,7 +44,7 @@ export default definePlugin({
}, },
{ {
// Show all activities in the user popout/sidebar // Show all activities in the user popout/sidebar
find: '"UserProfilePopoutBody"', find: "hasAvatarForGuild(null",
replacement: { replacement: {
match: /(?<=(\i)\.id\)\}\)\),(\i).*?)\(0,.{0,100}\i\.id,onClose:\i\}\)/, match: /(?<=(\i)\.id\)\}\)\),(\i).*?)\(0,.{0,100}\i\.id,onClose:\i\}\)/,
replace: "$self.showAllActivitiesComponent({ activity: $2, user: $1 })" replace: "$self.showAllActivitiesComponent({ activity: $2, user: $1 })"

View file

@ -83,7 +83,7 @@ export default definePlugin({
] ]
}, },
{ {
find: "UserProfileModalHeaderActionButtons", find: "#{intl::OUTGOING_FRIEND_REQUEST}",
replacement: [ replacement: [
{ {
match: /(?<=return \i)\|\|(\i)===.*?.FRIEND/, match: /(?<=return \i)\|\|(\i)===.*?.FRIEND/,

View file

@ -19,7 +19,8 @@ export default definePlugin({
replacement: { replacement: {
match: /header,children:\[.*?\{\}\)/, match: /header,children:\[.*?\{\}\)/,
replace: "$&,$self.FriendCodesPanel" replace: "$&,$self.FriendCodesPanel"
} },
noWarn: true,
} }
], ],