Greasy Fork is available in English.

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.

Penulis
marp
Pemasangan harian
0
Total pemasangan
3.014
Nilai
23 1 0
Versi
4.2
Dibuat
30 Desember 2018
Diperbarui
29 September 2023
Lisensi
GNU AGPLv3
Berlaku untuk

ANY AND ALL FEEDBACK IS WELCOME!

This script modifies Twitter image posts:

  • All image post thumbnails are modified to display uncropped.
  • All thumbnails of image posts link to their high-res "orig" (originally uploaded) version. This is easily accessible by opening in a new tab via "middle-mouse" click.
  • Some "Sensitive Content" warnings with blurred images remain even if this has been turned off in Profile Settings. The blur-effect for these is removed (note: other blur effects might also be removed)

Usage notes:

  • If navigating from Home to a specific blog stream, a manual reload is sometimes required to trigger the script (reason unknown, symptom is that images are not resized to display uncropped).
  • If image is opened in extra tab -> press CTRL-S (Firefox) or Right-click | Save Image As
  • In stream or single post view -> Right-click | Save Link As (FireFox) will save the "orig" high-res version of the image. This will NOT work if image link is of type "webp" - in this case the image must be opened in another tab and saved from there (see next point).
  • Twitter seems to be manipulating embedded images to be of type "webp" even if the originally uploaded image was of another type (like jpg or png). This will throw off the link to the original image. If this occurs, the script uses a secondary stage to determine the correct "orig" URL when opening it.
  • If (manually) opening a non-"orig" image URL in tab -> the script will automatically switch to "orig" version

Tested on Firefox with both TamperMonkey and GreaseMonkey.

The script is presented AS-IS with no guarantees - feedback is welcome.