Skip to content

Instantly share code, notes, and snippets.

@mary-ext
Last active August 21, 2025 22:28
Show Gist options
  • Save mary-ext/75b740889fc6b1997179d6d067048628 to your computer and use it in GitHub Desktop.
Save mary-ext/75b740889fc6b1997179d6d067048628 to your computer and use it in GitHub Desktop.
make discord good ublock filter
! Hide top bar
discord.com##.visual-refresh:style(--custom-app-top-bar-height: 0px !important)
discord.com##.visual-refresh :is(.chat_f75fb0[data-has-border=true], .container__133bf, .container_a592e1):style(border-top: 0 !important)
discord.com##.visual-refresh :is(.sidebarListRounded_c48ade, .container__01ae2, .callContainer_cb9592):style(border-top: 0 !important; border-radius: 0 !important)
discord.com##.visual-refresh .scroller_ef3116:style(padding-block: var(--space-md) !important)
! Move the inbox button
discord.com##.bar_c38106:style(z-index: 1000 !important; overflow: hidden !important)
discord.com##.visual-refresh :is(.toolbar__9293f, .searchBar__1ac1c):style(margin-right: calc(var(--space-32) + var(--space-xs)) !important)
discord.com##.visual-refresh .recentsIcon_c99c29:style(position: fixed !important; top: var(--space-8) !important; right: var(--space-xs) !important)
! Compact horizontal padding on server list
discord.com##.visual-refresh:style(--custom-guild-list-padding: min(var(--space-sm)) !important)
! Hide download app on server list
discord.com##.listItem__650eb:has([data-list-item-id="guildsnav___app-download-button"])
! Hide Nitro and Discord Shop tab
discord.com##.channel__972a0:has(a[href="/shop"], a[href="/store"])
! Hide gift button in chat message input
discord.com##.buttons__74017 .button__201d5[aria-label="Send a gift"]
! Hide message input on mini profile cards
discord.com##.container_a99829
discord.com##.footer__5be3e:has(> .container_a99829:only-child)
@DesertBanana
Copy link

This is really nice, thanks for making it. Recently Discord updated their UI, and now the 'close search results' button is hidden with these filters.

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