Skip to content

Instantly share code, notes, and snippets.

@aaravrav
Last active October 1, 2024 21:08
Show Gist options
  • Save aaravrav/d66e2369074fb70f74e061062c77e9c4 to your computer and use it in GitHub Desktop.
Save aaravrav/d66e2369074fb70f74e061062c77e9c4 to your computer and use it in GitHub Desktop.
Modifications for the Discord client to remove the clutter
/*==========
RemoveClutter.theme.css by aaravrav
How to inject: Paste in "Custom CSS" tab in BetterDiscord or download and use as theme
========== */
/* Stickers same size as emojis */
.assetWrapper-3GNt0z {
max-width: 48px;
max-height: 48px;
}
/* Removes the nitro button at left-bottom */
.fixedBottomList-1yrBla {
display: none;
}
/* Removes the Search Bar at the top of DMS */
.searchBar-3TnChZ {
display: none;
}
/* Removes the Big Nitro Button */
a[href="/store"] {
display: none;
}
/* Removes "Inbox" button */
div[aria-label="Inbox"] {
display: none;
}
/* Removes "Support" question mark button */
a[href="https://support.discord.com"]
{
display: none;
}
/* Removes "Support" question mark button from search popup */
.searchLearnMore-1gNL3A {
display: none;
}
/* Removes "Active Now" section in Friends tab */
*[class^='nowPlayingColumn'] {
display: none;
}
/* Removes the "Group DM" button and divider in Friends tab */
.inviteToolbar-2k2nqz {
display: none;
}
/* Removes "Gift nitro" button from message bar */
button[aria-label="Send a gift"] {
display: none;
}
/* Removes "Sticker picker" button from message bar */
button[aria-label="Open sticker picker"] {
display: none;
}
/* Removes "GIF picker" button from message bar */
button[aria-label="Open GIF picker"] {
display: none;
}
/* Hides "Mark as Read" and icon in the "Unread messages" notification */
.barButtonAlt-TQoCdZ.barButtonBase-Sk2mdB {
display: none;
}
/* Hides the New Message indicator next to only folders */
.wrapper-38slSD > .listItem-3SmSlK > .pill-2RsI5Q {
display: none;
}
/* Nitro Shop */
[data-list-item-id*="__nitro"] {
display: none;
}
[data-list-item-id*="__shop"] {
display: none;
}
[aria-label="Send a gift"]{
display: none;
}
/* Disable Store button in Home tab */
a[href="/shop"] {
display:none;
}
@aaravrav
Copy link
Author

#app-mount > div.appDevToolsWrapper-1QxdQf > div > div.app-3xd6d0 > div > div.layers-OrUESM.layers-1YQhyW > div:nth-child(2) > div > div.sidebarRegion-1VBisG > div > nav > div > div:nth-child(9)~div:not(#app-mount > div.appDevToolsWrapper-1QxdQf > div > div.app-3xd6d0 > div > div.layers-OrUESM.layers-1YQhyW > div:nth-child(2) > div > div.sidebarRegion-1VBisG > div > nav > div > div:nth-child(16) ~ div) {
  display: none;
}

Looks like the previous code stopped working unexpectedly, can confirm this works

@verbes4
Copy link

verbes4 commented Nov 25, 2022

thank you, this works perfectly. i starred the gist :)

@verbes4
Copy link

verbes4 commented Dec 8, 2022

would it be possible to remove the new snowsgiving button at the top of the dms list? :)

@NayooZ
Copy link

NayooZ commented Dec 10, 2022

would it be possible to remove the new snowsgiving button at the top of the dms list? :)

/* Hide Snowsgiving */
a[class^="anchor-1MIwyf anchorUnderlineOnHover-2qPutX snowsgivingLink-1TZi3c"] { display: none; }

@verbes4
Copy link

verbes4 commented Dec 12, 2022

would it be possible to remove the new snowsgiving button at the top of the dms list? :)

/* Hide Snowsgiving */ a[class^="anchor-1MIwyf anchorUnderlineOnHover-2qPutX snowsgivingLink-1TZi3c"] { display: none; }

works perfectly, thanks :)

@Shaddow798
Copy link

If you could please modify your hide public servers code to fix it when you are hovering over the whitespace and for when the window is too small remove the gap at the bottom of the list it creates.
image

@aaravrav
Copy link
Author

If you could please modify your hide public servers code to fix it when you are hovering over the whitespace and for when the window is too small remove the gap at the bottom of the list it creates. image

