PageSourceSearch

https://hejholger.dk/cdn/shop/t/82/assets/recently-viewed.js?v=113005889415415268691789123786

js hejholger.dk collected 2026-10-08 19:04:47 UTC 1,124 bytes, 2 lines download raw bytes

1const KEY="holgers:recently-viewed",CAP=24;function read(){try{const list=JSON.parse(localStorage.getItem(KEY));return Array.isArray(list)?list.filter(entry=>entry&&entry.handle):[]}catch{return[]}}function write(list){try{localStorage.setItem(KEY,JSON.stringify(list.slice(0,24)))}catch{}}const box=document.querySelector("[data-recently-viewed]");if(box){const current={handle:box.dataset.productHandle,url:box.dataset.productUrl,img:box.dataset.productImage,title:box.dataset.productTitle},seen=read().filter(entry=>entry.handle!==current.handle),strip=box.querySelector("[data-recently-viewed-strip]"),max=Number(box.dataset.max)||10;if(strip&&seen.length>0){for(const entry of seen.slice(0,max)){const link=document.createElement("a");link.className="recently-viewed__item",link.href=entry.url||`/products/${entry.handle}`;const img=document.createElement("img");img.src=entry.img||"",img.alt=entry.title||"",img.loading="lazy",link.append(img),strip.append(link)}box.hidden=!1}current.handle&&write([current,...seen])}
2//# sourceMappingURL=/cdn/shop/t/82/assets/recently-viewed.js.map?v=113005889415415268691789123786

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.