add Vencord badges to user settings section (#3667)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
edd68fe08e
commit
2e9d67f0b4
1 changed files with 7 additions and 0 deletions
|
|
@ -111,6 +111,13 @@ export default definePlugin({
|
||||||
replace: "...$self.getBadgeMouseEventHandlers($1),$&"
|
replace: "...$self.getBadgeMouseEventHandlers($1),$&"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
find: "profileCardUsernameRow,children:",
|
||||||
|
replacement: {
|
||||||
|
match: /badges:(\i)(?<=displayProfile:(\i).+?)/,
|
||||||
|
replace: "badges:[...$self.getBadges($2),...$1]"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue