PageSourceSearch

https://www.mrpet.si/cdn/shop/t/4/assets/recently-viewed-products.BU7-hp3a.js

js mrpet.si collected 2026-10-02 11:17:39 UTC 968 bytes, 1 lines download raw bytes

1const d=async()=>{let r;try{r=JSON.parse(localStorage.getItem("recently-viewed-products"))}catch(e){console.warn("Failed to parse recently viewed products from localStorage:",e);return}if(!r||r.length===0){console.log("No recently viewed products found.");return}const c=[];r.forEach(e=>{Array.isArray(e.product)&&e.product.forEach(t=>{c.push(t.handle)})});function s(e,t){const o=new DOMParser().parseFromString(e,"text/html").querySelector(t);return o||(console.error(`Section with selector "${t}" not found.`),null)}const l=`${window.location.pathname}?cache=false&handles=${c.join("::")}&section_id=product-recently-viewed-html`;try{const t=await(await fetch(l)).text(),n=s(t,"#recently-viewed-products-wrapper");if(n){const o=document.querySelector(".recently-viewed-products-grid"),a=o.dataset.headline;n.querySelector("h2").textContent=a,o&&o.appendChild(n)}else console.log("Section content not found.")}catch(e){console.error("Error fetching data:",e)}};d();

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.