Fix Patches

This commit is contained in:
thororen1234 2025-07-25 21:25:31 -04:00
parent 7194f80ed0
commit 669fd81ca6
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ export default definePlugin({
{
find: ".stickerButton)},",
replacement: [{
match: /(children:\(0,\i\.jsx\)\()(.{0,10})({innerClassName.{10,30}\.stickerButton)/,
match: /(children:\(0,\i\.jsx\)\()(.{0,10})({className.{10,30}\.stickerButton)/,
replace: "$1arguments[0]?.stickersType?$self.stickerButton:$2$3"
}, {
match: /(\i=)((\i\.useCallback\(\(\)=>\{\(.*?\)\().*?\.STICKER,(\i.{0,25}\]\)))/,

View file

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