mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-07 14:44:24 -05:00
Fix Some Plugins
This commit is contained in:
parent
ba37eec5eb
commit
82c023cf0b
2 changed files with 3 additions and 3 deletions
|
@ -350,7 +350,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
// Filter attachments to remove fake nitro stickers or emojis
|
// Filter attachments to remove fake nitro stickers or emojis
|
||||||
predicate: () => settings.store.transformStickers,
|
predicate: () => settings.store.transformStickers,
|
||||||
match: /renderAttachments\(\i\){let{attachments:(\i).+?;/,
|
match: /renderAttachments\(\i\){let.{0,200}{attachments:(\i).+?;/,
|
||||||
replace: (m, attachments) => `${m}${attachments}=$self.filterAttachments(${attachments});`
|
replace: (m, attachments) => `${m}${attachments}=$self.filterAttachments(${attachments});`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -156,14 +156,14 @@ export default definePlugin({
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "Messages.OPEN_IN_BROWSER",
|
find: "ACTIVITY_COACH_MARK_NITRO,",
|
||||||
replacement: {
|
replacement: {
|
||||||
// there are 2 image thingies. one for carosuel and one for the single image.
|
// there are 2 image thingies. one for carosuel and one for the single image.
|
||||||
// so thats why i added global flag.
|
// so thats why i added global flag.
|
||||||
// also idk if this patch is good, should it be more specific?
|
// also idk if this patch is good, should it be more specific?
|
||||||
// https://regex101.com/r/xfvNvV/1
|
// https://regex101.com/r/xfvNvV/1
|
||||||
match: /return.{1,200}\.wrapper.{1,200}src:\i,/g,
|
match: /return.{1,200}\.wrapper.{1,200}src:\i,/g,
|
||||||
replace: `$&id: '${ELEMENT_ID}',`
|
replace: "$&id: 'vc-imgzoom-magnify-modal',"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue