This userscript unsquashes inline images in comments by fetching the source image and downscaling it to 50%.
Requires *monkey extension to run (greasemonkey, tampermonkey, violentmonkey, et al)
Edit: also updated it to support the thread index
This userscript unsquashes inline images in comments by fetching the source image and downscaling it to 50%.
Requires *monkey extension to run (greasemonkey, tampermonkey, violentmonkey, et al)
Edit: also updated it to support the thread index
Hm, the thread index is the main issue for me! Might try the script and modify it.
For example: https://i.imgur.com/1e0nTx1.png
Alright, I’ve updated it to
0.0.5
and now it handles both inline and fixed-size index thumbnails. The thumbnails on the index get cropped to fit the hard dimensions of the squares and maintain the correct aspect ratio. In the case of inline images, they just get scaled to 50% of the original size with no constraint on the height.Alright, those index thumbnails are confined to a 220x145 square, so we can handle those separately by using the
cover
method of theobject-fit
property to scale them. Give me a minute to update it…