Better Reddit Image Previews

Fixes issues with reddit image previews. Specifically, clicking image preview now links directly to image (instead of thread) and fits height of image previews in carousel so they don't get clipped out.

Autor
Lawrence Sim
Denne inštalácií
1
Celkový počet inštalácií
2 848
Hodnotenie
1 0 0
Verzia
0.6.4
Vytvorené
20.09.2021
Aktualizované
19.08.2022
Licencia
WTFPL (http://www.wtfpl.net)
Spustiť na

Better Reddit Image Previews

Made this to fix two major problem with image "expando" previews I noticed. Firstly, clicking on the image preview doesn't link to the image itself, it links to the comment thread, then you have to click the image again to view the image itself in isolation. This is horrible UX flow so updated that such that clicking the expando preview opens the image itself. Additionally, when the thread has multiple image, the image carousel is badly styled such that the height is not scaled to fit and often cut off. These are corrected with this userscript.

Compatible with Reddit Watcher.

Deprecated / Replaced by nREC browser extension

Better Reddit Image Previews is now packaged in a browser extension (New Reddit Enhancements & Chemo (nREC)) along with features from my other Reddit userscripts as well as some brand-new features. It's recommended to migrate to nREC, as my reddit userscripts will no longer be getting regular updates.

Download nREC for Firefox or Chrome.

Other useful Reddit-based userscripts:

https://lawrenzo.com/p/better-reddit-image-previews

Buy Me a Coffee at ko-fi.com

Change log

v0.6.4 : Aug 18, 2022

  • Add @noframes, userscripts on reddit seem to have been initializing multiple times.

v0.6.3 : Jun 10, 2022

  • Middle-mouse button click event handled as well (via 'auxclick' event).

v0.6.2 : Apr 13, 2022

  • Way post containers were reused between switching between feeds causes watcher disconnection to not register as new post. Updated attribute on post containers to use Date.now() timestamp.

v0.6.1 : Apr 5, 2022

  • Previews for a non-reddit sourced image (e.g. Imgur) were using a webp copied preview image. Fixed it to go to direct source.
  • Now works in card view (previously was tuned for classic view).