Fix image links on Old Reddit

Fix opening redd.it image links on Old Reddit

目前为 2024-01-15 提交的版本。查看 最新版本

作者
Abdurazaaq Mohammed
评分
0 0 0
版本
1.0
创建于
2024-01-15
更新于
2024-01-15
大小
1.7 KB
许可证
Unlicense
适用于

For some reason, Reddit decided to make i.redd.it and preview.redd.it images open a viewer in New Reddit when you click on them, despite them still being a direct image.
This uses a bunch of resources uselessly. Also, if you use a userscript to redirect all Reddit links to Old Reddit, it will break image links you click on because Reddit did not implement the image viewer in Old Reddit.

Solution: Since the image is still a direct image, we can just open the image link in any image viewer. So I just made a very simple website to display image from a link, put it on GitHub, and redirect redd.it images to it with this userscript.