正確的Twitter貼文圖片替代文字

將Twitter貼文的圖片替代文字從單純的「圖片」改為帶有使用者名稱、帳號、網域的替代文字,以增加辨識度。

< 腳本正確的Twitter貼文圖片替代文字的回應

提問/評論

§
發表於:2025-01-22

Hello,

It's possible to have a screenshot of what your script actually does for a better understanding of its use please ?

Thank you for your answer.

Google Chrome and Mozilla Firefox Browsers with Tampermonkey or Violentmonkey

Max46656作者
§
發表於:2025-01-22
編輯:2025-01-22

before

<img alt="圖片" draggable="true" src="https://pbs.twimg.com/media/Gf0kIXyWAAAm5rU?format=jpg&amp;name=medium" class="css-9pa8cd">

after

<img alt="Mori CalliopeholoEN(holoEN)的圖片來自推特" draggable="true" src="https://pbs.twimg.com/media/Gf0kIXyWAAAm5rU?format=jpg&amp;name=medium" class="css-9pa8cd">

as you can see,with this script,the alt of img will show who post this.

Max46656作者
§
發表於:2025-01-22

This change will be determined by the user's selected language and supports the following languages:
Traditional Chinese (zh-Hant), English (en), Japanese (ja), Spanish (es), French (fr), German (de), Italian (it), and Korean (ko).

§
發表於:2025-01-22

Okay, if I understand correctly so I need to access at the console of browsers to see the informations that your script provides ?

Max46656作者
§
發表於:2025-01-22
編輯:2025-01-22

not sure what are you trying to do,which informations do you need?
does this script not functional?

§
發表於:2025-01-22

In fact, I was trying to understand how your script works according to your description "Updates alt text for Twitter images to include username, account, and domain for better recognition." because when I installed it and that I click on an image, I couldn't see anything more with your script enabled on Twitter or X.

Max46656作者
§
發表於:2025-01-22

The purpose of this script is to address Twitter's laziness in describing image alt.
The alt attribute of the tag serves as alternative text when an image fails to load correctly.
For general users, it is unnecessary to have highly accurate alternative text.
This script is created to ensure that my other programs can use it as image's title.
Therefore, if you genuinely need accurate alternative text, you won't need to open the console to notice this script's behavior.

Max46656作者
§
發表於:2025-01-22
編輯:2025-01-22

just for clarification, what do you expect to happen when you click on the image?

§
發表於:2025-01-22

Okay, I see and thanks a lot for your explanations :-)

As a normal user, I search and test many scripts for a better use of any website.

I thought that your script displayed on the image "the username, account, and domain" on mouse over or displayed them more prominently on the right side per example...

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址