Always redirects to old-Reddit, avoiding Reddit's redesign.
exclude https://www.reddit.com/media from rewriting
exclude https://www.reddit.com/media from rewriting
For any layman stumbling across this, you can do this by opening up the code of this script and editing in the following comment (theres already another exclude comment in there that you can place this over or under to keep things neat);
// @exclude *://www.reddit.com/media*
https://gf.qytechs.cn/en/scripts/484871-fix-image-links-on-old-reddit
I made a script which can view images without having to use Reddit crappy media viewer
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
all image links redirect to https://old.reddit.com/r/funny/comments/media/nice_hat/

more discussion about the issue here: https://github.com/tom-james-watson/old-reddit-redirect/issues/86
and here (the fix) https://old.reddit.com/r/help/comments/15kwhgy/why_is_every_image_link_i_click_on_directing_me/jvgsg29/
the reason for this particular image is because the comment ID just randomly happens to be the character string "media"
reddit has helpfully archived the post so nobody can write the solution where it is needed...