BadgesAPI: Add To Settings Card
This commit is contained in:
parent
2c35cfd646
commit
f3b76d98eb
1 changed files with 7 additions and 0 deletions
|
|
@ -115,6 +115,13 @@ export default definePlugin({
|
|||
replace: "...($1.onClick&&{onClick:vcE=>$1.onClick(vcE,$1)}),$&"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
find: "profileCardUsernameRow,children",
|
||||
replacement: {
|
||||
match: /(?<=accountProfileCard.{0,50}displayProfile:(\i).*?badges:)(\i)/,
|
||||
replace: "[...$self.getBadges($1),...$2]"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue