I have these rules defined inside
url:https://preview.redd.it/, domain:true, sub:true, header:Accept, add:true, modify:false, remove:false, header_value:image/*
url:https://i.redd.it/, domain:true, sub:true, header:Accept, add:true, modify:false, remove:false, header_value:image/*
With these defined, an image just opens like an image, without any reddit wrapped around it.[1] https://chromewebstore.google.com/detail/modify-header-value...
https://addons.mozilla.org/en-US/firefox/addon/load-reddit-i...
Though, given that I think the solution to this can be generalized, I think it is about time someone made a more general extension that can apply this across a wide variety of sites that misuse the `Accept` header for unwanted behavior.
(Also, since mangling the Accept header is the best way to avoid unwanted WebP/AVIF/HEIC transcodes without fully disabling support for these better image formats, it'd be nice if that was also rolled into such an extension.)
https://blog.mozilla.org/addons/2020/09/29/expanded-extensio...
This suggests it only works in Nightly, but it also works in Fennec F-Droid, so frankly you should consider switching to that if you can. (I wish Fennec F-Droid could just allow arbitrary extensions and extension side-loading, but I guess it would be non-trivial. Thanks Mozilla!)
Is there any other "misuse" to be aware of apart from just serving formats you don't prefer?
I didn't at any point call serving formats I "don't prefer" (I do prefer AVIF) "abuse" of the Accept header. I just don't want images that were JPEGs to be transcoded to even lossier WebP/AVIF/HEIC files when I browse to them. Sure, if it's part of the page layout it's not a big deal, but when I'm viewing the original size image, it should be, ideally, the original image. I don't actually care if the image is WebP/AVIF/HEIC natively, that is not a problem.
Is it though? What non user-hostile things does it enable?
https://apps.apple.com/it/app/sink-it-for-reddit/id644987363...