Skip to content

Instantly share code, notes, and snippets.

@RickyRomero
Last active March 23, 2025 17:55
Show Gist options
  • Save RickyRomero/e66f5488a5efd5b7d1319cb61c6e8449 to your computer and use it in GitHub Desktop.
Save RickyRomero/e66f5488a5efd5b7d1319cb61c6e8449 to your computer and use it in GitHub Desktop.
AdGuard rules for Discord web app

This guide assumes you have the following prerequisites installed:

Setup Guide

  1. In Safari, log into Discord.
  2. In the File menu, choose Add to Dock… and follow the steps.
  3. Open the Discord web app you saved to the Dock.
  4. Under the app's main menu, choose Settings…
  5. In the General tab, change the Application URL to https://discord.com/app.
  6. Under the Extensions tab, turn on AdGuard Custom.
  7. Open AdGuard for Safari and navigate to the Filters tab.
  8. Open User rules. Copy the rules you want from the below list into the User rules list and hit Save.
  9. Reload the Discord app. (It may take a moment to take effect, just keep trying.)

Filter rules

Hides the sidebar links for, in this order:

  • Nitro
  • Shop
discord.com##li[role="listitem"]:has(a[href="/store"])
discord.com##li[role="listitem"]:has(a[href="/shop"])

Hides the buttons on the right side of the "Send message" field for, in this order:

  • Gift Nitro
  • GIF picker
  • Sticker picker
  • Emoji picker
  • Apps & Commands
discord.com##button[aria-label="Send a gift"]
discord.com##div:has(> button[aria-label="Open GIF picker"])
discord.com##div:has(> button[aria-label="Open sticker picker"])
discord.com##div:has(> button[aria-label="Select emoji"])
discord.com##div:has(> div.app-launcher-entrypoint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment