mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-14 17:13:03 -04:00
OpenInApp: Fix for User Profile Modal V2
This commit is contained in:
parent
a7eb3cd072
commit
e487529f06
1 changed files with 5 additions and 4 deletions
|
@ -106,13 +106,14 @@ export default definePlugin({
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
find: ".CONNECTED_ACCOUNT_VIEWED,",
|
||||
|
||||
...[".__invalid_connectedAccountOpenIconContainer", ".BLUESKY||"].map(find => ({
|
||||
find,
|
||||
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;"
|
||||
}
|
||||
}
|
||||
}))
|
||||
],
|
||||
|
||||
async handleLink(data: { href: string; }, event?: MouseEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue