Hide Autoplay Videos That Aren’t Muted
This is a great trick for a custom user stylesheet. Avoid overloading a user with sound from a video that autoplays when the page is loaded. If the sound isn’t muted, don’t show the video:
video[autoplay]:not([muted]) {
display: none;
}
Once again, we’re taking advantage of using the :not()
pseudo-class.
当前内容版权归 AllThingsSmitty 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 AllThingsSmitty .