Vencord / plugin-requests

Vencord plugin requests. Open the link below to create a request
https://github.com/Vencord/plugin-requests/issues/new?template=request.yml
29 stars 2 forks source link

Hide other users' statuses #967

Open Feannay opened 3 months ago

Feannay commented 3 months ago

Plugin Description

I'd like if possible a way to disable seeing status from other people manually, like being able to right click the user and have an option to stop seeing their custom statuses. This may look niche, but I've seen a lot of people (including on the discordapp reddit) requesting this feature, including myself. Some people tend to have custom statuses that make me uncomfortable and I'd love a way to stop seeing them, for now I just straight up hide the users list, but this isn't ideal, mostly when some of those people are in my friendslists.

Existing Plugin for other mod

No response

Request Agreement

Krammeth commented 3 months ago

Pretty sure it can be done with css, also #480

Krammeth commented 3 months ago

took me a bit to cook, but this should work

/* hide specific users' status */
[src*="ID"] /* <- create a copy of [src*="ID"] to add more people, use commas to separate them */
  { [class^=avatarStack_] > & 
    { [class^=member_] [class^=memberInner_]:has(&) [class^=content_] [class^=subText_] > [class^=activity_], /* memberlist */
      [class^=privateChannels_] > [class^=scroller_] [class^=content_] > [class^=channel_]:has(&) [class^=subText_], /* DMs list */
      [class^=peopleListItem_] [class^=userInfo_]:has(&) [class^=subtext_] /* friends list */
        { display: none; } 
      [class^=userPopoutInner_] header:has(&), /* popout */
      [class^=userPanelInner_] header:has(&) /* DMs panel */ 
        { & [class^=invisibleContainer_],
          & > div:not([class]) > [class^=visibleContainer] 
            { display: none; } } } }
Feannay commented 3 months ago

Omg thank you so much!! I don't know a thing about coding so this truly helped! And sorry I didn't see that one plugin request although I searched! I used the css you sent and it works well!

It still displays status in the friendlist though, is there something I can add/change to hide them completely?

Other than that it's perfect thank you so much!

Krammeth commented 3 months ago

It still displays status in the friendlist though

oop, good catch, I forgot about that part, I'll edit my previous message with the fix in a bit

Krammeth commented 3 months ago

fixed, should work fine now let me know if I missed anything else

Feannay commented 3 months ago

It works perfectly!! Thank you so much for the quick response!!

Krammeth commented 3 months ago

You're welcome, it was fun to make 👍

Krammeth commented 3 months ago

turns out I had also forgot about the full popout status, so here you go

/* hide specific users' status */
[src*="ID"] { /* <- copy the [src*="ID"] to add more people */
  [class^=avatarStack_] > & { 
    [class^=member_] [class^=memberInner_]:has(&) [class^=content_] [class^=subText_] > [class^=activity_], /* memberlist */
    [class^=privateChannels_] > [class^=scroller_] [class^=content_] > [class^=channel_]:has(&) [class^=subText_], /* DMs list */
    [class^=peopleListItem_] [class^=userInfo_]:has(&) [class^=subtext_] { /* friends list */
      display: none; 
    } 
    [class^=userPopoutInner_] header:has(&), /* popout */
    [class^=userProfileModalInner_] header:has(&), /* full popout */
    [class^=userPanelInner_] header:has(&) { /* DMs panel */ 
      & div:not([class]) {
        & > [class^=invisibleContainer_],
        & > [class^=visibleContainer_] { 
        display: none; 
        } 
      } 
    } 
  }
}

this should be the final iteration of the snippet, unless Discord changes profiles stuff again