aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-28 01:08:58 +0100
committerVendicated <vendicated@riseup.net>2022-11-28 01:08:58 +0100
commit7a4402f1425ea9fdc6d2b3c985a4ce831f405937 (patch)
tree7486c63996eddb3d8283804f9a9901eaed8fe2da /src
parent3e9672c6b8e8cb78cbc571ba2161513e95a61226 (diff)
downloadVencord-7a4402f1425ea9fdc6d2b3c985a4ce831f405937.tar.gz
Vencord-7a4402f1425ea9fdc6d2b3c985a4ce831f405937.tar.bz2
Vencord-7a4402f1425ea9fdc6d2b3c985a4ce831f405937.zip
BlurNSFW: Support videos
Diffstat (limited to 'src')
-rw-r--r--src/plugins/blurNsfw.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/blurNsfw.ts b/src/plugins/blurNsfw.ts
index de4eb0c..8f4178f 100644
--- a/src/plugins/blurNsfw.ts
+++ b/src/plugins/blurNsfw.ts
@@ -24,11 +24,13 @@ let style: HTMLStyleElement;
function setCss() {
style.textContent = `
- .vc-nsfw-img [class^=imageWrapper] img {
+ .vc-nsfw-img [class^=imageWrapper] img,
+ .vc-nsfw-img [class^=wrapperPaused] video {
filter: blur(${Settings.plugins.BlurNSFW.blurAmount}px);
transition: filter 0.2s;
}
- .vc-nsfw-img [class^=imageWrapper]:hover img {
+ .vc-nsfw-img [class^=imageWrapper]:hover img,
+ .vc-nsfw-img [class^=wrapperPaused]:hover video {
filter: unset;
}
`;