Skip to content

Instantly share code, notes, and snippets.

@eai04191
Last active September 6, 2024 12:38
Show Gist options
  • Save eai04191/d00558bb64f152368a8ec983004f0d8b to your computer and use it in GitHub Desktop.
Save eai04191/d00558bb64f152368a8ec983004f0d8b to your computer and use it in GitHub Desktop.
/* ==UserStyle==
@name Mastodon プライバシーに配慮するやつ 2024
@namespace mizle.net
@version 1.0.3
@author Eai
@license MIT
@preprocessor stylus
==/UserStyle== */
@-moz-document regexp("https://.+/deck/.+") {
:root {
--fill-color: gray;
}
.notification__message > * {
color: transparent !important;
background: var(--fill-color) !important;
border-radius: clamp(2px, 50%, 5px);
& i {
color: transparent !important;
}
}
.status__prepend *,
.display-name *,
.status__relative-time > *,
/* .status__content, */
.status__content *,
.poll__option *,
.poll__footer,
.poll__footer > *,
.hashtag-bar > a,
/* OGP content */
.status-card__content > *,
/* detail内 投稿日時など */
.detailed-status__meta > * {
color: transparent !important;
background: var(--fill-color) !important;
border-radius: clamp(2px, 50%, 5px)
}
/* 画像関連 */
.account__avatar img,
.media-gallery img,
.media-gallery canvas,
.media-gallery video,
.status-card__image,
.display-name img.emojione {
filter: contrast(0);
background: var(--fill-color);
}
.media-gallery__item__badges,
.spoiler-button {
display: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment