patch fixes
This commit is contained in:
parent
83035a4480
commit
227ff79508
3 changed files with 4 additions and 8 deletions
|
|
@ -233,8 +233,8 @@ export default definePlugin({
|
|||
{
|
||||
find: ']="BADGES"',
|
||||
replacement: {
|
||||
match: /(?<="username"===.{0,100})(onClick:\i,onContextMenu:\i,)(?=children:)/,
|
||||
replace: "$1draggable:!0,onDragStart:e=>$self.onUserDragStart(e,arguments[0].author),\"data-dragify-user\":!0,\"data-user-id\":arguments[0].author.id,"
|
||||
match: /(?<=textDecorationColor:.{0,300})(?=onClick:\i,onContextMenu:\i,)/,
|
||||
replace: "draggable:!0,onDragStart:e=>$self.onUserDragStart(e,arguments[0].author),\"data-dragify-user\":!0,\"data-user-id\":arguments[0].author.id,"
|
||||
}
|
||||
},
|
||||
// Call avatars (DM/group call tiles)
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export default definePlugin({
|
|||
replace: "$&$self.onPopoutClose();"
|
||||
},
|
||||
{
|
||||
match: /#{intl::SET_STATUS}\)(?<=innerRef:(\i),style:.+?)/,
|
||||
match: /(?:#{intl::5fWB8U::raw}|#{intl::SET_STATUS})\)(?<=ref:(\i),style:.+?)/,
|
||||
replace: "$&,onContextMenu:($self.grabRef($1),$self.openAccountPanelContextMenu)"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -104,11 +104,7 @@ export default definePlugin({
|
|||
find,
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<=userValue:)((\i)(?:.{0,10})?\.avatarDecoration)/,
|
||||
replace: "$self.useUserDecorAvatarDecoration($2)??$1"
|
||||
},
|
||||
{
|
||||
match: /(?<=userValue:)((\i)(?:.{0,10})?\.avatarDecoration)/,
|
||||
match: /(?<=userValue:)((\i(?:\.author)?)\?\.avatarDecoration)/,
|
||||
replace: "$self.useUserDecorAvatarDecoration($2)??$1"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue