BlurNSFW: Support videos
This commit is contained in:
parent
3e9672c6b8
commit
7a4402f142
|
@ -24,11 +24,13 @@ let style: HTMLStyleElement;
|
||||||
|
|
||||||
function setCss() {
|
function setCss() {
|
||||||
style.textContent = `
|
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);
|
filter: blur(${Settings.plugins.BlurNSFW.blurAmount}px);
|
||||||
transition: filter 0.2s;
|
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;
|
filter: unset;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in a new issue