Skip to content

Mastodon remove alt penalty by mcclure

Details

Authormcclure

LicenseCC0 / public domain

Categorymastodon.social, octodon.social, tenforward.social

Created

Updated

Size449 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

A recent Mastodon update began penalizing images with alt text by including a Twitter-style, partially-obscuring label reading "ALT". This removes the label.

Notes

Thanks to Tavy.

According to reports this only works in Firefox if you enable ":has" in about:config.

Source code

/* ==UserStyle==
@name         Mastodon remove alt penalty
@version      20230512.20.50
@namespace    ?
==/UserStyle== */

@-moz-document regexp("https?:\\/\\/(octodon|mastodon|tenforward)\\.social\\/.*") {
.media-gallery__item:has(img[alt]) .media-gallery__gifv__label {
    display:none
}

.media-gallery__item:has(video[aria-label]) .media-gallery__gifv__label:first-child:has(~ .media-gallery__gifv__label) {
    display:none
}

}

Reviews

No reviews yet.