Reapply "Canary Fixes"

This reverts commit 864457d983.
This commit is contained in:
thororen1234 2025-04-14 23:23:07 -04:00
parent 5fe2dc34bf
commit bafbc79601
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
find: '"UserProfilePopoutBody"',
find: "hasAvatarForGuild(null",
replacement: {
match: /(?<=(\i)\.id\)\}\)\),(\i).*?)\(0,.{0,100}\i\.id,onClose:\i\}\)/,
replace: "$self.showAllActivitiesComponent({ activity: $2, user: $1 })"

View file

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

View file

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