Patch Fixes
Some checks failed
Test / Test (push) Has been cancelled

This commit is contained in:
thororen 2025-04-11 22:40:24 -04:00
parent f858a745a6
commit d586b33bef
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ export default definePlugin({
// Show all activities in the user popout/sidebar // Show all activities in the user popout/sidebar
find: '"UserProfilePopoutBody"', find: '"UserProfilePopoutBody"',
replacement: { replacement: {
match: /(?<=(\i)\.id\)\}\)\),(\i).*?)\(0,.{0,100}\i\.activity\}\)/, match: /(?<=(\i)\.id\)\}\)\),(\i).*?)\(0,.{0,100}\i\.id,onClose:\i\}\)/,
replace: "$self.showAllActivitiesComponent({ activity: $2, user: $1 })" replace: "$self.showAllActivitiesComponent({ activity: $2, user: $1 })"
}, },
predicate: () => settings.store.userPopout predicate: () => settings.store.userPopout

View file

@ -77,7 +77,7 @@ export default definePlugin({
replace: "$self.useAccountPanelRef();$&" replace: "$self.useAccountPanelRef();$&"
}, },
{ {
match: /(\.AVATAR,children:.+?renderPopout:(\i)=>){(.+?)}(?=,position)(?<=currentUser:(\i).+?)/, match: /(\.AVATAR,children:.+?renderPopout:\((\i),\i\)=>){(.+?)}(?=,position)(?<=currentUser:(\i).+?)/,
replace: (_, rest, popoutProps, originalPopout, currentUser) => `${rest}$self.UserProfile({popoutProps:${popoutProps},currentUser:${currentUser},originalRenderPopout:()=>{${originalPopout}}})` replace: (_, rest, popoutProps, originalPopout, currentUser) => `${rest}$self.UserProfile({popoutProps:${popoutProps},currentUser:${currentUser},originalRenderPopout:()=>{${originalPopout}}})`
}, },
{ {

View file

@ -85,7 +85,7 @@ export default definePlugin({
find: ".USER_MENTION)", find: ".USER_MENTION)",
replacement: [ replacement: [
{ {
match: /(?<=onContextMenu:\i,color:)\i(?=,onClick)(?<=user:(\i),channel:(\i).+?)/, match: /(?<=onContextMenu:\i,color:)\i(?=\},)(?<=user:(\i),channel:(\i).+?)/,
replace: "$self.getColorInt($1?.id,$2?.id)", replace: "$self.getColorInt($1?.id,$2?.id)",
} }
], ],