dotvhs / shine-unofficial

Unofficial fork of SHINE for Reddit.
62 stars 9 forks source link

shine redirect to wrong url #41

Open Jahislove opened 1 year ago

Jahislove commented 1 year ago

hello

due to change on reddit , there is a bug (on Firefox) that redirect all picture to a wrong URL

this seem to be a redirect probleme in the extension

can you update your extension please .as i really love it , especially the grid layout

more info here : it concerne the extension old reddit redirect but i think it's the same thing with shine https://old.reddit.com/r/help/comments/15kwhgy/why_is_every_image_link_i_click_on_directing_me/

_**It's your old Reddit redirect extension/userscript.

I had the same issue and tracked it down using the Network tab of the browser's developer tools. Here's what's happening. Reddit has replaced the normal showing of images with their own shitty image viewer. URLs which used to go directly to images now get redirected to a special Reddit page. For example, if your image URL is https://i.redd.it/image.jpg, your browser receives a redirect to https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fimage.jpg. However, your extension sees this URL and immediately rewrites it to https://old.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fimage.jpg. But there's no media viewer at the old.reddit.com domain, so instead Reddit sends you a post in /r/funny whose ID happens to be media.

The fix is to modify whatever old Reddit extension or userscript you're using to exclude https://www.reddit.com/media from its URL rewriting. You can either do this yourself, ask the developer, or switch to an extension whose developer has already applied a fix.**_

thank you

richowen commented 1 year ago

my dude. this repo hasnt been updated for 6yrs, think its time to move on.

Minnona commented 1 year ago

One can hope 😥