PageSourceSearch

https://ruiningli.com/assets/HtmlPage.8389bb9e.js

js ruiningli.com collected 2026-10-03 22:58:08 UTC 914 bytes, 1 lines download raw bytes

1import{r as o,R as g}from"./index.2e034c5e.js";function E({htmlPath:l}){const[s,f]=o.exports.useState(""),c=o.exports.useRef(null);return o.exports.useEffect(()=>{f(""),fetch(l).then(e=>e.text()).then(e=>f(e)).catch(e=>console.error("Error loading HTML:",e))},[l]),o.exports.useEffect(()=>{if(!c.current||!s)return;const e=c.current.getElementsByTagName("script"),i=Array.from(e),a=n=>{var p,d;if(n>=i.length)return;const r=i[n];if(r.getAttribute("data-processed")){a(n+1);return}const t=document.createElement("script");Array.from(r.attributes).forEach(m=>{t.setAttribute(m.name,m.value)}),t.textContent=r.textContent,t.setAttribute("data-processed","true");const u=()=>a(n+1);t.src?(t.onload=u,t.onerror=u,t.async=!1,(p=r.parentNode)==null||p.replaceChild(t,r)):((d=r.parentNode)==null||d.replaceChild(t,r),u())};a(0)},[s]),g.createElement("div",{ref:c,dangerouslySetInnerHTML:{__html:s}})}export{E as default};

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.