Hide Nitro ads and other upsells in the Discord client.
Find a file
2026-05-27 12:38:38 +02:00
discord-adblock.css Add metadata for BetterDiscord compatibility 2026-05-27 12:38:38 +02:00
LICENSE New license 2025-09-29 10:51:17 +02:00
README.md Fix Markdown fail 2026-04-18 00:41:21 +02:00

Discord Adblock

CSS rules that remove Nitro ads and some other premium-only elements.

This CSS blocklist will remove common nags and pay-to-use related elements from Discord, such as the store, gift button, and various upsells when possible.

This project was originally started by CroissantDuNord on GitHub. As Nathan lost access to his GitHub profile, I'm continuing it here.
My utmost thanks to Nathan for the effort.

How to use

First, you'll need a mod such as Vencord or BetterDiscord.

Once that's installed, find the Custom CSS menu for your chosen mod.
By adding this line to it, the list should auto-update when you start your Discord client.

@import url(https://codeberg.org/ridge/Discord-Adblock/raw/branch/main/discord-adblock.css);

Extra tweaks

If you wish to remove more fluff from Discord that doesn't necessarily fall in line with ads, check out my Discord CSS Tweaks: https://codeberg.org/ridge/Discord-CSS-Tweaks.
It contains rules to remove things at your own discretion, such as avatar decorations, the apps buttons in chats, the activities sidebar in your friends list, or even the entire "server" bar if you don't use it, like me.

Project scope

Not everything can be removed cleanly, and I will not add rules that target language-specific strings. For example, "aria-labels" that use English language.
The list will also assume that the user does not pay to use Discord, and doesn't want to see things like custom emoji in the emoji picker.

The blocklist will focus being as universal as possible, so if a rule requires the client to be in English, it won't be added.
Keep this in mind if contributing, please.

The list will focusing on removing things such as:

  • Ads in profile tabs.
  • Ads in the settings menus.
  • Upsells in free features (screen sharing, etc.)
  • Full screen ads.
  • Banner ads.
  • Store and nitro buttons.
  • Gift button.
  • Server boost elements.
  • Super reaction elements.
  • Message limit ad.
  • App launcher icons.
  • Seasonal nitro nags.

Contributing

You can report any problems and suggest ideas by opening an issue.
If you're contributing with a pull request, please keep the above project scope in mind.
Rules that target randomised strings, such as e6b7699ce8339e1c-sectionDivider will not be accepted, as they will break when they're inevitably randomised again.
Check out the existing rules and take inspiration from them.
The Mozilla Developer Network has handy documentation on CSS for these purposes: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors

You can also donate to me via Buymeacoffee, but I ask that you only do this if you can comfortably spare the money.
Any amount is greatly appreciated and will help me stay afloat while unemployed.

Click to donate

Tired of using Discord altogether?

Me too.
There are plenty of alternatives popping up, and my personal favourite is Fluxer. I've been using it actively since February and find it to be the best direct alternative to Discord so far.
It's open source, and allows self-hosting, custom clients, and client modding. Plus the team is very transparent about its development.

I'm not associated with the Fluxer team, nor am I encouraged or paid to sing its praises, I just really think it's that good.

If you and/or your community is looking to jump ship, why not give it a shot?
Click here to join Fluxer