#simpler selectors cuz why not
1 messages · Page 1 of 1 (latest)
[src*="ID"] {
[class^=avatarStack_] > & {
[data-list-item-id^="members-"]:has(&) [class^=activity_], /* members list */
[data-list-item-id^="private-channels-uid_"]:has(&) [class^=subText_], /* DMs list */
[class^=peopleListItem_] [class^=userInfo_]:has(&) [class^=subtext_] { /* friends list */
display: none;
}
[class^=biteSizeInner_] header:has(&), /* popout */
[class^=userProfileModalInner_] header:has(&), /* full popout */
[class^=userPanelInner_] header:has(&) { /* DMs panel */
& div:not([class]) {
& > [class^=invisibleContainer_],
& > [class^=visibleContainer_] {
display: none;
}
}
}
/* now hides their activities as well */
div:not([class]):has([class^=userSection] &) { /* activity tab */
display: none;
}
[class^=biteSizeInner_]:has(&), /* popout */
[class^=userProfileModalInner_]:has(&), /* full popout */
[class^=userPanelInner_]:has(&) { /* DMs panel */
& [class^=body_] {
& [class*=card_] {
display: none;
}
}
}
/* active now tab */
[class^=nowPlayingColumn_] [class^=itemCard_]:has(&) {
& header div:not([class]) > div:nth-child(2), /* activity name */
& header [class^=headerIcon_], /* activity icon */
& [class^=body_] { /* channel name */
display: none;
}
}
}
}```
used simpler selectors for the 1st part, then added a nest for the popouts
Is it possible to hide, for example, only the user’s avatar?
uhhh, why would you want to?
I don't know, purely scientific interest :)
nvm,
[src*="ID"] {
&[class^=avatar_] {
visibility: hidden;
}
}```
does
Oh, so simple..
It’s kind of even a little embarrassing or something..
Yeah xD
Now that I think about it, discord broke it with the new profiles

would love for this to be updated to work with the new profiles
am also willing to donate for it if that's any option
Will post an updated version later, no need for donations xD
Might as well improve it with better selectors, since all these :has() might cause lag

thank you, i really appreciate you
Love how I don't remember what certain parts are for because it's been too long
But oh well, it works

#🎨-css-snippets message
there you go!

thank you so much! you are a lifesaver and i owe you, i really do