1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-26 01:06:24 +00:00

Fix BetterUploadButton & FixImagesQuality

This commit is contained in:
Nuckyz 2025-01-22 18:03:51 -03:00
parent 9e9d71d014
commit ea0182a194
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ export default definePlugin({
{
find: '"ChannelAttachButton"',
replacement: {
match: /\.attachButtonInner,"aria-label":.{0,50},onDoubleClick:(.+?:void 0),\.\.\.(\i),/,
match: /\.attachButtonInner,"aria-label":.{0,50},onDoubleClick:(.+?:void 0),.{0,30}?\.\.\.(\i),/,
replace: "$&onClick:$1,onContextMenu:$2.onClick,",
},
},

View file

@ -13,7 +13,7 @@ export default definePlugin({
authors: [Devs.Nuckyz],
patches: [
{
find: "getFormatQuality(){",
find: ".handleImageLoad)",
replacement: {
match: /(?<=null;return )\i\.\i&&\(\i\|\|!\i\.isAnimated.+?:(?=\i&&\(\i="png"\))/,
replace: ""