OpenInApp: Fix for User Profile Modal V2

This commit is contained in:
Nuckyz 2025-05-20 19:12:04 -03:00
parent a7eb3cd072
commit e487529f06
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -106,13 +106,14 @@ export default definePlugin({
} }
] ]
}, },
{
find: ".CONNECTED_ACCOUNT_VIEWED,", ...[".__invalid_connectedAccountOpenIconContainer", ".BLUESKY||"].map(find => ({
find,
replacement: { replacement: {
match: /(?<=href:\i,onClick:(\i)=>\{)(?=.{0,10}\i=(\i)\.type,.{0,100}CONNECTED_ACCOUNT_VIEWED)/, match: /(?<=onClick:(\i)=>\{)(?=.{0,100}\.CONNECTED_ACCOUNT_VIEWED)(?<==(\i)\.metadata.+?)/,
replace: "if($self.handleAccountView($1,$2.type,$2.id)) return;" replace: "if($self.handleAccountView($1,$2.type,$2.id)) return;"
} }
} }))
], ],
async handleLink(data: { href: string; }, event?: MouseEvent) { async handleLink(data: { href: string; }, event?: MouseEvent) {