fix blurnsfw again
This commit is contained in:
parent
f7cbeb933e
commit
d320bc439d
1 changed files with 6 additions and 4 deletions
|
|
@ -46,10 +46,12 @@ export default definePlugin({
|
|||
patches: [
|
||||
{
|
||||
find: "}renderEmbeds(",
|
||||
replacement: [{
|
||||
match: /\(\)\(\i,\i\.\i(?=\),children:\[\i)/,
|
||||
replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')"
|
||||
}]
|
||||
replacement: [
|
||||
{
|
||||
match: /\(\)\(\i,\i\.\i(?<=this.renderShareClientTheme\(.{0,250})/,
|
||||
replace: "$&+(this.props.channel.nsfw || $self.settings.store.blurAllChannels ? ' vc-nsfw-img': '')"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue