Skip to content

Instantly share code, notes, and snippets.

@lae
Created April 27, 2017 15:09
Show Gist options
  • Save lae/de999cc48cd9701a36b871dd4ebf374b to your computer and use it in GitHub Desktop.
Save lae/de999cc48cd9701a36b871dd4ebf374b to your computer and use it in GitHub Desktop.
hides media on twitter behind spoiler text
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
.js-media-container,
.AdaptiveMedia {
display: none;
}
.permalink-tweet .AdaptiveMedia,
.permalink-tweet .js-media-container {
display: block;
}
.AdaptiveMediaOuterContainer::before {
content: "[media hidden]";
color: rgba(255, 203, 203, 0.8);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment