redo some patches

This commit is contained in:
thororen1234 2026-01-23 14:32:25 -05:00
parent 86f25e3077
commit bd1a308101
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -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})`;

View file

@ -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': '')"
}]
}

View file

@ -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),"
}
}