-
-
Save andreiagmu/8719d95b94a417932ffd4331e2be9d33 to your computer and use it in GitHub Desktop.
Hide all Nitro & Boost upsells in Discord!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @name Adblock | |
| * @author TheSunCat and contributors | |
| * @version 1.0.0 | |
| * @description Hide all Nitro & Boost upsells on Discord! | |
| * @source https://gist.github.com/TheSunCat/58fedaa19d6154ef3e4b2b676c286906 | |
| */ | |
| /* ------------------ */ | |
| /* Hide Nitro upsells */ | |
| /* ------------------ */ | |
| /* Chatbox buttons */ | |
| div[aria-label="Start an Activity"] { display: none; } | |
| button[aria-label="Send a gift"] { display: none; } | |
| button[aria-label="Open GIF picker"] { display: none; } | |
| button[aria-label="Open sticker picker"] { display: none; } | |
| /* Hide Nitro button in Home */ | |
| a[data-list-item-id$="___nitro"] { display: none; } | |
| /* Hide shop button in Home */ | |
| a[data-list-item-id*="shop"] { display: none; } | |
| /* TODO: join more than 100 servers upsell */ | |
| /* Hide Nitro tabs in Settings */ | |
| div[aria-label="User Settings"] > div[aria-label="Nitro"] { display: none; } | |
| div[aria-label="User Settings"] > div[aria-label="Nitro"] + div { display: none; } | |
| div[aria-label="User Settings"] > div[aria-label="Subscriptions"] { display: none; } | |
| div[aria-label="User Settings"] > div[aria-label="Gift Inventory"] { display: none; } | |
| div[aria-label="User Settings"] > div[aria-label="Gift Inventory"] + div[class^="item_"] { display: none; } | |
| /* Hide Nitro separator in settings */ | |
| div[aria-label="User Settings"] > div[aria-label="Gift Inventory"] + div[class^="item_"] + div[class^="separator"] { display: none; } | |
| /* Hide Billing header and separator */ | |
| div[aria-label="User Settings"] > div[aria-label="Connections"] + div[class^="item_"] + div[class^="separator_"] + div[class^="header_"] { display: none; } | |
| div[aria-label="User Settings"] > div[aria-label="Connections"] + div[class^="item_"] + div[class^="separator_"] + div[class^="header_"] ~ div[class^="header_"] { display: block; } | |
| /* Server Profiles: Make unique profiles for each server box */ | |
| div[class*="upsellOverlayContainer_"] { display: none; } | |
| /* Profiles: Try out Nitro! box */ | |
| div[class^="premiumFeatureBorder"] { display: none; } | |
| /* Profiles: New style ad */ | |
| #profile-customization-tab > div[class^="container"]:has(button[class*="colorBrand"]) { display: none; } | |
| /* Profiles: Profile effect box (this only gets the separator because of the above rule*/ | |
| div[class^="customizationSection"]:has(div[class^="premiumFeatureBorder"]) { display: none; } | |
| /* Profiles: Per server avatar */ | |
| div[class^="imageUploaderInner"] + div[class^="imageUploaderHint"] { display: none; } | |
| div[class^="imageUploaderInner"] + div[class^="imageUploaderHint"] + div[class^="imageUploaderIcon"]{ display: none; } | |
| /* Profiles: Hide profile customization ad in banners */ | |
| div[class^="bannerNitroUpsell"] { display: none;} | |
| /* Voice & Video: Soundboard section */ | |
| div[class^="container"]:has(div[class^="children"] > div[class^="soundboardRow"]) { display: none; } | |
| /* Appearance: Hide app icon upsell */ | |
| div[class^="selectionGroup"]:has(div[role="radiogroup"] > div > div[class^="presets"] > [class*="appIconSelectionContainer"]) { display: none; } | |
| /* Appearance: Theme upsells */ | |
| section[class*="basicThemeSelectors_"] + section { display: none; } | |
| /* Hide sticker picker */ | |
| button[id="sticker-picker-tab"] { display: none; } | |
| /* Hide message size upsells */ | |
| div[class^="characterCount"] > div[class*=" upsell_"] { display: none; } | |
| /* Hide Go Live quality upsells */ | |
| button[class*=" selectorButtonPremiumRequired"] { display: none; } | |
| /* Hide ad in profile banners */ | |
| div[class^="premiumIconWrapper"] { display: none; } | |
| /* ------------- */ | |
| /* Server boosts */ | |
| /* ------------- */ | |
| /* Server Boost button in top left dropdown */ | |
| div[id="guild-header-popout-premium-subscribe"] { display: none; } | |
| div[role="group"]:has(div[id="guild-header-popout-premium-subscribe"]) + div[role="separator"] { display: none; } | |
| /* Server settings: Boost tab */ | |
| div[class^="serverBoostTabItem"] { display: none; } | |
| div[class^="serverBoostTabItem"] + div[class^="separator"] { display: none; } | |
| /* Server settings: Overview */ | |
| div[class^="divider"]:has(div > div > div > div[class^="upsell"]) { display: none; } | |
| /* TODO: Hide role icon in Roles tab when we don't have boost lvl 2 */ | |
| /* Server settings: Stickers tab */ | |
| /* NOTE: risky, but seems ok for now */ | |
| div[class^="children_"] > div[class^="upsellContainer"] { display: none; } | |
| div[class*="tierHeaderUnlocked"] + div { display: none; } | |
| div[class*="tier_"]:has(div[class^="tierHeaderLocked"]) { display: none; } | |
| div[class^="tierInProgress"] { display: none; } | |
| /* Server settings: Custom Invite Link tab */ | |
| button[class^="shinyButton"]:has(div[class*="upsellButton"]) { display: none; } | |
| /* Boost progress bar */ | |
| /* NOTE: risky, but seems ok for now */ | |
| ul[aria-label="Channels"] > div[role="button"][class^="container"] { display: none; } | |
| /* TODO: would be nice to hide disabled soundboard sounds & emojis | |
| * However, looks like it needs to be done on the JS level. This is too buggy | |
| div[class*="premiumDisabled_"] {display:none;}*/ | |
| /* --------------- */ | |
| /* Super reactions */ | |
| /* --------------- */ | |
| /* Super reactions button */ | |
| button[id="super-reaction-picker-tab"] { display: none; } | |
| /* Super reaction animation */ | |
| div[class*="shakeReaction"] { animation: none !important; } | |
| div[class^="reactionInner"] > div > div[class^="effectsWrapper"] { display: none; } | |
| img[class*="hideEmoji"] { animation: blink-emoji 1s linear infinite; opacity: 255; } | |
| @keyframes blink-emoji { | |
| 50% { opacity: 0; } | |
| } | |
| /* Add Super Reaction menu item */ | |
| #message-add-reaction-1 { display: none; } | |
| #message-actions-add-reaction-1 { display: none; } | |
| div[aria-label="Add Super Reaction"] { display: none; } | |
| /* Upsell when hovering a Super Reaction */ | |
| div[class^="burstReactionTooltipPrompt"] { display: none; } | |
| /* ------------------ */ | |
| /* General annoyances */ | |
| /* ------------------ */ | |
| /* Avatar decorations */ | |
| svg[class*="avatarDecoration_"] { display: none; } | |
| img[class^="avatarDecoration_"] { display: none; } | |
| /* Avatar decorations upsell */ | |
| div[class*="userProfileInner_"] > div:has(div[aria-label="Go to Shop"]) { display: none; } | |
| /* Profile effects */ | |
| div[class^="profileEffects"] { display: none; } | |
| /* Animated "Activities" hover effect in calls */ | |
| /* NOTE: would be nice to disable the white hover effect, | |
| * but that'd break when you're actually in an activity */ | |
| div[aria-labelledby^="vc-activities"] { display: none; } | |
| /* Bugfix laggy server scroll */ | |
| div[data-dnd-name] > div[class^="wrapper"] svg { overflow: hidden; } | |
| /* Hide Help button */ | |
| div[aria-label="Help"] { display: none; } | |
| /* Hide explore servers button */ | |
| div[aria-label="Servers"] + div + div { display: none; } | |
| /* Hide download button in web version */ | |
| div[aria-label="Servers"] + div[class^="tutorialContainer"] + div + div { display: none; } /* separator */ | |
| div[aria-label="Servers"] + div[class^="tutorialContainer"] + div + div + div { display: none; } /* button & click target */ | |
| /* Hide Library button in Home */ | |
| a[data-list-item-id*="___library"] { display: none; } | |
| /* Nitro profile badge */ | |
| /* div[class^="clickable-"][aria-label^="Subscriber since"] { display: none; }*/ | |
| /* Server booster profile badge */ | |
| /* a[aria-label^="Server boosting since"] { display: none; } */ | |
| /* Server booster member list badge */ | |
| /* svg[aria-label^="Server boosting since"] { display: none; } */ | |
| /* Hide all super reactions entirely */ | |
| /* div[id*="message-reactions"] div:has(div div[aria-label*="super reaction"]) { display: none; } */ | |
| /* ------------------ */ | |
| /* Temporary events */ | |
| /* ------------------ */ | |
| /* "Falloween" in (user) profile */ | |
| [class*="falloweenBackgroundImage"] { display: none; } | |
| [class*="falloweenArtContainer"] { display: none; } | |
| [class*="artContainer"] { display: none; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment