Created
December 28, 2022 15:04
-
-
Save fimion/6a0d7c969fe8b1705e749dfa57456adf to your computer and use it in GitHub Desktop.
Mastodon 4.0.2 hide posts with no alt text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* hides everything inside the status wrapper */ | |
.item-list>article:has(.media-gallery__item img:not([alt])) .status__wrapper .status *{ | |
display: none; | |
} | |
/* lets you know it hid something */ | |
.item-list>article:has(.media-gallery__item img:not([alt])) .status__wrapper .status:after{ | |
content:"Post hidden for lack of alt text" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment