This script unsquashes inline images in comments by fetching the source image and downscaling it to 50%.

Edit: also updated it to support the thread index