Add 27.0 js src

This commit is contained in:
√(noham)²
2026-09-17 13:47:07 +02:00
parent c768a1667c
commit 897293bc5f
39 changed files with 24598 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,24 @@
//# sourceURL=__InjectedScript_ReaderMacUI.js
/* Copyright (c) 2026 Apple Inc. All rights reserved. */
/*
* Copyright (c) 2010 Apple Inc. All rights reserved.
*/
function setScrollTop(e) {
document.documentElement.scrollTop = e;
}
function readerWillBecomeVisible() {
setReaderIsActive(!0);
}
function readerWillEnterBackground() {
setReaderIsActive(!1);
}
((ReaderJS._clickingOutsideOfPaperRectangleDismissesReader = !0),
(ReaderJS._isJavaScriptEnabled = function () {
return !!(ReaderJSController.initialConfiguration() || {})[
ReaderConfigurationJavaScriptEnabledKey
];
}),
(ReaderAppearanceJS._tryApplyStaticConfiguration = function () {
return (document.body.classList.add("mac"), !1);
}));
0;

View File

@@ -0,0 +1,57 @@
//# sourceURL=__InjectedScript_ReaderMobileUI.js
/* Copyright (c) 2026 Apple Inc. All rights reserved. */
/*
* Copyright (c) 2010 Apple Inc. All rights reserved.
*/
function orientationChanged() {
ReaderAppearanceJS.layOutContent();
}
function articleHasScrolled() {
ReaderJS.resumeCachedNextPageLoadIfNecessary();
}
function contentInPrintingMailingFrame() {
let e = document.getElementById(ReaderJS.printingMailingFrameElementId());
return (
e ||
(ReaderJS.preparePrintingMailingFrame(),
(e = document.getElementById(ReaderJS.printingMailingFrameElementId()))),
e.contentDocument.documentElement.innerHTML
);
}
(window.addEventListener("orientationchange", orientationChanged, !1),
window.addEventListener("scroll", articleHasScrolled, !1));
let originalShouldUsePaperAppearance =
ReaderAppearanceJS._shouldUsePaperAppearance.bind(ReaderAppearanceJS);
((ReaderAppearanceJS._shouldUsePaperAppearance = function () {
return (
0 !== window.orientation &&
180 !== window.orientation &&
originalShouldUsePaperAppearance()
);
}),
(ReaderAppearanceJS._isOLEDDisplay = function () {
return !!(ReaderJSController.initialConfiguration() || {}).isOLEDDisplay;
}),
(ReaderJS._distanceFromBottomOfArticleToStartLoadingNextPage = function () {
return (
ReaderJSController.maxDistanceForLoadingNextPage() ||
(screen.height >= 1024 ? 2048 : 1024)
);
}),
(ReaderJS._shouldSkipActivationWhenPageLoads = function () {
return (
ReaderJSController.isLoadingFromOfflineReadingListArchive &&
ReaderJSController.isLoadingFromOfflineReadingListArchive()
);
}),
(ReaderJS._shouldConvertRelativeURLsToAbsoluteURLsWhenPrintingOrMailing = !0),
(ReaderJS._deferSendingContentIsReadyForDisplay = !0),
(ReaderJS._isJavaScriptEnabled = function () {
return !!(ReaderJSController.initialConfiguration() || {})[
ReaderConfigurationJavaScriptEnabledKey
];
}),
(ReaderAppearanceJS._tryApplyStaticConfiguration = function () {
return (document.body.classList.add("ios"), !1);
}));
0;

View File

@@ -0,0 +1,29 @@
//# sourceURL=__InjectedScript_ReaderShared.js
/* Copyright (c) 2026 Apple Inc. All rights reserved. */
// Copyright (c) 2025 Apple Inc. All rights reserved.
"use strict";
function normalizedElementTagName(e) {
return e.localName;
}
function plaintextVersionOfNodeAppendingNewlinesBetweenBlockElements(e) {
const n = (e.ownerDocument ?? document).createTreeWalker(
e,
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT,
null,
);
let t = "";
for (n.currentNode = e; n.nextNode();) {
const e = n.currentNode;
if (e.nodeType === Node.TEXT_NODE) {
t += e.textContent;
continue;
}
let o = normalizedElementTagName(e);
("p" !== o && "div" !== o) || (t += "\n");
}
return t;
}
const READER_UNIQUE_ID_ATTRIBUTE_KEY = "data-reader-unique-id",
READER_UNIQUE_ID_TITLE = "titleElement",
READER_UNIQUE_ID_SUBHEAD = "subheadElement";
0;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,38 @@
//# sourceURL=__InjectedScript_ReaderSharedUINormalWorld.js
/* Copyright (c) 2026 Apple Inc. All rights reserved. */
function loadTwitterJavaScript() {
window.twttr ||
(window.twttr = (function (e, t, r) {
var i,
a,
d = e.getElementsByTagName(t)[0];
if (!e.getElementById(r))
return (
((a = e.createElement(t)).id = r),
(a.src = "https://platform.twitter.com/widgets.js"),
d.parentNode.insertBefore(a, d),
window.twttr ||
(i = {
_e: [],
ready: function (e) {
i._e.push(e);
},
})
);
})(document, "script", "twitter-wjs"));
}
function richTweetWasCreatedFromSimpleTweet(e) {
e.parentNode.querySelector(".simple-tweet").classList.add("hidden");
}
function replaceSimpleTweetsWithRichTweets(e) {
let t = document.querySelectorAll("[data-reader-tweet-id]");
t.length &&
(loadTwitterJavaScript(),
twttr.ready(function (r) {
for (let i of t)
r.widgets
.createTweet(i.getAttribute("data-reader-tweet-id"), i, e)
.then(richTweetWasCreatedFromSimpleTweet);
}));
}
0;