Skip to content

Instantly share code, notes, and snippets.

@neingeist
Created December 13, 2022 22:46
Show Gist options
  • Save neingeist/fadb885bc3b53ceec196dd95e2bd68b2 to your computer and use it in GitHub Desktop.
Save neingeist/fadb885bc3b53ceec196dd95e2bd68b2 to your computer and use it in GitHub Desktop.
user script mastodon.social - mark img elements without alt attribute
// ==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);
@neingeist
Copy link
Author

this could easily be user style and improved in various ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment