Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2021 15:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Display alt text on Twitter Web
/* Based on MerryMage's twitter.css ( */
div[data-testid="tweetPhoto"] {
margin: 0 !important;
div[data-testid="tweetPhoto"]:not([aria-label="Image"]):hover:after {
content: attr(aria-label);
color: white;
text-shadow: 0 0 2px black;
font-family: sans-serif;
font-size: 80%;
padding: 25px;
background: rgba(0,0,0,.5);
white-space: pre-wrap;
pointer-events: none;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment