-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathadblock.css
200 lines (168 loc) · 8.61 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
193
194
195
196
197
198
199
200
/* ==UserStyle==
@name Discord AdBlock
@namespace https://github.com/CroissantDuNord/discord-adblock
@version 1.0.0
@description Removes annoying Nitro upsells from Discord.
@author CroissantDuNord & contributors
==/UserStyle== */
/* Fullscreen Nitro trial ad */
div[class^=layerContainer_]:has(div[class*="freeTrialPillWithSparkles_"]) {
display: none;
}
/* 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 */
/* App launcher icons (chat box, guild menu, AI apps on image hover) */
div[class^=channelAppLauncher_] {
display: none;
}
div[class^="jumpToPresentBar_"] {
right: 16px;
}
div[id="guild-header-popout-application-directory"] {
display: none;
}
div[class^=hoverButton_]:has(g[transform="matrix(2.700000047683716,0,0,2.700000047683716,-79.60000610351562,-81.35110473632812)"]) {
display: none;
}
/* Store tab */
li[class^=channel_]:has(a[href="/shop"]) {
display: none;
}
/* Nitro tab */
li[class^=channel_]:has(a[href="/store"]) {
display: none;
}
/* Store popup ads */
[id^=popout]:has([class^=buttonContainerVertical]) {
display:none;
}
/* Gift button */
div[class^=container_] > button:has(path[d="M4 6a4 4 0 0 1 4-4h.09c1.8 0 3.39 1.18 3.91 2.9A4.09 4.09 0 0 1 15.91 2H16a4 4 0 0 1 3.46 6H20a2 2 0 0 1 2 2v1.5a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5V10c0-1.1.9-2 2-2h.54A3.98 3.98 0 0 1 4 6Zm12 2a2 2 0 1 0 0-4h-.09c-.96 0-1.8.65-2.02 1.58L13.29 8H16Zm-5.89-2.42.6 2.42H8a2 2 0 1 1 0-4h.09c.96 0 1.8.65 2.02 1.58Z"],path[d="M3 20c0 1.1.9 2 2 2h5.5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0-.5.5V20ZM13.5 22a.5.5 0 0 1-.5-.5v-7c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5V20a2 2 0 0 1-2 2h-5.5Z"]) {
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;
}
/* 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;
}
/* BOGO button in settings */
div[class^=premiumLabel_] > div[class^=badgeContainer_]:has(span[class*="star_"]) {
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;
}
/* 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;
}
/* 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;
}
/* You have X days left to try Nitro banner */
div[class^=base_] > div[class^=notice_]:has([class^=premiumIcon_]) {
display: none;
}
/* Profile popup upsell */
div[class^="inner_"] > div[class^="body_"] > div[class^="upsellContainer_"] {
display: none;
}
/* Try nitro and get avatar decorations banner */
div[class^=notice_][class*=colorPremium_] {
display: none;
}