Skip to content

Instantly share code, notes, and snippets.

@cadars
Last active March 13, 2022 23:27
Show Gist options
  • Select an option

  • Save cadars/241b64c3fdfd0775ddfe3da69ee5f3b8 to your computer and use it in GitHub Desktop.

Select an option

Save cadars/241b64c3fdfd0775ddfe3da69ee5f3b8 to your computer and use it in GitHub Desktop.
javascript:(function(){var id='add-alt-text-overlay';var s=document.getElementById(id); if(s){s.parentNode.removeChild(s)}else{s=document.createElement('style');s.id=id;s.innerHTML='div[data-testid="tweetPhoto"]:not([aria-label="Image"]),div[data-testid="previewInterstitial"]:not([aria-label="Embedded video"]){margin:0!important;}div[aria-label="Play this GIF"]{position:absolute;}div[data-testid="tweetPhoto"]:hover:not([aria-label="Image"]):after,div[data-testid="previewInterstitial"]:hover:not([aria-label="Embedded video"]):after{content:attr(aria-label);background:#000000dd;color:#fff;padding:.6em .9em;font-family:system-ui,sans-serif;line-height:130%;z-index:1;overflow:auto;}';document.head.appendChild(s);}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment