Fix Patches
This commit is contained in:
parent
7194f80ed0
commit
669fd81ca6
2 changed files with 2 additions and 2 deletions
|
|
@ -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}\]\)))/,
|
||||
|
|
|
|||
|
|
@ -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,",
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue