Twitter - clickable links to images and show uncropped thumbnails

All image posts in Twitter Home, other blog streams and single post views link to the high-res "orig" version. Thumbnail images in the stream are modified to display uncropped.

These are versions of this script where the code was updated. Show all versions.

  • v2.5 2020-09-09 Fix context menu items specific to images not appearing for single-image posts ("View Image", "Save Image As", entries added by add-ons, etc.). Many Thanks to 四葉シグレ for reporting the issue!
  • v2.4 2020-07-30 Some thumbnails were not getting resized correctly anymore - fixed
  • v2.3.2 2020-03-08
  • v2.3.1 2020-01-07 remove commented out code - will not reenable capability of thumbs to resize themselves (too many side-effects)
  • v2.3.0 2019-09-26 Twitter significantly changed the internal logic for 2x and 4x image posts -> disable height resizing -> back to keeping post heights as original and resizing thumbnails to display uncropped within the available height -> i.e. images get smaller as the resize -> as a positive side effect, this removes any "bumpyness" in scrolling back up
  • v2.2.0 2019-08-06 images are resized to their maximum height while respecting aspect ratio and available width
  • v2.1.0 2019-08-06 Apply to single image posts (URL: .../status/...) and apply script more reliably on stream views
  • v2.0.1 2019-07-26 no function change - update to description, only
  • v2.0.0 2019-07-25 Major update to support new Twitter UI
  • v1.1.1 2019-01-06 FIXED: null-pointer exception - bug had no negative effect but was slightly embrassing
  • v1.1.0 2019-01-05 ADDED: uncrop thumbnails - ADDED: apply script to post displayed in overlay - FIXED: various typos in comments and some minor code cleanup
  • v1.0.0 2018-12-30
  • v1.0.0 2018-12-30
  • v1.0.0 2018-12-30