-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathduolingo-customization.user.css
177 lines (152 loc) · 4.41 KB
/
duolingo-customization.user.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
/* ==UserStyle==
@name Duolingo - Customization
@description Provides some extra customization options for Duolingo. DISCLAIMER: some features are currently not supported on Firefox.
@version 2025.01.25.18.11
@author MetalTxus
@namespace https://github.com/jesuscc1993/
@license CC BY-SA 4.0
@preprocessor stylus
@var checkbox hide-leagues "Hide leagues" 0
@var checkbox hide-goals "Hide goals" 0
@var checkbox hide-premium "Hide some premium adds and features" 0
@var checkbox hide-leaderboards "Hide leaderboards" 0
@var checkbox hide-classes "Hide classes" 0
@var checkbox hide-pronunciation "Hide choice pronunciation" 0
@var checkbox hide-pronunciation-unless-hovered "Hide choice pronunciation (unless hovered)" 0
@var checkbox hide-choice-images "Hide choice images" 0
@var checkbox hide-characters "Hide Duolingo characters" 0
@var checkbox lowercase-pills "Lowercase pills" 0
@var checkbox center-lesson-title "Center lesson title" 0
@var text lesson-width "Lesson width (desktop)" 600px
==/UserStyle== */
@-moz-document domain("duolingo.com") {
@media (min-width: 700px) {
[data-test="player-end-carousel"] > :nth-child(1) {
width: 100%;
}
[data-test="player-end-carousel"] > :nth-child(2) {
display: none;
}
[data-test*="challenge"] > ._2n5fx {
max-width: none;
width: lesson-width;
}
[aria-label="choice"] {
width: min(lesson-width, 600px);
margin: 0 auto;
}
/* center lesson title */
if (center-lesson-title) {
[data-test="challenge-header"] {
text-align: center;
}
}
}
[data-test="challenge-tap-token"] {
user-select: text;
}
/* characters */
if (hide-characters) {
/* regular ones */
._2qg6J,
svg[style*="--web-ui_speech-bubble-alignment"] {
display: none;
}
._2kEEj {
margin-left: -16px;
}
/* grid variant */
._1KcR7 {
opacity: 0;
}
._2kgY1 {
grid-template-columns: 0 1fr;
grid-gap: 0;
}
}
/* pronunciation */
if (hide-pronunciation) {
ruby rt {
display: none;
}
}
if (hide-pronunciation-unless-hovered) {
button,
[data-test="challenge-choice"] {
&:has(ruby) {
&:not(:hover) rt {
opacity: 0;
}
rt {
transition: opacity 150ms;
}
}
}
}
if (hide-choice-images) {
[data-test="challenge-choice"] {
padding: 12px 16px;
[style*="background-image"] {
display: none;
}
}
}
if (hide-leagues) {
/*div:has(> div > div > div > [src*="/images/leagues/"]) {*/
div:has(> div > [data-test="leaderboards-open"]) {
display: none;
}
}
/* goals */
if (hide-goals) {
div:has(> div > div > [src*="/images/goals/"]) {
display: none;
}
[data-test="/settings/coach"] {
display: none;
}
}
/* premium */
if (hide-premium) {
._3Z2SD, /* review section */
[data-test="free-plus-button"],
[href="/review"],
[href="/settings/super"],
button:has([src*="/images/super/"]),
div:has(> [data-test="plus-offer-logo"]),
div:has(> [src*="/images/super/"]),
div:has(> div > [data-test="plus-offer-logo"]):has(> div > [src*="practiceHub"]),
div:has(> div > div > ins),
/*div:has(> [data-test="plus-offer-logo"]) + div:has(img)*/ {
display: none !important;
}
}
/* leaderboards */
if (hide-leaderboards) {
div:has(> [data-test="leaderboard-nav"]),
[href="/leaderboard"] {
display: none !important;
}
}
/* classes */
if (hide-classes) {
[href="https://classes.duolingo.com/"]
{
display: none !important;
}
}
/* lowercase pills */
if (lowercase-pills) {
._2O7Ua {
text-transform: lowercase !important;
}
}
/* sidebar item spacing fix */
._3bTT7 {
gap: 0;
> div > a {
margin-bottom: 8px;
display: block;
}
}
}