PageSourceSearch

https://www.zeilen.nl/build/assets/affiliate-tracking-DA735KsH.js

js zeilen.nl collected 2026-10-02 03:18:11 UTC 1,124 bytes, 1 lines download raw bytes

1import{p as u}from"./app-EC2UgFnX.js";import"./preload-helper-I4rgV-VL.js";import"./helpers-D3mYkYaM.js";function p(){const i=u.querySelectorAll(".affiliate-extended-wrap, .embla-affiliate-carousel");if(!i.length)return;const o=new URLSearchParams(window.location.search);i.forEach((n,s)=>{const f=s+1;n.querySelectorAll(".cta-btn[href]").forEach(t=>{try{const r=new URL(t.href),a=r.searchParams.has("subid")?"subid":r.searchParams.has("clickref2")?"clickref2":null;if(!a)return;const e=r.searchParams.get(a),c=[`widget-${f}`];e&&c.push(e),o.forEach((l,h)=>{c.push(`${h}:${l}`)}),r.searchParams.set(a,c.join(";")),t.href=r.toString()}catch{console.error("Invalid affiliate tracking URL",t.href)}}),n.querySelectorAll(".affiliate-extended-card").forEach(t=>{const r=t.querySelector(".cta-btn[href]");if(!r)return;const a=r.getAttribute("href");if(!(!a||a.startsWith("javascript:"))){try{const e=new URL(r.href);if(e.protocol!=="http:"&&e.protocol!=="https:")return}catch{return}t.querySelectorAll("a.affiliate-extended-product-link").forEach(e=>{e.href=r.href,e.target="_blank"})}})})}p();export{p as initAffiliateTracking};

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.