diff --git a/src/plugins/blurNsfw/index.ts b/src/plugins/blurNsfw/index.ts index c1670fe85..12c4a386e 100644 --- a/src/plugins/blurNsfw/index.ts +++ b/src/plugins/blurNsfw/index.ts @@ -1,20 +1,8 @@ /* - * Vencord, a modification for Discord's desktop app - * Copyright (c) 2022 Vendicated and contributors - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . -*/ + * Vencord, a Discord client mod + * Copyright (c) 2025 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ import { Settings } from "@api/Settings"; import { Devs } from "@utils/constants"; @@ -46,7 +34,7 @@ export default definePlugin({ find: "}renderEmbeds(", replacement: [{ match: /\.container/, - replace: "$&+(this.props.channel.nsfw? ' vc-nsfw-img': '')" + replace: "$&+(this.props.channel.nsfw || Vencord.Settings.plugins.BlurNSFW.blurAllChannels ? ' vc-nsfw-img': '')" }] } ], @@ -57,6 +45,11 @@ export default definePlugin({ description: "Blur Amount (in pixels)", default: 10, onChange: setCss + }, + blurAllChannels: { + type: OptionType.BOOLEAN, + description: "Blur attachments in all channels (not just NSFW)", + default: false } },