In case you don't want to install an extension, search in about:config for "image.webp.enabled" and set it to false. Worth mentioning, there's also a "image.avif.enabled" entry.
Re:WebP is such a goated format
by unicornporn on Sunday April 17, 2022 @02:18AM
(#31058922)
That is not the same thing. This addon does not modify "image.webp.enabled" or "image.avif.enabled", it modifies the accept header. If you modify the preferences you mention you will still be served AVIF and WebP, but viewing will break...
https://addons.mozilla.org/en-US/firefox/addon/dont-accept-w...