#simpler selectors cuz why not

1 messages · Page 1 of 1 (latest)

mortal heath
#
[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

sick halo
#

Is it possible to hide, for example, only the user’s avatar?

mortal heath
#

uhhh, why would you want to?

sick halo
mortal heath
#

nvm,

[src*="ID"] {
  &[class^=avatar_] {
    visibility: hidden;
  }
}```
does
sick halo
#

It’s kind of even a little embarrassing or something..

mortal heath
mortal heath
dark flame
mortal heath
#

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

dark flame
mortal heath
#

Love how I don't remember what certain parts are for because it's been too long

#

But oh well, it works

dark flame