diff --git a/src/plugins/_core/settings.tsx b/src/plugins/_core/settings.tsx index 6af93705d..791960bf6 100644 --- a/src/plugins/_core/settings.tsx +++ b/src/plugins/_core/settings.tsx @@ -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})`; diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts index d3f40365c..9a55dbc2f 100644 --- a/src/plugins/blurNsfw/index.ts +++ b/src/plugins/blurNsfw/index.ts @@ -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': '')" }] } diff --git a/src/plugins/greetStickerPicker/index.tsx b/src/plugins/greetStickerPicker/index.tsx index 0fc4453f4..734b426c6 100644 --- a/src/plugins/greetStickerPicker/index.tsx +++ b/src/plugins/greetStickerPicker/index.tsx @@ -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)," } }