Gmail - Hover to show the URL behind a link

Make the href in each link more visible when a mouse hovers over so the user doesn't accidentally click on an unexpected (and potentially spam) link

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
chuyaguo2014
今日安裝
0
安裝總數
17
評價
0 0 0
版本
0.2
建立日期
2022-12-11
更新日期
2022-12-11
尺寸
1.4 KB
授權條款
MIT
腳本執行於

By default, in Chrome, if you hover your mouse over a link (aka an <a> tag in HTML), the actual URL shows up in the lower left corner, which is both hard to read and hard to remember. Many spammers will hide malicious URLs behind what seems to be legit/safe text. 😕

This script will copy the actual URL and display it in a blob right next to the link (instead of the default lower left corner of the screen - which is far away) so it's easier to tell what you are clicking into.

Please see the screenshot attached to see an example from a spam email that pretended to be FedEx.

Assumptions/Potential limitations:

  1. the script checks for the presence of the 'reply' button - if found, we assume we have an email open
  2. if the link already has a title (aka the text you see when hovering) set, this script won't change it and thus wouldn't display the actual URL behind it.
  3. it takes about 0.5-1 second the first time you hover your mouse over the link for the actual URL to appear right next to it. But subsequent hovers should hopefully produce the actual URLs faster.
    • I am not sure why this delay exists! any suggestion is appreciated!