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

The extension in Firefox is not working. #7

Open toxicprocyon opened 5 months ago

toxicprocyon commented 5 months ago

Screenshot 2024-02-10 220536

nopperl commented 5 months ago

For which URL did this occur?

KaizenNeko commented 5 months ago

Since the OP hasn't replied, I'll provide one.

Reddit Link: https://preview.redd.it/does-anyone-know-whats-wrong-with-my-cat-v0-gkl213q16cjc1.jpeg?width=1399&format=pjpg&auto=webp&s=a31e4fbb9dc6480785a260ea7bbcaff2d8ef9675

The actual image loads for a split second before the 403 page loads.

Redirected Link: https://i.redd.it/does-anyone-know-whats-wrong-with-my-cat-v0-gkl213q16cjc1.jpeg

nopperl commented 5 months ago

I can't really reproduce your example, the preview.redd.it URL works both with the i.redd.it redirect enabled and disabled. https://i.redd.it/does-anyone-know-whats-wrong-with-my-cat-v0-gkl213q16cjc1.jpeg returns a 403, but this is known, as it needs the URL parameters to work (i.e., https://i.redd.it/does-anyone-know-whats-wrong-with-my-cat-v0-gkl213q16cjc1.jpeg?width=1399&format=pjpg&auto=webp&s=a31e4fbb9dc6480785a260ea7bbcaff2d8ef9675). Even if the i.redd.it redirect is enabled, the extension redirects to the latter URL, so I'm not sure where you get the error.

KaizenNeko commented 5 months ago

I just found the culprit in my case. It was a Greasy Fork script called Resize Image On "Open image in new tab". It was stripping out the parameters and redirecting to i.redd.it. It's no longer maintained so I'm just going to comment out the reddit part myself.

I actually forgot I had that script installed. LOL