|
|
|
@ -45,10 +45,10 @@ export default definePlugin({
|
|
|
|
|
{
|
|
|
|
|
find: ".embedWrapper,embed",
|
|
|
|
|
replacement: [{
|
|
|
|
|
match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\(\)\.embedWrapper)/g,
|
|
|
|
|
match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\.embedWrapper)/g,
|
|
|
|
|
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
|
|
|
|
|
}, {
|
|
|
|
|
match: /(\.renderAttachments=.+?(.)=this\.props)(.+?\(\)\.embedWrapper)/g,
|
|
|
|
|
match: /(\.renderAttachments=.+?(.)=this\.props)(.+?\.embedWrapper)/g,
|
|
|
|
|
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|