Twitter/X - clickable links to images and show uncropped thumbnails

All image posts in Twitter/X 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.

Autor
marp
Dnevne instalacije
1
Ukupno instalacija
3.246
Ocene
25 1 0
Verzija
4.3
Napravljeno
30/12/2018
Ažurirano
21/05/2024
Licenca
GNU AGPLv3
Važi za

ANY AND ALL FEEDBACK IS WELCOME!

This script modifies Twitter/X 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:

  • When 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/X 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.