PageSourceSearch

https://lsrhs.net/dist/assets/EmbeddedVideoLandmark-DJLtnRCY.js

js lsrhs.net collected 2026-09-24 10:08:53 UTC 1,290 bytes, 2 lines download raw bytes

1const d=/(?:youtube\.com|youtube-nocookie\.com|youtu\.be|teachertube\.com|vimeo\.com)/i,l="ss-embedded-video",a='[role="region"][aria-label], section[aria-label], section[aria-labelledby]',u=(e,o)=>{const t=o.querySelectorAll("h1, h2, h3, h4, h5, h6");for(let n=t.length-1;n>=0;n--){const i=t[n];if(!((i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING)!==0))continue;const r=(i.textContent??"").trim();if(r)return`Video: ${r}`}return null},m=e=>{if(e.tagName==="IFRAME"){const t=(e.getAttribute("title")??"").trim();if(t&&t!=="Video Player")return t}const o=e.closest(".ss-editor-content");if(o){const t=u(e,o);if(t)return t}return e.tagName==="IFRAME"?"Embedded video":"Inline video"},b=e=>e.closest(a)===null,c=e=>{if(!b(e))return;const o=e.parentNode;if(!o)return;const t=document.createElement("div");t.className=l,t.setAttribute("role","region"),t.setAttribute("aria-label",m(e)),o.insertBefore(t,e),t.appendChild(e)},f=e=>{const o=e.getAttribute("src")??"";return d.test(o)},s=()=>{document.querySelectorAll(".ss-editor-content video").forEach(c),document.querySelectorAll(".ss-editor-content iframe").forEach(e=>{f(e)&&c(e)})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",s):s();
2//# sourceMappingURL=EmbeddedVideoLandmark-DJLtnRCY.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.