Created
December 13, 2022 22:46
-
-
Save neingeist/fadb885bc3b53ceec196dd95e2bd68b2 to your computer and use it in GitHub Desktop.
user script mastodon.social - mark img elements without alt attribute
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
// ==UserScript== | |
// @name mastodon.social - mark img elements without alt attribute | |
// @namespace neingeist | |
// @match https://mastodon.social/* // CHANGE THIS | |
// @grant none | |
// ==/UserScript== | |
const style = document.createElement('style'); | |
style.textContent = ".media-gallery__item img:not([alt]) { opacity: 0.25; border-left: 1rem dashed red; }"; | |
document.head.append(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this could easily be user style and improved in various ways.