From 7a4402f1425ea9fdc6d2b3c985a4ce831f405937 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 28 Nov 2022 01:08:58 +0100 Subject: BlurNSFW: Support videos --- src/plugins/blurNsfw.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; } `; -- cgit