add Mutual Groups to new profiles
This commit is contained in:
parent
7f1ccef383
commit
705da29df5
1 changed files with 13 additions and 0 deletions
|
@ -58,6 +58,19 @@ export default definePlugin({
|
|||
match: /(?<={user:(\i),onClose:(\i)}\);)(?=case \i\.\i\.MUTUAL_FRIENDS)/,
|
||||
replace: "case \"MUTUAL_GDMS\":return $self.renderMutualGDMs({user: $1, onClose: $2});"
|
||||
}
|
||||
},
|
||||
{
|
||||
find: ".USER_INFO,subsection:",
|
||||
replacement: [
|
||||
{
|
||||
match: /(?<=onItemSelect:\i,children:)(\i)\.map/,
|
||||
replace: "[...$1, {section:'MUTUAL_GDMS',text:'Mutual Groups'}].map"
|
||||
},
|
||||
{
|
||||
match: /\(0,\i\.jsx\)\(\i,\{items:\i,section:(\i)/,
|
||||
replace: "$1==='MUTUAL_GDMS'?$self.renderMutualGDMs(arguments[0]):$&"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in a new issue