-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(plugin): Stickers+ #1611
base: main
Are you sure you want to change the base?
feat(plugin): Stickers+ #1611
Conversation
9f4408f
to
1fa995d
Compare
35b3942
to
8422b22
Compare
aad8d2a
to
9397595
Compare
fa9cb4b
to
f9de0fc
Compare
{ | ||
find: ".stickerIcon,", | ||
replacement: [{ | ||
match: /(children:\(0,\w\.jsx\)\()([\w.]+?)(,{innerClassName.{10,30}\.stickerButton)/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match: /(children:\(0,\w\.jsx\)\()([\w.]+?)(,{innerClassName.{10,30}\.stickerButton)/, | |
match: /(children:\(0,\i\.jsx\)\()(\i\.\i)(,{innerClassName.{10,30}\.stickerButton)/, |
src/plugins/moreStickers/index.tsx
Outdated
return `${head}${isMoreStickers}?$self.stickerButton:${button}${tail}`; | ||
} | ||
}, { | ||
match: /(let \w=)(\w\.useCallback\(\(\)=>\{\(0,\w+\.\w+\)\([\w\.]*?\.STICKER,.*?);/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match: /(let \w=)(\w\.useCallback\(\(\)=>\{\(0,\w+\.\w+\)\([\w\.]*?\.STICKER,.*?);/, | |
match: /(let \i=)(\i\.useCallback\(\(\)=>\{\(0,\i\.toggleExpressionPicker\)\(\i\.ExpressionPickerViewType\.STICKER,.*?);/, |
return `${decl}arguments[0]?.stickersType?${newCb}:${cb};`; | ||
} | ||
}, { | ||
match: /(\w)=((\w)===\w+?\.\w+?\.STICKER)/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match: /(\w)=((\w)===\w+?\.\w+?\.STICKER)/, | |
match: /(\i)=((\i)===\i\.ExpressionPickerViewType\.STICKER)/, |
{ | ||
find: '"ChannelTextAreaButtons"', | ||
replacement: { | ||
match: /,\(null===\(\w=\w\.stickers\)\|\|void 0.*?(\w)\.push\((\(0,\w\.jsx\))\((.+?),{disabled:\w,type:(\w)},"sticker"\)\)/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match: /,\(null===\(\w=\w\.stickers\)\|\|void 0.*?(\w)\.push\((\(0,\w\.jsx\))\((.+?),{disabled:\w,type:(\w)},"sticker"\)\)/, | |
match: /,\(null===\(\i=\i\.stickers\)\|\|void 0.*?(\i)\.push\((\(0,\i\.jsx\))\((.+?),{disabled:\i,type:(\i)},"sticker"\)\)/, |
{ | ||
find: '==="remove_text"', | ||
replacement: { | ||
match: /,\w\.insertText=\w=>{[\w ;]*?1===\w\.length&&.+?==="remove_text"/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match: /,\w\.insertText=\w=>{[\w ;]*?1===\w\.length&&.+?==="remove_text"/, | |
match: /,\i\.insertText=\i=>{1===\i\.length&&.+?==="remove_text"/, |
is [\w ;]*?
needed? because i dont see anything there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it is required in the current version.
In the previous version, they made a space/change line here (their minifier did this? dunno)
422b4af
to
10f9f72
Compare
10f9f72
to
05a5a84
Compare
05a5a84
to
8b3170e
Compare
1b97e74
to
4305c23
Compare
5aedece
to
dff7144
Compare
8b05424
to
c1622c0
Compare
10d8741
to
6e35c80
Compare
d36f5d9
to
3654a34
Compare
Co-authored-by: ArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>
This plugin allows user send stickers from more sticker providers.
Currently LINE and self-made stickerpack files supported.
Inspired by https://github.com/Pitu/Magane .