Skip to content

Add label for external link on X by horihiro

Details

Authorhorihiro

LicenseNo License

Categorytwitter, X

Created

Updated

Size592 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Add label for external link on X

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Add label for external link on X
@version      20231129.23.01
@namespace    userstyles.world/user/horihiro
@description  Add label for external link on X
@author       horihiro
@license      No License
==/UserStyle== */

@-moz-document domain("twitter.com") {
a[role="link"][target="_blank"]:has(img)::after {
    content: attr(aria-label);
    width: 100%;
    background-color: rgba(63, 63, 63, 0.9);
    padding: 5px;
    color: white;
    position: absolute;
    bottom: 0;
}

a[role="link"][target="_blank"]:has(img)>div:last-child {
    display: none;
}
}

Reviews

No reviews yet.