Ademking / BetterViewer

a replacement for the image viewing mode built into Firefox and Chrome-based web browsers.
MIT License
242 stars 19 forks source link

Reddit images bypassing BetterViewer due to redirects(?) #54

Open NakedTrashPanda opened 1 year ago

NakedTrashPanda commented 1 year ago

Describe the bug A month or two ago, Reddit introduced a change that broke the way opening images worked. Normally the image would be direct and BetterViewer would be able to open it. Currently, the image redirects into Reddit's own website, bypassing BetterViewer.

To Reproduce

  1. Find an image on Reddit.
  2. Open it into a new tab.

Expected behavior Opens the direct image into BetterViewer.

Screenshots image

Desktop:

Additional context Images smaller than 1080p seems to work exactly like expected. Here is a Reddit post for additional info..

Metacor commented 11 months ago

I'm currently using the "Load Reddit Images Directly" extension to fix this: Chrome - Firefox The extension "simple-modify-headers" is also able to fix it — see this reddit thread — but that requires a bit of manual setup.

The code seems very lightweight and easy to implement, but the current released version of BetterViewer is 3 feature patches behind the codebase and still non-compliant with Manifest V3, so I don't think an internal fix is going to happen.

There are userscripts/bookmarklets that also fix this, but additional reddit updates have broken the ones I was using, so unfortunately using an extra extension seems to be the best fix currently.