mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 05:13:29 -05:00
ExportContacts Temp Patch Update
This commit is contained in:
parent
850fadfaba
commit
62c0ad394b
1 changed files with 9 additions and 14 deletions
|
@ -68,20 +68,15 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
find: "[role=\"tab\"][aria-disabled=\"false\"]",
|
||||
replacement: [
|
||||
{
|
||||
match: /this\.props;(return\(.*?"aria-label":(\i))/,
|
||||
replace: "this.props;console.log($2?.Children);$1"
|
||||
},
|
||||
{
|
||||
match: /("aria-label":(\i),children:)(\w+)\.Children\.map\((\w+),\s*this\.renderChildren\)/,
|
||||
replace:
|
||||
"$1($3 && $3.Children ?" +
|
||||
"($2 === 'Friends' ?" +
|
||||
"[...$3.Children.map($4, this.renderChildren), $self.addExportButton()]" +
|
||||
": [...$3.Children.map($4, this.renderChildren)]) : $3.map($4, this.renderChildren))"
|
||||
}
|
||||
]
|
||||
replacement: {
|
||||
match: /("aria-label":(\i).{0,25})(\i)\.Children\.map\((\i),this\.renderChildren\)/,
|
||||
replace:
|
||||
"$1($3 && $3.Children" +
|
||||
"? ($2 === 'Friends'" +
|
||||
"? [...$3.Children.map($4, this.renderChildren), $self.addExportButton()]" +
|
||||
": [...$3.Children.map($4, this.renderChildren)])" +
|
||||
": $3.map($4, this.renderChildren))"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in a new issue