Skip to main content


So the hover cards landed on mastodon.social… I didn't even make it a full day before creating a userstyle to forcibly disable them >_>
in reply to mcc

I was about to ask but instead, refreshed the page and eughh
in reply to mcc

I also finally got around to updating my user style for hiding the "ALT" tag on images on Mastodon. Mastodon nicely made a change to their css to make this userstyle easier to implement, but this broke the contrived way I'd implemented it before & I didn't get around to fixing it until now lol userstyles.world/style/9811/ma…

Not quite ideal because what you really want is the *reverse* (a penalty tag on images *without* an alt, instead of a penalty tag on images with one) but idk how to userstyle that.

in reply to mcc

Not sure whether to publish the hover-card blocker userstyle because it's a feature that's only on one site & still under active development
in reply to mcc

My home instance has a Red Bar of Shame for media without an alt text - here's the CSS which still appears to work for upstream Mastodon as well (kudos to @esther and/or @james for setting this up):
.audio-player__canvas:not([title]),<br>.audio-player__canvas[title=""],<br>.media-gallery__gifv video:not([title]),<br>.media-gallery__gifv video[title=""],<br>.media-gallery__item-thumbnail img:not([alt]),<br>.media-gallery__item-thumbnail img[alt=""],<br>.video-player video:not([title]),.video-player video[title=""] {<br>  border-bottom: 4px solid #F45;<br>  box-sizing: border-box;<br>}<br>
in reply to viernullvier

@esther @james @viernullvier but wait, isn’t empty alt conventionally intended as decorative non-semantic element marker? I’m coming from HTML a11y, which might obscure the perspective here.
in reply to Floating Point Error

As you can see there are lots of selectors meaning that this applies to a particular element on a particular website for which the value/semantics of alt are known
This entry was edited (4 months ago)
in reply to mcc

if you hide ALT how do people click on it to read the text? Or is it like title text on the browser version of Mastodon?
in reply to mcc

"the hover cards landed" - the one thing they weren't supposed to do!!

mcc reshared this.

in reply to mcc

Yes. I think hover cards should have another design or only being displayed in screens with sufficient room for that without hide anything
in reply to mcc

I am having an idea. I hope to get that. Why don't put all cards in the right or left margin (if there are place for that) and erase then when one exit from the zone of that contact's article/commentary? Or is that not so good idea?
in reply to forza4galicia

@forza4galicia That's interesting, maybe you should suggest that to the Mastodon project! But it doesn't really make sense in the advanced mode, which is what I use.

Advanced mode is basically already like that but with clicking instead of hovering.

in reply to mcc

Then is better, by default, deactivate that in advanced mode, and, in general, have a setting to deactivate hover cards... (a moment)
in reply to mcc

Any plans to submit a patch to make hover cards and ALT tags toggleable in the options, in mainline Mastodon?
in reply to Carlos Solís

@csolisr I've asked in the discord if we can get that option.

"Option" patches are sometimes not smiled on by software projects because they imply a long term maintenance obligation, and also, I have yet to get a local test copy of Mastodon working, so this would create a difficulty with testing any patch.

in reply to mcc

Fair enough that! Basically you'd need your own self-hosted server to dogfood your own test patches, as to not break things for anyone else