Fix blurNSFW on canary
This commit is contained in:
parent
8113ed3c8c
commit
cc51f6e2d2
|
@ -45,10 +45,10 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: ".embedWrapper,embed",
|
find: ".embedWrapper,embed",
|
||||||
replacement: [{
|
replacement: [{
|
||||||
match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\(\)\.embedWrapper)/g,
|
match: /(\.renderEmbed=.+?(.)=.\.props)(.+?\.embedWrapper)/g,
|
||||||
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
|
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':'')"
|
replace: "$1,vcProps=$2$3+(vcProps.channel.nsfw?' vc-nsfw-img':'')"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
|
@ -217,6 +217,9 @@ function runTime(token: string) {
|
||||||
// force enable all plugins and patches
|
// force enable all plugins and patches
|
||||||
Vencord.Plugins.patches.length = 0;
|
Vencord.Plugins.patches.length = 0;
|
||||||
Object.values(Vencord.Plugins.plugins).forEach(p => {
|
Object.values(Vencord.Plugins.plugins).forEach(p => {
|
||||||
|
// Needs native server to run
|
||||||
|
if (p.name === "WebRichPresence (arRPC)") return;
|
||||||
|
|
||||||
p.required = true;
|
p.required = true;
|
||||||
p.patches?.forEach(patch => {
|
p.patches?.forEach(patch => {
|
||||||
patch.plugin = p.name;
|
patch.plugin = p.name;
|
||||||
|
|
Loading…
Reference in a new issue