Is there any way on Mastodon to automatically filter out image posts with no alt text?
-
@cryptids would love to know, because I'm personally done with accidentally boosting non-alt posts.
I hate retracting a boost, but my ethics say: no alt, no boost
-
@nightdice @cryptids yeh, but... web page mostly here, like many of us
-
@nightdice @cryptids yeh, but... web page mostly here, like many of us
-
Is there any way on Mastodon to automatically filter out image posts with no alt text?
Please boost- this is an actual question
@cryptids on the web app you can use ublock filters to do this -
Is there any way on Mastodon to automatically filter out image posts with no alt text?
Please boost- this is an actual question
@cryptids A good question.
One can choose to be forced to provide ALT. Might be a client thing.
One small(?) thing: I’ve also noticed clients tend to offer slop-service generated ALT text. I however do prefer no ALT over confabulated slop. The null string beats the abomination.
-
@cryptids Some instances, like mastodon.art, have CSS set up that puts a warning frame around media without alt text. Maybe it could be set up on your instance, or with a browser plugin? Plus, I suppose adblock for a more "nuclear" option..
@samerion @cryptids Yes, I have that CSS set up on my instance. Here it is:
.media-gallery__item-thumbnail img:not([alt]), .audio-player__canvas:not([title]), .video-player video:not([title]), .media-gallery__gifv video:not([title]), .media-gallery__item-thumbnail img[alt=""], .audio-player__canvas[title=""], .video-player video[title=""], .media-gallery__gifv video[title=""] {border: 2px dashed rgba(251, 47, 47, 0.5);box-sizing: border-box;}
-
@samerion @cryptids Yes, I have that CSS set up on my instance. Here it is:
.media-gallery__item-thumbnail img:not([alt]), .audio-player__canvas:not([title]), .video-player video:not([title]), .media-gallery__gifv video:not([title]), .media-gallery__item-thumbnail img[alt=""], .audio-player__canvas[title=""], .video-player video[title=""], .media-gallery__gifv video[title=""] {border: 2px dashed rgba(251, 47, 47, 0.5);box-sizing: border-box;}
@samerion @cryptids This only draws the red dashed border around the image. But with a bit of tweaking you could use this to hide the container of the toot itself. If you are not the instance maintainer, then you could ask them, or you would have to inject that CSS in some other way, like with a browser extension.
The toot will still be in the HTML, so I don't know how screen readers would process that (if that is the reason for hiding those toots).
-
Is there any way on Mastodon to automatically filter out image posts with no alt text?
Please boost- this is an actual question
@cryptids I don't think so, but an alternative solution is to use a browser extension like TamperMonkey that lets you inject css and/or javascript into any site.
If you were to set up a basic TamperMonkey script for the site(s) in question, the following will hide every post that has an image without alt text, or no alt attribute at all.
```
GM_addStyle('
article:has(img[alt=""]),
article:has(img:not([alt])) {
display: none;
}
');
```See also: https://www.freecodecamp.org/news/customize-website-experience-with-tampermonkey/
-
@det Yeah I did some looking into it and all I could find was a uBlock filter for it (and an old feature request thread on Github) :/
Shame, I guess I'll just resort to muting people or something

@cryptids@yip.gay @det@critter.cafe on the flipside, however, I’m trying out this new instance of catodon for a while, and I note that if one tries to post an image without bothering to fill in at least something in the alt text, it has a special leg that reaches out and boots you in the crotch.
[offstage whisper]
Oh wait, not a boot, it politely tells you to do your alt text you bastard
[offstage whisper again]
No bastard. It just tells you to do the alt text. -
@det Yeah I did some looking into it and all I could find was a uBlock filter for it (and an old feature request thread on Github) :/
Shame, I guess I'll just resort to muting people or something

@cryptids Can you please share the filter?
-
Is there any way on Mastodon to automatically filter out image posts with no alt text?
Please boost- this is an actual question
@cryptids moshidon is a mobile client that can do it. unfortunately mouse doesn't know a similar thing for desktop
-
Is there any way on Mastodon to automatically filter out image posts with no alt text?
Please boost- this is an actual question
@cryptids I think @alice has said she has a tool for filtering out images without alt text, but I had trouble searching her posts, so the best I found was this. https://lgbtqia.space/@alice/116200750952476282 -
Is there any way on Mastodon to automatically filter out image posts with no alt text?
Please boost- this is an actual question
@cryptids I can't see an obvious way to do this directly on Pleroma or GotoSocial (the instance types I run) but at least with Pleroma/Akkoma I think you could write an MRF (https://docs-develop.pleroma.social/backend/configuration/mrf/) to do it (and I'll have a go later, just to see if it's possible.)
(Had a look in the Mastodon code but can't see anything obvious there either.) -
@det Yeah I did some looking into it and all I could find was a uBlock filter for it (and an old feature request thread on Github) :/
Shame, I guess I'll just resort to muting people or something

@cryptids that's what I do
-
@cryptids I think @alice has said she has a tool for filtering out images without alt text, but I had trouble searching her posts, so the best I found was this. https://lgbtqia.space/@alice/116200750952476282
-
undefined oblomov@sociale.network shared this topic
-
