nopperl / load-reddit-images-directly

Firefox web extension that loads reddit images directly instead of referring to the HTML page containing the image.
https://addons.mozilla.org/en-US/firefox/addon/load-reddit-images-directly/
Mozilla Public License 2.0
98 stars 5 forks source link

Change accept header value to Firefox default value for images #1

Closed austindonisan closed 1 year ago

austindonisan commented 1 year ago

Rather than a generic "image/*", use the current value that Firefox does for images. This means that AVIF and WEBP versions of images, which are smaller than jpeg or png, will be served.

Value retrieved from this webpage: https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values

nopperl commented 1 year ago

Nice, thanks for the catch!