1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-09 01:16:23 +00:00

Merge branch 'dev' into update-dependencies-eslint

This commit is contained in:
Nuckyz 2025-01-04 02:24:18 -03:00
commit fa49167965
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -30,8 +30,8 @@ export default definePlugin({
{
find: ".removeMosaicItemHoverButton),",
replacement: {
match: /\.nonMediaMosaicItem\]:.{0,40}children:\i.slice\(\i\)(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
replace: (m, showDownload, isVisualMediaType) => `${m}.unshift(${showDownload}&&${isVisualMediaType}&&$self.PictureInPictureButton())`
match: /(\.nonMediaMosaicItem\]:.{0,40}children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
replace: (_, rest, origChildren, showDownload, isVisualMediaType) => `${rest}[${showDownload}&&${isVisualMediaType}&&$self.PictureInPictureButton(),...${origChildren}]`
}
}
],