Skip to content

Commit facdf91

Browse files
committed
Publish 2025-08-11
1 parent 43a7ef2 commit facdf91

File tree

2 files changed

+48
-3
lines changed

2 files changed

+48
-3
lines changed

elements/locales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ export const country = (() => {
609609
export const isHCountry = true;
610610

611611
const isFirefox = navigator.userAgent.includes('Firefox');
612-
const isEdge = navigator.userAgent.includes('Edg');
612+
export const isEdge = navigator.userAgent.includes('Edg');
613613
// export const isPCountry = (['US', 'GB', 'CA', 'AU', 'DE'].includes(country) || timeZone === 'UTC') && !isFirefox;
614614
// export const isPCountry = (['US'].includes(country) || timeZone === 'UTC') && !isFirefox;
615615
export const isPCountry = (['US', 'GB', 'CA', 'AU'].includes(country) || timeZone === 'UTC') && !isFirefox;

elements/pay-tiers.js

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22

3-
import {country, isEUCountry} from './locales.js';
3+
import {country, isEdge, isEUCountry} from './locales.js';
44
import {initPaddle} from './paddle.js';
55
import {clicker} from './stats.js';
66
import {
@@ -286,6 +286,13 @@ const htmlText = `
286286
</div>
287287
<darkreader-donate-mascot narrow></darkreader-donate-mascot>
288288
</section>
289+
<div class="pr-description pr-edge-plus" data-text="edge_plus" style="${isEdge ? '' : 'display: none;'}">
290+
<i class="pr-edge-plus__edge-icon"></i>
291+
Microsoft Edge users will get early access to
292+
<span class="pr-edge-plus__title"><span class="pr-edge-plus__title--dr">Dark Reader</span> <span class="pr-edge-plus__title--plus">Plus</span></span>.
293+
New user interface, premium themes & custom colors.
294+
<a href="/plus/" target="_blank">Learn more.</a>
295+
</div>
289296
</div>
290297
</section>
291298
<section class="pr-small">
@@ -330,7 +337,7 @@ const cssText = `
330337
color: var(--color-highlight);
331338
font-size: 1.0rem;
332339
font-weight: bold;
333-
margin: 0;
340+
margin: 0 0 0.25rem 0;
334341
position: relative;
335342
text-align: left;
336343
-webkit-text-stroke: 0.0625rem;
@@ -361,6 +368,44 @@ const cssText = `
361368
text-align: center;
362369
*/
363370
}
371+
.pr-edge-plus {
372+
margin-top: 1rem;
373+
padding-left: 1.25rem;
374+
text-indent: -1.25rem;
375+
376+
a {
377+
color: var(--color-text);
378+
}
379+
}
380+
.pr-edge-plus__edge-icon {
381+
background-image: url(/images/icon-edge-256x256.svg);
382+
background-position: center;
383+
background-repeat: no-repeat;
384+
background-size: contain;
385+
bottom: -0.125rem;
386+
display: inline-block;
387+
height: 1rem;
388+
position: relative;
389+
width: 1rem;
390+
}
391+
.pr-edge-plus__title {
392+
font-family: system-ui;
393+
text-transform: uppercase;
394+
}
395+
.pr-edge-plus__title--dr {
396+
background-image: linear-gradient(to right, #e7573b, #af6ce9, #40a6e5);
397+
background-clip: text;
398+
color: transparent;
399+
font-weight: 900;
400+
-webkit-text-stroke: 0.5px;
401+
}
402+
.pr-edge-plus__title--plus {
403+
color: white;
404+
font-weight: 300;
405+
/*
406+
text-shadow: 0 0 1rem var(--color-text), 0 0 0.75rem var(--color-text), 0 0 0.5rem var(--color-text), 0 0 0.25rem var(--color-text);
407+
*/
408+
}
364409
.tiers {
365410
align-items: stretch;
366411
display: flex;

0 commit comments

Comments
 (0)