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
Dnevne instalacije
1
Ukupno instalacija
2.837
Ocene
1 0 0
Verzija
0.6.4
Napravljeno
20/09/2021
Ažurirano
19/08/2022
Licenca
WTFPL (http://www.wtfpl.net)
Važi za

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).