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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
marp
今日安裝
0
安裝總數
3,351
評價
27 1 0
版本
4.3
建立日期
2018-12-30
更新日期
2024-05-21
尺寸
14.3 KB
授權條款
GNU AGPLv3
腳本執行於

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.