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

Redirect to full size image #8

Closed mistic100 closed 5 months ago

mistic100 commented 5 months ago

A small feature request : when openning a image on preview.redd.id, redirect to i.redd.it to display the original image instead

Example post : https://www.reddit.com/r/cursedbenchies/comments/1as7ye3/layer_shift_never_heard_of_it/

Resized image as seen when doing right-click + open in new tab : https://preview.redd.it/layer-shift-never-heard-of-it-v0-4gp4de4d3yic1.jpeg?width=1080&crop=smart&auto=webp&s=3cf768f7028201ae348b4080b7f496aaedaee53e

Original image : https://i.redd.it/layer-shift-never-heard-of-it-v0-4gp4de4d3yic1.jpeg?width=1080&crop=smart&auto=webp&s=3cf768f7028201ae348b4080b7f496aaedaee53e

nopperl commented 5 months ago

Hm, that feature is useful, but the larger original image might not always be preferred. I have implemented it as an optional feature that's off by default (needs to be enabled in settings).

mistic100 commented 5 months ago

That was fast ! Thanks, the new option works perfecly.

mistic100 commented 5 months ago

@nopperl there is a small problem : "external-preview" subdomain should not be redirected when this option is enabled, only "preview", otherwise it leads to a page not found error

nopperl commented 5 months ago

Ah, thanks for catching this, I didn't test this domain. The redirect is disabled for external-preview now.

Tiagoquix commented 4 months ago

Many thanks for this new option!