Fix ShowConnections & FriendsSince patches

main
Nuckyz 5 months ago
parent 2b565fed25
commit 7ccd073506
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -36,7 +36,7 @@ export default definePlugin({
{ {
find: ".UserPopoutUpsellSource.PROFILE_PANEL,", find: ".UserPopoutUpsellSource.PROFILE_PANEL,",
replacement: { replacement: {
match: /\i.default,\{userId:(\i)}\)/, match: /\i.default,\{userId:([^,]+?)}\)/,
replace: "$&,$self.friendsSince({ userId: $1 })" replace: "$&,$self.friendsSince({ userId: $1 })"
} }
}, },

@ -182,7 +182,7 @@ export default definePlugin({
} }
}, },
{ {
find: "\"Profile Panel: user cannot be undefined\"", find: ".UserPopoutUpsellSource.PROFILE_PANEL,",
replacement: { replacement: {
// createElement(Divider, {}), createElement(NoteComponent) // createElement(Divider, {}), createElement(NoteComponent)
match: /\(0,\i\.jsx\)\(\i\.\i,\{\}\).{0,100}setNote:(?=.+?channelId:(\i).id)/, match: /\(0,\i\.jsx\)\(\i\.\i,\{\}\).{0,100}setNote:(?=.+?channelId:(\i).id)/,

Loading…
Cancel
Save