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

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;