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.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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.