Skip to content

Instantly share code, notes, and snippets.

@cheesits456
Last active January 12, 2026 04:40
Show Gist options
  • Select an option

  • Save cheesits456/41d659f932b5a574b5dfb9b391a4506e to your computer and use it in GitHub Desktop.

Select an option

Save cheesits456/41d659f932b5a574b5dfb9b391a4506e to your computer and use it in GitHub Desktop.
Custom CSS for Discord to remove the GIF picker and Nitro Gift buttons from the message bar
/**
* @name Remove Buttons
* @version 1.1.1
* @author cheesits456
* @authorId 306018440639152128
* @description Remove the nitro gift, GIF picker, and sticker picker buttons from the message box. Also remove the sticker suggestion popup
* @source https://gist.github.com/cheesits456/41d659f932b5a574b5dfb9b391a4506e
* @invite 7QH4YeD
* @donate https://donate.haileybot.com
* @website https://cheesits456.dev
*/
/* Hide Nitro gift button */
button[aria-label="Send a gift"] {
display: none;
}
/* Hide GIF picker button */
button[aria-label="Open GIF picker"] {
display: none;
}
/* Hide sticker picker button */
button[aria-label="Open sticker picker"] {
display: none;
}
/* Hide annoying sticker popup window that appears when you type */
.channelTextArea-1FufC0 > .container-1ZA19X {
display: none;
}
@MichaelDavidGK
Copy link

MichaelDavidGK commented Jan 12, 2026

@MichaelDavidGK the aria-describedby for apps in VC would change daily about a week ago, and be inconsistent naming schemes between devices. I don't trust that code remaining consistent anymore, so I specified the "child" in the actionButtons class to display none, and it worked consistently so far

@OrieDargon I see, for some reason it worked for me so far, but I changed it to:

button:has(svg[viewBox="0 0 96 96"]),
button:has(path[d*="-6.554999828338623"]),

I will see how it goes, rn both of them work separately when restarting discord and on both PTB and Canary.

@ Swedishdogs

/* Gift button in chat + removes empty space */
[class$="-container"]:has([aria-label="Send a gift"]),

this line seems to break/remove the entire interface for me, could be that it interferes with themes (?).

Change it to this and it should work: [class$="-container"]:has(> [aria-label="Send a gift"]),

@coffeeyoda thanks for this, I also changed it in mine 😉

Code is updated in my previous message

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