SeeStack

Add titles to Substack redirect links in Gmail, exposing the target URL

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

Yazar
Kevin Shay
Günlük kurulumlar
0
Toplam kurulumlar
6
Değerlendirmeler
0 0 0
Versiyon
0.12
Oluşturulma
22.11.2023
Güncellenme
05.12.2023
Boyut
3,89 KB
Lisans
N/A
Geçerli

Newsletters sent via Substack often contain links added by the author. The links in the email go to a redirect service on the Substack site. Click them and you’ll arrive at the intended page, but there’s no way to tell, by mousing over these opaque URLs, where you’ll end up or what site the author linked to.

This script tries to address this, at least when you’re reading newsletters in Gmail on a desktop web browser. It looks for Substack redirect links within a message, tries to determine where each one redirects to, and adds a title tag to the link containing the destination URL, which will appear as a tooltip when you hover the mouse cursor over the link. It does not modify the link URL itself; the intention is not to circumvent Substack’s tracking, but simply to provide some transparency into where the links lead.

This initial version has a few caveats.

  • First of all, it currently needs to work (see code comment for details) by handling errors when fetching the redirect URLs, so you’ll see errors if you happen to have the browser’s console open. (Gmail itself tends to throw lots of errors in there too!)
  • Also, it uses a simple delay to try to wait until the email has been loaded; this can certainly be improved.
  • Finally, it would be preferable to inspect each link only when you hover over it rather than all at once, but trying to do it this way seemed to provide a worse user experience (see code for details).

Bug reports and feature requests are welcome. I’ll put the script on GitHub if there’s any interest.