mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 21:53:04 -04:00
Fix AnonymiseFileNames
Also fix issues with User Profile Modal v2 MutualGroupDMs patches
This commit is contained in:
parent
f0fcaf734e
commit
0e90bda3c7
3 changed files with 14 additions and 20 deletions
|
@ -72,18 +72,17 @@ export default definePlugin({
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: 'type:"UPLOAD_START"',
|
find: "async uploadFiles(",
|
||||||
replacement: {
|
replacement: [
|
||||||
match: /await \i\.uploadFiles\((\i),/,
|
{
|
||||||
replace: "$1.forEach($self.anonymise),$&"
|
match: /async uploadFiles\((\i),\i\){/,
|
||||||
},
|
replace: "$&$1.forEach($self.anonymise);"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: 'addFilesTo:"message.attachments"',
|
match: /async uploadFilesSimple\((\i)\){/,
|
||||||
replacement: {
|
replace: "$&$1.forEach($self.anonymise);"
|
||||||
match: /\i.uploadFiles\((\i),/,
|
|
||||||
replace: "$1.forEach($self.anonymise),$&"
|
|
||||||
}
|
}
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "#{intl::ATTACHMENT_UTILITIES_SPOILER}",
|
find: "#{intl::ATTACHMENT_UTILITIES_SPOILER}",
|
||||||
|
|
|
@ -121,14 +121,9 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
// Make the gap between each item smaller so our tab can fit.
|
// Make the gap between each item smaller so our tab can fit.
|
||||||
{
|
{
|
||||||
match: /className:\i\.tabBar/,
|
match: /type:"top",/,
|
||||||
replace: '$& + " vc-mutual-gdms-modal-v2-tab-bar"'
|
replace: '$&className:"vc-mutual-gdms-modal-v2-tab-bar",'
|
||||||
},
|
},
|
||||||
// Make the tab bar item text smaller so our tab can fit.
|
|
||||||
{
|
|
||||||
match: /(\.tabBarItem.+?variant:)"heading-md\/normal"/,
|
|
||||||
replace: '$1"heading-sm/normal"'
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.vc-mutual-gdms-modal-v2-tab-bar {
|
.vc-mutual-gdms-modal-v2-tab-bar {
|
||||||
gap: 12px;
|
--space-xl: 16px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue