Fix plugins for new V2 User Profile Modal

This commit is contained in:
Nuckyz 2025-05-04 16:25:13 -03:00
parent b0b616d92a
commit 0a2d4a2ab2
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
6 changed files with 44 additions and 7 deletions

View file

@ -32,7 +32,15 @@ export default definePlugin({
},
// User Profile Modal
{
find: "action:\"PRESS_APP_CONNECTION\"",
find: ".connections,userId:",
replacement: {
match: /#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id),.{0,100}}\)}\),/,
replace: "$&,$self.FriendsSinceComponent({userId:$1,isSidebar:false}),"
}
},
// User Profile Modal v2
{
find: ".MODAL_V2,onClose:",
replacement: {
match: /#{intl::USER_PROFILE_MEMBER_SINCE}\),.{0,100}userId:(\i\.id),.{0,100}}\)}\),/,
replace: "$&,$self.FriendsSinceComponent({userId:$1,isSidebar:false}),"