PageSourceSearch

https://www.astridandmiyu.com/cdn/shop/t/1379/assets/content-takeover.js?v=55030057909094338681789975523

js astridandmiyu.com collected 2026-09-24 21:57:08 UTC 1,444 bytes, 2 lines download raw bytes

1const{getElement}=window.BAO.Utils;class ContentTakeover extends window.BAO.CustomElement(){connectedCallback(){super.connectedCallback(),this.loading=!1}setupListeners(){super.setupListeners(),this.updatePage=this.updatePage.bind(this),this.els.toggle&&this.listeners.add(this.els.toggle.element,"change",this.updatePage)}async updatePage(){this.classList.toggle("hd-Takeover-active",this.state),this.loading=!0;try{const data=await(await fetch(this.url)).text(),doc=new DOMParser().parseFromString(data,"text/html"),main=getElement(this.externalEls.main.selector,{context:doc});if(!main)throw new Error("Main content element not found in fetched page");this.externalEls.main.element.innerHTML=main.innerHTML,await new Promise(resolve=>setTimeout(resolve,1e3))}catch(error){console.error("Error updating page:",error)}finally{this.loading=!1}}async fetchHtml(){try{const html=await(await fetch("./file.html")).text();document.body.innerHTML=html}catch(error){console.error("Error fetching HTML:",error)}}get state(){return this.els.toggle.element.checked}get url(){return this.state?this.getAttribute("data-page"):"/"}get loading(){return this.getAttribute("aria-busy")==="true"}set loading(val){this.setAttribute("aria-busy",val.toString())}}customElements.get("content-takeover")||customElements.define("content-takeover",ContentTakeover);
2//# sourceMappingURL=/cdn/shop/t/1379/assets/content-takeover.js.map?v=55030057909094338681789975523

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.