Re:Firefox 66 to block automatically playing audible video a...
by Anon1096 on Monday February 04, 2019 @05:31PM
(#19081302)
Most gifs being served on the web aren't .gif files anymore, but .webm or .mp4 files instead. That css wouldn't even stop half of the gifs most users see on a daily basis.
[ Parent
| on HN ]
Re:Firefox 66 to block automatically playing audible video a...
by dredmorbius on Tuesday February 12, 2019 @09:17PM
(#19149775)
I can assure you that:
1. The solution as posed works remarkably well. I know this because I use it myself.[1]
2. Extending the pattern to either be case-insensitive or include other animated image formats is pathetically trivial.
________________________________
Notes:
1. Specifically, in my "Annoyances" stylesheet, applied to all sites by default:
/* gifs: So, it has come to this ... (xkcd) */
img[src$=".gif"] {
opacity: 0 !important;
transition-delay: 3s;
transition-duration: 1s;
transition-timing-function: ease;
transition-property: opacity;
display: block;
}
img[src$=".gif"]:hover {
transition-delay: 0.3s;
transition-duration: 0.3s;
opacity: 1 !important;
}