Perfect Horror

This commit is contained in:
thororen 2024-04-25 12:52:54 -04:00
parent 26fc9ace0c
commit 1cca020b8f

View file

@ -618,15 +618,15 @@ export default definePlugin({
// https://regex101.com/r/TMV1vY/1 // https://regex101.com/r/TMV1vY/1
{ {
find: ".removeAttachmentHoverButton", find: ".removeMosaicItemHoverButton",
replacement: { replacement: {
match: /(\i=(\i)=>{)(.{1,250}isSingleMosaicItem)/, match: /(\i=(\i)=>{)(.{1,6500}isSingleMosaicItem)/,
replace: "$1 let forceUpdate=Vencord.Util.useForceUpdater();$self.patchAttachments($2,forceUpdate);$3" replace: "$1 let forceUpdate=Vencord.Util.useForceUpdater();$self.patchAttachments($2,forceUpdate);$3"
} }
}, },
{ {
find: "handleImageLoad=", find: "handleImageLoad)",
replacement: { replacement: {
match: /(render\(\){)(.{1,100}zoomThumbnailPlaceholder)/, match: /(render\(\){)(.{1,100}zoomThumbnailPlaceholder)/,
replace: "$1$self.checkImage(this);$2" replace: "$1$self.checkImage(this);$2"