Fix Some Plugins

This commit is contained in:
thororen1234 2024-10-17 04:09:45 -04:00
parent ba37eec5eb
commit 82c023cf0b
2 changed files with 3 additions and 3 deletions

View file

@ -350,7 +350,7 @@ export default definePlugin({
{
// Filter attachments to remove fake nitro stickers or emojis
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});`
}
]

View file

@ -156,14 +156,14 @@ export default definePlugin({
patches: [
{
find: "Messages.OPEN_IN_BROWSER",
find: "ACTIVITY_COACH_MARK_NITRO,",
replacement: {
// there are 2 image thingies. one for carosuel and one for the single image.
// so thats why i added global flag.
// also idk if this patch is good, should it be more specific?
// https://regex101.com/r/xfvNvV/1
match: /return.{1,200}\.wrapper.{1,200}src:\i,/g,
replace: `$&id: '${ELEMENT_ID}',`
replace: "$&id: 'vc-imgzoom-magnify-modal',"
}
},