i guess you can use the following instead of the original code but its hacky. if i had more time i would have done a proper solution

#app-mount > div.appDevToolsWrapper-1QxdQf > div > div.app-3xd6d0 > div > div.layers-OrUESM.layers-1YQhyW > div > div.container-1eFtFS > nav > ul > div.scroller-3X7KbA.none-2-_0dP.scrollerBase-_bVAAt > div:nth-child(5) {
        display: none;
}

@ahm-t
Copy link

ahm-t commented Nov 8, 2023

@aarav2you Could you remove the new nitro shop that's under the "Message Requests" button in the dms screen

@NayooZ
Copy link

NayooZ commented Nov 9, 2023

@aarav2you Could you remove the new nitro shop that's under the "Message Requests" button in the dms screen


[data-list-item-id*="__nitro"] {
  display: none;
}
[data-list-item-id*="__shop"] {
  display: none;
}
[aria-label="Send a gift"]{
  display: none;
}

@C-Kenny
Copy link

C-Kenny commented Dec 3, 2023

The Discord div class names seem to have a random string at the end of the name that changes on their builds. For example it used to be nowPlayingColumn-1eCBCN and now it's nowPlayingColumn_f5023f. Is there a way to match only the prefix of the element names?

For now the latest way to hide "active now" users is:

/* Removes "Active Now" section in Friends tab */
.nowPlayingColumn_f5023f {
        display: none;
}

@Nightblade
Copy link

Nightblade commented Jan 17, 2024

@C-Kenny

/* Removes "Active Now" section in Friends tab */
*[class^='nowPlayingColumn'] {
    display: none;
}

@forever-and-a-day
Copy link

Could you also all a rule removing the shop?

@Nightblade
Copy link

Nightblade commented Feb 22, 2024

@forever-and-a-day

/* Disable Store button in Home tab */
a[href="/shop"] {
    display:none;
}

@LavenderAndChamomile
Copy link

LavenderAndChamomile commented Apr 28, 2024

Glad to see that this long code still works!

@USBCharger
Copy link

USBCharger commented Apr 29, 2024

Could you drop the css code here on how I can remove the Download Apps button? (I'm using vesktop, hence why it appears)

Also, how would we go about finding the css code that goes to a button in case I want to remove more in the future, or modify other
things?

Edit: I'm realizing this is not caused by Vesktop but a my-theme-is-old-and-has-problems issue lol
Edit 2: I just went with another theme, but being linked to a tutorial or smth to learn how to do this may still be helpful in the future to me - or others

@GSNotifications
Copy link

Anyone have CSS for removing the "Translate Modal" button in chats?

@aaravrav
Copy link
Author

@GSNotifications I am not sure what that is. Could you write the steps to activate it?

@GSNotifications
Copy link

@GSNotifications I am not sure what that is. Could you write the steps to activate it?

It's okay, I found out that for some reason I had a Google Translate plugin enabled via Vencord. Apologies on the useless request.

@aaravrav
Copy link
Author

aaravrav commented Sep 26, 2024

Also, how would we go about finding the css code that goes to a button in case I want to remove more in the future, or modify other things?

...but being linked to a tutorial or smth to learn how to do this may still be helpful in the future to me - or others

@USBCharger You need to learn what CSS selectors are and how you can use them. Then use inspect element to see the path of the element. If you have ublock origin just select the element with the element zapper and use that instead as it's easier

@UWPA
Copy link

UWPA commented Sep 26, 2024

Anyone have the selector or even a full block to disable the activity at top of servers they recently introduced?

@aaravrav
Copy link
Author

Anyone have the selector or even a full block to disable the activity at top of servers they recently introduced?

Can you send a screenshot? I don't see it

@UWPA
Copy link

UWPA commented Sep 27, 2024

Anyone have the selector or even a full block to disable the activity at top of servers they recently introduced?

Can you send a screenshot? I don't see it

https://imgur.com/a/8GLbB5u

It appears at the top of certain servers. I've tried finding the class for it but it seems hidden?

it seems to be a beta experiment thing
https://support.discord.com/hc/en-us/articles/22045487931799-Members-List-Recent-Activity-FAQ

@UWPA
Copy link

UWPA commented Oct 1, 2024

Not sure how to PR on Gist/access this via Github to PR, but a recent Discord update added back the Discover button/forced it to follow under channels

/* Remove Discover button from server list */
.footer_aa1bff {
display: none;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment