-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathadblock.css
186 lines (158 loc) · 7.68 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
/* ==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== */
/* Temporary: Valentines 2025 Nitro Nag */
div[id^=popout_]:has(img[src="https://cdn.discordapp.com/assets/content/a0471c5c8afd40a1c23f57b11bc1b8f4332fafe3e9be48c87770511558ba1b3e.png"]) {
display: none;
}
/* Fullscreen Nitro trial ad */
div[class^=layerContainer_]:has(div[class*="freeTrialPillWithSparkles_"]) {
display: none;
}
/* Hide Nitro quality selectors and upsell */
div[class^="qualitySettingsContainer_"] > div > div > div > div> button[class*=premiumUpsell] {
display: none;
}
div[class^="qualitySettingsContainer_"] > div[class^=upsellBanner__] {
display: none;
}
/* Chat view blocks */
/* App launcher icons (chat box, guild menu, AI apps on image hover) */
div[class^=channelAppLauncher_] {
display: none !important;
}
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^=buttons__] button:has(path[d=" M-7,10 C-8.104999542236328,10 -9,9.104999542236328 -9,8 C-9,8 -9,2.5 -9,2.5 C-9,2.2239999771118164 -8.776000022888184,2 -8.5,2 C-8.5,2 -1.5,2 -1.5,2 C-1.2239999771118164,2 -1,2.2239999771118164 -1,2.5 C-1,2.5 -1,9.5 -1,9.5 C-1,9.776000022888184 -1.2239999771118164,10 -1.5,10 C-1.5,10 -7,10 -7,10z M1,9.5 C1,9.776000022888184 1.2239999771118164,10 1.5,10 C1.5,10 7,10 7,10 C8.104999542236328,10 9,9.104999542236328 9,8 C9,8 9,2.5 9,2.5 C9,2.2239999771118164 8.776000022888184,2 8.5,2 C8.5,2 1.5,2 1.5,2 C1.2239999771118164,2 1,2.2239999771118164 1,2.5 C1,2.5 1,9.5 1,9.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 pages */
/* Banner ads */
#profile-customization-tab>div:has(div[class*="artContainer"][role="presentation"]) {
display: none;
}
#profile-customization-tab > div[class^=upsellContainer__] {
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;
}
/* Profile Nitro preview */
#profile-customization-tab > div:has(div[class^=premiumFeatureBorder__]) {
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 > div > div > section:has(svg[class*=nitroWheel_]) {
display: none;
}
/* Icon Theme (just edit the .ico file) */
#appearance-tab > div > div div[class^=selectionGroup__]:has(svg[class*=nitroWheel_]) {
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;
}
/* 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;
}
/* 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;
}