This commit is contained in:
√(noham)²
2026-09-17 13:45:52 +02:00
parent 8dc9429f84
commit f0bd940086
9 changed files with 1328 additions and 1211 deletions

View File

@@ -1,10 +1,10 @@
<!DOCTYPE html> <!doctype html>
<html> <html>
<head> <head>
<meta name="disabled-adaptations" content="watch"> <meta name="disabled-adaptations" content="watch" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1"> <meta name="viewport" content="initial-scale=1" />
<base> <base />
<title>Reader</title> <title>Reader</title>
<style id="assistant-content"> <style id="assistant-content">
#summary-container { #summary-container {
@@ -210,7 +210,12 @@
</style> </style>
<style id="article-content"> <style id="article-content">
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold; font-weight: bold;
} }
h1 { h1 {
@@ -223,7 +228,9 @@
h3 { h3 {
font-size: 1.25em; font-size: 1.25em;
} }
h4, h5, h6 { h4,
h5,
h6 {
font-size: 1em; font-size: 1em;
margin: 1em 0; margin: 1em 0;
} }
@@ -253,7 +260,9 @@
font-weight: normal; font-weight: normal;
} }
.title, .subhead, .metadata { .title,
.subhead,
.metadata {
text-align: start; text-align: start;
hyphens: manual; hyphens: manual;
display: none; display: none;
@@ -344,7 +353,9 @@
margin: 0; margin: 0;
} }
#article .leading-image, figure, .auxiliary { #article .leading-image,
figure,
.auxiliary {
margin-bottom: 1.15em; margin-bottom: 1.15em;
} }
@@ -428,7 +439,8 @@
-webkit-margin-start: 0; -webkit-margin-start: 0;
} }
#article .auxiliary.float img, #article .auxiliary > *:first-child:not(img) { #article .auxiliary.float img,
#article .auxiliary > *:first-child:not(img) {
margin: 0; margin: 0;
} }
@@ -484,11 +496,16 @@
max-width: none; max-width: none;
} }
#article .leading-image, #article figure, #article .auxiliary:not(.pullquote) { #article .leading-image,
#article figure,
#article .auxiliary:not(.pullquote) {
font-family: -apple-system-font; font-family: -apple-system-font;
} }
#article .leading-image, #article figure, #article .auxiliary, #article .pullquote { #article .leading-image,
#article figure,
#article .auxiliary,
#article .pullquote {
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
} }
@@ -513,7 +530,8 @@
line-height: 1.45em; line-height: 1.45em;
} }
blockquote, q { blockquote,
q {
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
} }
@@ -531,7 +549,10 @@
display: block; display: block;
} }
.pullquote q::before, .pullquote q::after, q.pullquote::before, q.pullquote::after { .pullquote q::before,
.pullquote q::after,
q.pullquote::before,
q.pullquote::after {
content: ""; content: "";
} }
@@ -541,8 +562,7 @@
.page p > div:empty, .page p > div:empty,
.page div > div:empty, .page div > div:empty,
.page p + br, .page p + br,
.page img + br .page img + br {
{
display: none; display: none;
} }
@@ -553,7 +573,8 @@
border-collapse: collapse; border-collapse: collapse;
} }
.page table td, .page table th { .page table td,
.page table th {
padding: 0.25em 0.5em; padding: 0.25em 0.5em;
border: 1px solid rgb(216, 216, 216); border: 1px solid rgb(216, 216, 216);
} }
@@ -597,7 +618,8 @@
background-color: rgba(0, 0, 0, 0.025); background-color: rgba(0, 0, 0, 0.025);
} }
.page sup, .page sub { .page sup,
.page sub {
line-height: 1; line-height: 1;
font-size: 0.75em; font-size: 0.75em;
} }
@@ -607,8 +629,12 @@
} }
/* Special Font Customizations */ /* Special Font Customizations */
.system { font-family: -apple-system-font; } .system {
.watch.system { font: -apple-system-body; } font-family: -apple-system-font;
}
.watch.system {
font: -apple-system-body;
}
.yuantisc { .yuantisc {
letter-spacing: 1px; letter-spacing: 1px;
} }
@@ -703,14 +729,17 @@
display: block; display: block;
} }
#article :nth-child(1 of .page):nth-last-child(1 of .page) .page-number { #article
:nth-child(1 of .page):nth-last-child(1 of .page)
.page-number {
display: none; display: none;
} }
body.watch #article :nth-child(1 of .page):nth-last-child(1 of .page) { body.watch #article :nth-child(1 of .page):nth-last-child(1 of .page) {
padding-top: 0.15em; padding-top: 0.15em;
} }
.page-number, #incoming-page-corner { .page-number,
#incoming-page-corner {
font-weight: bold; font-weight: bold;
position: absolute; position: absolute;
-webkit-user-select: none; -webkit-user-select: none;
@@ -806,8 +835,12 @@
@media screen and (min-width: 0px) { @media screen and (min-width: 0px) {
/* Includes iPhone 5 in portrait */ /* Includes iPhone 5 in portrait */
.page { padding-left: 16px; padding-right: 16px; } .page {
.page-number, #incoming-page-corner { padding-left: 16px;
padding-right: 16px;
}
.page-number,
#incoming-page-corner {
top: 8px; top: 8px;
right: 16px; right: 16px;
} }
@@ -832,8 +865,12 @@
@media screen and (min-width: 375px) { @media screen and (min-width: 375px) {
/* iPhone 6 in portrait */ /* iPhone 6 in portrait */
.page { padding-left: 18px; padding-right: 18px; } .page {
.page-number, #incoming-page-corner { padding-left: 18px;
padding-right: 18px;
}
.page-number,
#incoming-page-corner {
top: 6px; top: 6px;
right: 18px; right: 18px;
} }
@@ -844,8 +881,12 @@
@media screen and (min-width: 414px) { @media screen and (min-width: 414px) {
/* iPhone 6 Plus in portrait */ /* iPhone 6 Plus in portrait */
.page { padding-left: 20px; padding-right: 20px; } .page {
.page-number, #incoming-page-corner { padding-left: 20px;
padding-right: 20px;
}
.page-number,
#incoming-page-corner {
top: 6px; top: 6px;
right: 20px; right: 20px;
} }
@@ -858,8 +899,12 @@
@media screen and (min-width: 667px) { @media screen and (min-width: 667px) {
/* iPhone 6 in landscape */ /* iPhone 6 in landscape */
.page { padding-left: 40px; padding-right: 40px; } .page {
.page-number, #incoming-page-corner { padding-left: 40px;
padding-right: 40px;
}
.page-number,
#incoming-page-corner {
/* Stop lining this text up with .page's right margin. */ /* Stop lining this text up with .page's right margin. */
top: 10px; top: 10px;
right: 10px; right: 10px;
@@ -897,12 +942,18 @@
@media screen and (min-width: 704px) { @media screen and (min-width: 704px) {
/* iPad in landscape with the sidebar open */ /* iPad in landscape with the sidebar open */
.page { padding-left: 42px; padding-right: 42px; } .page {
padding-left: 42px;
padding-right: 42px;
}
} }
@media screen and (min-width: 736px) { @media screen and (min-width: 736px) {
/* iPhone 6 Plus in landscape */ /* iPhone 6 Plus in landscape */
.page { padding-left: 60px; padding-right: 60px; } .page {
padding-left: 60px;
padding-right: 60px;
}
#article :nth-child(1 of .page):nth-last-child(1 of .page) { #article :nth-child(1 of .page):nth-last-child(1 of .page) {
padding-top: 46px; padding-top: 46px;
} }
@@ -915,33 +966,81 @@
} }
/* Readable margins. */ /* Readable margins. */
body.system #article { max-width: 83.2ex; } body.system #article {
body.athelas #article { max-width: 104ex; } max-width: 83.2ex;
body.charter #article { max-width: 86ex; } }
body.georgia #article { max-width: 94ex; } body.athelas #article {
body.iowanoldstyle #article { max-width: 90ex; } max-width: 104ex;
body.palatino #article { max-width: 97ex; } }
body.seravek #article { max-width: 87ex; } body.charter #article {
body.timesnewroman #article { max-width: 97ex; } max-width: 86ex;
body.uiserif #article { max-width: 93ex; } }
body.georgia #article {
max-width: 94ex;
}
body.iowanoldstyle #article {
max-width: 90ex;
}
body.palatino #article {
max-width: 97ex;
}
body.seravek #article {
max-width: 87ex;
}
body.timesnewroman #article {
max-width: 97ex;
}
body.uiserif #article {
max-width: 93ex;
}
:matches(body.pingfangsc, body.pingfangtc) #article { max-width: 87.6ex; } :matches(body.pingfangsc, body.pingfangtc) #article {
:matches(body.heitisc, body.heititc) #article { max-width: 74.8ex; } max-width: 87.6ex;
:matches(body.songtisc, body.songtitc) #article { max-width: 102ex; } }
:matches(body.kaitisc, body.kaititc) #article { max-width: 102ex; } :matches(body.heitisc, body.heititc) #article {
:matches(body.yuantisc, body.yuantitc) #article { max-width: 86.2ex; } max-width: 74.8ex;
:matches(body.libiansc, body.libiantc) #article { max-width: 95ex; } }
:matches(body.weibeisc, body.weibeitc) #article { max-width: 99ex; } :matches(body.songtisc, body.songtitc) #article {
:matches(body.yuppysc, body.yuppytc) #article { max-width: 87.6ex; } max-width: 102ex;
}
:matches(body.kaitisc, body.kaititc) #article {
max-width: 102ex;
}
:matches(body.yuantisc, body.yuantitc) #article {
max-width: 86.2ex;
}
:matches(body.libiansc, body.libiantc) #article {
max-width: 95ex;
}
:matches(body.weibeisc, body.weibeitc) #article {
max-width: 99ex;
}
:matches(body.yuppysc, body.yuppytc) #article {
max-width: 87.6ex;
}
body.hiraginosansw3 #article { max-width: 75.7ex; } body.hiraginosansw3 #article {
body.hiraginokakugothicpron #article { max-width: 76.4ex; } max-width: 75.7ex;
body.hiraginominchopron #article { max-width: 77.5ex; } }
body.hiraginomarugothicpron #article { max-width: 75.1ex; } body.hiraginokakugothicpron #article {
max-width: 76.4ex;
}
body.hiraginominchopron #article {
max-width: 77.5ex;
}
body.hiraginomarugothicpron #article {
max-width: 75.1ex;
}
body.applesdgothicneo #article { max-width: 82ex; } body.applesdgothicneo #article {
body.nanumgothic #article { max-width: 88.6ex; } max-width: 82ex;
body.nanummyeongjo #article { max-width: 94.1ex; } }
body.nanumgothic #article {
max-width: 88.6ex;
}
body.nanummyeongjo #article {
max-width: 94.1ex;
}
.page { .page {
/* We don't want the lines seperating pages to extend beyond the primary text column. */ /* We don't want the lines seperating pages to extend beyond the primary text column. */
@@ -983,11 +1082,13 @@
margin: 22px auto 0 auto; margin: 22px auto 0 auto;
} }
html.paper #article :nth-child(1 of .page), html.paper #article :nth-child(1 of .page):nth-last-child(1 of .page) { html.paper #article :nth-child(1 of .page),
html.paper #article :nth-child(1 of .page):nth-last-child(1 of .page) {
padding-top: 53px; padding-top: 53px;
} }
html.paper #article .page-number, html.paper #article #incoming-page-corner { html.paper #article .page-number,
html.paper #article #incoming-page-corner {
/* Stop lining this text up with .page's right margin. */ /* Stop lining this text up with .page's right margin. */
top: 14px; top: 14px;
right: 0px; right: 0px;
@@ -1001,13 +1102,12 @@
padding-bottom: 32px; padding-bottom: 32px;
} }
} }
</style> </style>
<style id="theming"> <style id="theming">
body.white { body.white {
--body-font-color: rgb(27, 27, 27); --body-font-color: rgb(27, 27, 27);
--assistant-secondary-color: rgba(84, 84, 84, 1.0); --assistant-secondary-color: rgba(84, 84, 84, 1);
--horizontal-line-color: rgb(220, 220, 220); --horizontal-line-color: rgb(220, 220, 220);
--assistant-sidebar-color: rgb(220, 220, 220); --assistant-sidebar-color: rgb(220, 220, 220);
--paper-shadow-color: rgba(0, 0, 0, 0.2); --paper-shadow-color: rgba(0, 0, 0, 0.2);
@@ -1026,7 +1126,7 @@
} }
body.gray { body.gray {
--body-font-color: rgba(255, 255, 255, 0.78); --body-font-color: rgba(255, 255, 255, 0.78);
--assistant-secondary-color: rgba(172, 172, 172, 1.0); --assistant-secondary-color: rgba(172, 172, 172, 1);
--horizontal-line-color: rgb(111, 111, 111); --horizontal-line-color: rgb(111, 111, 111);
--separator-color: rgb(111, 111, 111); --separator-color: rgb(111, 111, 111);
--assistant-sidebar-color: rgba(44, 44, 44, 0.76); --assistant-sidebar-color: rgba(44, 44, 44, 0.76);
@@ -1034,7 +1134,7 @@
} }
body.night { body.night {
--body-font-color: rgb(176, 176, 176); --body-font-color: rgb(176, 176, 176);
--assistant-secondary-color: rgba(172, 172, 172, 1.0); --assistant-secondary-color: rgba(172, 172, 172, 1);
--horizontal-line-color: rgb(62, 62, 62); --horizontal-line-color: rgb(62, 62, 62);
--separator-color: rgb(62, 62, 62); --separator-color: rgb(62, 62, 62);
--assistant-sidebar-color: rgba(44, 44, 44, 0.76); --assistant-sidebar-color: rgba(44, 44, 44, 0.76);
@@ -1042,7 +1142,7 @@
} }
body.night.oled { body.night.oled {
--body-font-color: rgb(210, 210, 210); --body-font-color: rgb(210, 210, 210);
--assistant-secondary-color: rgba(172, 172, 172, 1.0); --assistant-secondary-color: rgba(172, 172, 172, 1);
--horizontal-line-color: rgba(210, 210, 210, 0.35); --horizontal-line-color: rgba(210, 210, 210, 0.35);
--separator-color: rgba(210, 210, 210, 0.35); --separator-color: rgba(210, 210, 210, 0.35);
--assistant-sidebar-color: rgba(44, 44, 44, 0.76); --assistant-sidebar-color: rgba(44, 44, 44, 0.76);
@@ -1055,23 +1155,28 @@
--separator-color: var(--background-color); --separator-color: var(--background-color);
} }
html:not(.paper) body.white, body.white #article { html:not(.paper) body.white,
body.white #article {
--background-color: white; --background-color: white;
background-color: var(--background-color); background-color: var(--background-color);
} }
html:not(.paper) body.sepia, body.sepia #article { html:not(.paper) body.sepia,
body.sepia #article {
--background-color: rgb(248, 241, 227); --background-color: rgb(248, 241, 227);
background-color: var(--background-color); background-color: var(--background-color);
} }
html:not(.paper) body.gray, body.gray #article { html:not(.paper) body.gray,
body.gray #article {
--background-color: rgb(74, 74, 77); --background-color: rgb(74, 74, 77);
background-color: var(--background-color); background-color: var(--background-color);
} }
html:not(.paper) body.night, body.night #article { html:not(.paper) body.night,
body.night #article {
--background-color: rgb(18, 18, 18); --background-color: rgb(18, 18, 18);
background-color: var(--background-color); background-color: var(--background-color);
} }
html:not(.paper) body.night.oled, body.night.oled #article { html:not(.paper) body.night.oled,
body.night.oled #article {
--background-color: black; --background-color: black;
background-color: var(--background-color); background-color: var(--background-color);
} }
@@ -1094,7 +1199,8 @@
color: rgb(214, 217, 223) !important; color: rgb(214, 217, 223) !important;
} }
html.paper body.white #article, html.paper body.sepia #article { html.paper body.white #article,
html.paper body.sepia #article {
box-shadow: 0px 6px 12px 3px var(--paper-shadow-color); box-shadow: 0px 6px 12px 3px var(--paper-shadow-color);
} }
html.paper body.gray #article { html.paper body.gray #article {
@@ -1108,23 +1214,32 @@
color: white; color: white;
} }
body.sepia #article :matches(.leading-image, figure, .auxiliary, .pullquote) { body.sepia
#article
:matches(.leading-image, figure, .auxiliary, .pullquote) {
color: rgba(79, 50, 28, 0.9); color: rgba(79, 50, 28, 0.9);
} }
body.gray #article :matches(.leading-image, figure, .auxiliary, .pullquote) { body.gray
#article
:matches(.leading-image, figure, .auxiliary, .pullquote) {
color: rgba(255, 255, 255, 0.7); color: rgba(255, 255, 255, 0.7);
} }
body.night #article :matches(.leading-image, figure, .auxiliary, .pullquote) { body.night
#article
:matches(.leading-image, figure, .auxiliary, .pullquote) {
color: rgba(255, 255, 255, 0.67); color: rgba(255, 255, 255, 0.67);
} }
body.night.oled #article :matches(.leading-image, figure, .auxiliary, .pullquote) { body.night.oled
#article
:matches(.leading-image, figure, .auxiliary, .pullquote) {
color: rgba(210, 210, 210, 0.9); color: rgba(210, 210, 210, 0.9);
} }
body.sepia #article a[href] { body.sepia #article a[href] {
color: rgb(209, 150, 0); color: rgb(209, 150, 0);
} }
body.gray #article a[href], body.night #article a[href] { body.gray #article a[href],
body.night #article a[href] {
color: rgb(90, 200, 250); color: rgb(90, 200, 250);
} }
body.watch.night.oled #article a[href] { body.watch.night.oled #article a[href] {
@@ -1232,31 +1347,36 @@
color: rgba(210, 210, 210, 0.8); color: rgba(210, 210, 210, 0.8);
} }
body.sepia #article blockquote, body.sepia #article q { body.sepia #article blockquote,
body.sepia #article q {
color: rgb(140, 112, 79); color: rgb(140, 112, 79);
} }
body.sepia #article blockquote:not(.simple):not(.pullquote) { body.sepia #article blockquote:not(.simple):not(.pullquote) {
border-left-color: rgba(154, 128, 92, 0.1); border-left-color: rgba(154, 128, 92, 0.1);
} }
body.gray #article blockquote, body.gray #article q { body.gray #article blockquote,
body.gray #article q {
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.6);
} }
body.gray #article blockquote:not(.simple):not(.pullquote) { body.gray #article blockquote:not(.simple):not(.pullquote) {
border-left-color: rgba(255, 255, 255, 0.15); border-left-color: rgba(255, 255, 255, 0.15);
} }
body.night #article blockquote, body.night #article q { body.night #article blockquote,
body.night #article q {
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.6);
} }
body.night #article blockquote:not(.simple):not(.pullquote) { body.night #article blockquote:not(.simple):not(.pullquote) {
border-left-color: rgba(255, 255, 255, 0.15); border-left-color: rgba(255, 255, 255, 0.15);
} }
body.night.oled #article blockquote, body.night.oled #article q { body.night.oled #article blockquote,
body.night.oled #article q {
color: rgba(210, 210, 210, 0.85); color: rgba(210, 210, 210, 0.85);
} }
body.night.oled #article blockquote:not(.simple):not(.pullquote) { body.night.oled #article blockquote:not(.simple):not(.pullquote) {
border-left-color: rgba(210, 210, 210, 0.2); border-left-color: rgba(210, 210, 210, 0.2);
} }
body.watch.night #article blockquote, body.watch.night #article q { body.watch.night #article blockquote,
body.watch.night #article q {
color: var(--body-font-color); color: var(--body-font-color);
} }
body.watch.night #article blockquote:not(.simple):not(.pullquote) { body.watch.night #article blockquote:not(.simple):not(.pullquote) {
@@ -1295,16 +1415,20 @@
body:not(.gray):not(.night) #article picture { body:not(.gray):not(.night) #article picture {
filter: none !important; filter: none !important;
} }
body.gray, body.night { body.gray,
body.night {
filter: invert(); filter: invert();
} }
body:matches(.gray, .night) #article :matches(img:not(picture > img), picture, video) { body:matches(.gray, .night)
#article
:matches(img:not(picture > img), picture, video) {
filter: none !important; filter: none !important;
} }
body:matches(.gray, .night) #article iframe { body:matches(.gray, .night) #article iframe {
filter: invert(); filter: invert();
} }
html.paper body.white #article, html.paper body.sepia #article { html.paper body.white #article,
html.paper body.sepia #article {
--paper-shadow-color: rgba(255, 255, 255, 0.2); --paper-shadow-color: rgba(255, 255, 255, 0.2);
} }
/* The background color of <body> is not inverted by the filter. Achieve this by manually /* The background color of <body> is not inverted by the filter. Achieve this by manually

View File

@@ -3109,14 +3109,12 @@ let cachedRegularExpressionsForDomainMatching = {};
(!U.ControlLooksLikeCreditCardCardholderField && (!U.ControlLooksLikeCreditCardCardholderField &&
!U.ControlLooksLikeCreditCardNumberField)) !U.ControlLooksLikeCreditCardNumberField))
) { ) {
if ( if (!(
!(
U.ControlLooksLikeDayField || U.ControlLooksLikeDayField ||
U.ControlLooksLikeMonthField || U.ControlLooksLikeMonthField ||
U.ControlLooksLikeYearField || U.ControlLooksLikeYearField ||
U.ControlLooksLikeCreditCardCompositeExpirationDateField U.ControlLooksLikeCreditCardCompositeExpirationDateField
) )) {
) {
if (U.ControlLooksLikePasswordCredentialField) { if (U.ControlLooksLikePasswordCredentialField) {
if ( if (
U.ControlLooksLikeCreditCardSecurityCodeField || U.ControlLooksLikeCreditCardSecurityCodeField ||
@@ -3133,12 +3131,10 @@ let cachedRegularExpressionsForDomainMatching = {};
g = !1; g = !1;
continue; continue;
} }
if ( if (!(
!(
M + 1 < L && M + 1 < L &&
this._matchesConfirmEmailFieldLabelPattern(u[M + 1]) this._matchesConfirmEmailFieldLabelPattern(u[M + 1])
) ))
)
continue; continue;
g = !0; g = !0;
} }

View File

@@ -1087,12 +1087,9 @@ const TweetURLRegex =
c = null; c = null;
for (a = 0; a < s; ++a) { for (a = 0; a < s; ++a) {
var u = l[a]; var u = l[a];
if ( if (!(
!( c && c.compareDocumentPosition(u) & Node.DOCUMENT_POSITION_CONTAINED_BY
c && )) {
c.compareDocumentPosition(u) & Node.DOCUMENT_POSITION_CONTAINED_BY
)
) {
var m = u.getElementsByTagName("li"), var m = u.getElementsByTagName("li"),
d = m.length, d = m.length,
h = cachedElementBoundingRect(u); h = cachedElementBoundingRect(u);
@@ -4566,13 +4563,11 @@ const TweetURLRegex =
var d = cachedElementBoundingRect(s); var d = cachedElementBoundingRect(s);
((c = d.width), (m = d.height)); ((c = d.width), (m = d.height));
} }
if ( if (!(
!(
c < r.minimumWidth || c < r.minimumWidth ||
m < r.minimumHeight || m < r.minimumHeight ||
c * m < r.minimumArea c * m < r.minimumArea
) )) {
) {
var h = this.elementContainsEnoughTextOfSameStyle(s, e, i); var h = this.elementContainsEnoughTextOfSameStyle(s, e, i);
if ( if (
(e.add(s), (e.add(s),

View File

@@ -1,3 +1,5 @@
//# sourceURL=__InjectedScript_Translation.js //# sourceURL=__InjectedScript_Translation.js
/* Copyright (c) 2025 Apple Inc. All rights reserved. */ /* Copyright (c) 2025 Apple Inc. All rights reserved. */
function updateLanguageAttributesForTranslation(n){document.documentElement.lang&&(document.documentElement.lang=n)} function updateLanguageAttributesForTranslation(n) {
document.documentElement.lang && (document.documentElement.lang = n);
}