-
Notifications
You must be signed in to change notification settings - Fork 4
/
adblock.css
192 lines (161 loc) · 7.96 KB
/
adblock.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* ==UserStyle==
@name discord.com - déc. 2023
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Removes annoying Nitro upsells from Discord.
@author CroissantDuNord & contributors
==/UserStyle== */
/* Stream Quality Upsell */
div[class*=upsellBanner] {
display: none !important;
}
/* Hides Premium Buttons In Quality Settings */
div[class*="qualitySettingsContainer"] button[class*=selectorButtonPremiumRequired] {
display: none !important;
}
/* Hides Quality Selector If Nitro Button Upsell Present Due To There Only Being A Single Resolution Left! */
div[class*="qualitySettingsContainer"] div[class*="settingsGroup"]:first-child:has(button[class*=selectorButtonPremiumRequired]) {
display: none !important;
}
/* Makes The Fps Selector Smaller */
div[class*="qualitySettingsContainer"] div[class*="settingsGroup"]:last-child:has(button[class*=selectorButtonPremiumRequired]) div[class*="group"] {
width: 106.84px;
}
/* Restores Border Radius To New Last Button */
div[class*="qualitySettingsContainer"] div[class*="settingsGroup"]:last-child:has(button[class*=selectorButtonPremiumRequired]) div[class*="group"] button:nth-last-child(2) {
border-radius: 0 3px 3px 0;
}
/* Chat view blocks */
/* Nitro tab */
[data-list-item-id*="___nitro"] {
display: none;
}
/* Store tab */
[data-list-item-id*="___shop"] {
display: none;
}
/* Store popup ads */
[id^=popout]:has([class^=buttonContainerVertical]) {
display:none;
}
/* Gift button */
div[class*=channelTextArea_]>div>div>div[class*=buttons_]>button[aria-haspopup=dialog] {
display: none;
}
/* Super reactions -- Doesn't seem like these are being pushed on free users anymore. */
/* Leaving them as is, but raise an issue if they break normal reactions. */
#message-add-reaction-1 {
display: none;
}
#message-actions-add-reaction-1 {
display: none;
}
/* Remove avatar decorations */
svg[class*=avatarDecoration_] {
display: none;
}
img[class*=avatarDecoration_] {
display: none;
}
/* Remove profile decorations */
div[class*=profileEffects] {
display: none;
}
div[class*=userProfileModalInner]>header>svg>foreignObject>div[class*=bannerPremium] {
display: none;
}
/* Settings blocking */
/* Banner ad */
#profile-customization-tab > div:has(div[class*="artContainer"][role="presentation"]) {
display: none;
}
/* Avatar decoration settings */
#profile-customization-tab > div > div[class*=profileCustomizationSection_] > div[class*=baseLayout_] > div[class*=sectionsContainer_] > div[class*=customizationSection_]:nth-of-type(4) {
display: none;
}
/* Profile effect settings */
#profile-customization-tab > div > div[class*=profileCustomizationSection_] > div[class*=baseLayout_] > div[class*=sectionsContainer_] > div[class*=customizationSection_]:nth-of-type(5) {
display: none;
}
/* "Try Nitro!" ad */
#profile-customization-tab > [class*=premiumFeatureBorder_] {
display: none;
}
/* Server profiles upsell */
#profile-customization-tab > div > div[class*=profileCustomizationSection_] > div[class*=baseLayout_] > div[class*=sectionsContainer_] > div[class*=upsellOverlayContainer_] {
display: none;
}
/* App colour */
#appearance-tab > div > div > div > div > div[role=radiogroup] > section:not(section[class*=basicThemeSelectors_]) {
display: none;
}
/* Icon Theme (just edit the .ico file) */
#appearance-tab > div > div > div > div[class*=selectionGroup_]:has([class*=appIconSelectionContainer_]) {
display: none;
}
/* Billing info sidebar --- I've decided it's better to just leave this, it's not too intrusive.
Blocking each element in the list is tedious and can break some client mods that add their own settings entries.
If anyone knows a better way to block precisely the billing info settings, please make a PR :) */
/*
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div:nth-child(2) > div > div.sidebarRegion__60457 > div > nav > div > div.premiumTab__57bdc.item__48dda.themed_b957e8 {
display: none
}
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div > div.standardSidebarView__1129a > div.sidebarRegion__60457 > div.sidebarRegionScroller__1fa7e.thin_b1c063.scrollerBase_dc3aa9.fade_ba0fa0 > nav.sidebar__9e3e2 > div.side_b4b3f6 > div.separator_fdbcfd:nth-of-type(11) {
display: none
}
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div > div.standardSidebarView__1129a > div.sidebarRegion__60457 > div.sidebarRegionScroller__1fa7e.thin_b1c063.scrollerBase_dc3aa9.fade_ba0fa0 > nav.sidebar__9e3e2 > div.side_b4b3f6 > div.header_f72511:nth-of-type(12) {
display: none
}
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div > div.standardSidebarView__1129a > div.sidebarRegion__60457 > div.sidebarRegionScroller__1fa7e.thin_b1c063.scrollerBase_dc3aa9.fade_ba0fa0 > nav.sidebar__9e3e2 > div.side_b4b3f6 > div.themed_b957e8.item__48dda:nth-of-type(14) {
display: none
}
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div > div.standardSidebarView__1129a > div.sidebarRegion__60457 > div.sidebarRegionScroller__1fa7e.thin_b1c063.scrollerBase_dc3aa9.fade_ba0fa0 > nav.sidebar__9e3e2 > div.side_b4b3f6 > div.themed_b957e8.item__48dda:nth-of-type(15) {
display: none
}
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div > div.standardSidebarView__1129a > div.sidebarRegion__60457 > div.sidebarRegionScroller__1fa7e.thin_b1c063.scrollerBase_dc3aa9.fade_ba0fa0 > nav.sidebar__9e3e2 > div.side_b4b3f6 > div.themed_b957e8.item__48dda:nth-of-type(16) {
display: none
}
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div > div.standardSidebarView__1129a > div.sidebarRegion__60457 > div.sidebarRegionScroller__1fa7e.thin_b1c063.scrollerBase_dc3aa9.fade_ba0fa0 > nav.sidebar__9e3e2 > div.side_b4b3f6 > div.themed_b957e8.item__48dda:nth-of-type(17) {
display: none
} */
/* Guilds blocking */
/* Server boost button */
#guild-header-popout > div > div:nth-child(1), #guild-header-popout > div > div:nth-child(2) {
display: none;
}
/* Server boost progress bar */
ul > li:has(div[data-list-item-id*=channels___boosts-]) {
display: none;
}
/* Server booster icon */
svg[class*=premiumIcon_] {
display: none;
}
/* Shop AD Profile */
html.full-motion.show-redesigned-icons.theme-dark.platform-web.font-size-16 body div#app-mount.appMount_fae9dd div.appAsidePanelWrapper__714a6 div.notAppAsidePanel__9d124 div.app_b1f720 div.app_de4237 div.layers__1c917.layers_a23c37 div.layer__2efaa div.standardSidebarView__1129a div.contentRegion__0bec1 div.contentTransitionWrap_c5bc61 div.contentRegionScroller__86c79.contentRegionShownSidebar__610ed.auto_a48086.scrollerBase_dc3aa9 div:nth-child(3) {
display: none;
}
/* Custom Join Sound AD (No discord I dont want to play a random meme sound when I join a call)*/
#popout_4611 > div > div > div.gridNoticeWrapper__548b9 > div {
display: none;
}
/* Nitro Icon Sever */
#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div.layers__1c917.layers_a23c37 > div > div > div > div > div.sidebar_ded4b5 > nav > div.container__7c79d.clickable__2d589.hasBanner_e78601.bannerVisible__191f6 > header > div > div.guildIconV2Container__53cdb {
display: none;
}
/* Profile Effect (Shop) */
#profile-customization-tab > div:nth-child(4) > div > div > div.sectionsContainer_a37883 > div:nth-child(5) {
display: none;
}
/* Hide upsell banner for messages that are too long */
div[class*=characterCount] > div[class*=upsell_] {
display: none;
}
/* Hide message length Nitro "subscribe" button */
div[role=dialog] > div > div > div[class*=primaryActions_] > button:has(svg[class*=premiumIcon]) {
display: none;
}
/* desktop app ad */
[class^=notice_]:has(i[class^=iconApple]){
display:none;
}