Prerequisites
I tried to reproduce the issue when...
Description
I mantain a list to block spam on news websites essentially. Recently, those (Nytimes and Axios among others) started adding animated images on their homepages.
Typycally, you could write a cosmetic rule like
example.com##a>img[src*=".gif"]:matches-path(/)
and a network rule like
||example.com/*.gif
This however, doesn't work on websites that do not add a file extension to their image
A specific URL where the issue occurs.
https://www.wsj.com/
https://web.archive.org/web/20260319175405/https://www.wsj.com/
Steps to Reproduce
- Visit the link above or go to this archived version so you do see the animated image
- Scroll a bit and you will see an animated image of a beer being served.
- Open your browser network logger and see the request for .webp of this image, larger than other
Expected behavior
We should get a way to block images by file-type.
(Ideally, even being able to filter by image size. This would fix the issue were a website will use .webp for everything but some images are animated and others aren't)
Troubleshooting information
For future reference:
Image link
Prerequisites
I tried to reproduce the issue when...
Description
I mantain a list to block spam on news websites essentially. Recently, those (Nytimes and Axios among others) started adding animated images on their homepages.
Typycally, you could write a cosmetic rule like
and a network rule like
This however, doesn't work on websites that do not add a file extension to their image
A specific URL where the issue occurs.
Steps to Reproduce
Expected behavior
We should get a way to block images by file-type.
(Ideally, even being able to filter by image size. This would fix the issue were a website will use .webp for everything but some images are animated and others aren't)
Troubleshooting information
For future reference:
Image link