redo some patches
This commit is contained in:
parent
86f25e3077
commit
bd1a308101
3 changed files with 3 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ export default definePlugin({
|
|||
}
|
||||
},
|
||||
{
|
||||
match: /\.\i,"data-mtctest.+?\[\(0,\i\.jsxs?\)\((.{1,10}),(\{[^{}}]+\{.{0,20}.\i,.{0,50}\})\)," "/,
|
||||
match: /"data-mtctest.+?\[\(0,\i\.jsxs?\)\((.{1,10}),(\{[^{}}]+\{.{0,20}.\i,.{0,50}\})\)," "/,
|
||||
replace: (m, component, props) => {
|
||||
props = props.replace(/children:\[.+\]/, "");
|
||||
return `${m},$self.makeInfoElements(${component},${props})`;
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "}renderEmbeds(",
|
||||
replacement: [{
|
||||
match: /\(\)\(\i,\i\.\i/,
|
||||
match: /\(\)\(\i,\i\.\i(?=\),children:\[\i)/,
|
||||
replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')"
|
||||
}]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ export default definePlugin({
|
|||
{
|
||||
find: "#{intl::WELCOME_CTA_LABEL}",
|
||||
replacement: {
|
||||
match: /className:\i\.\i,(?<={channel:\i,message:\i}=(\i).+?)/,
|
||||
match: /(?<={channel:\i,message:\i}=(\i).+?)className:\i\.\i,(?=.{0,40}"sticker")/,
|
||||
replace: "$&onContextMenu:(vcEvent)=>$self.pickSticker(vcEvent, $1),"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue