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.
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.
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.
https://lawrenzo.com/p/better-reddit-image-previews
@noframes, userscripts on reddit seem to have been initializing multiple times.Date.now() timestamp.