1; 2(function () { 3 4 var query = location.search.substring(1).split("&").reduce(function (acc, query) { 5 var parts = query.split('='); 6 if (parts[0] && 1 < parts.length) { 7 acc[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]) 8 }; 9 return acc; 10 }, {}); 11 12 var ic = query["ic"]; 13 if (ic) { 14 var sns = query["sns"] ? query["sns"] : "none"; 15 var click = { 16 "affiliate_url": location.href, 17 "affiliate_introducer_code": ic, 18 "affiliate_sns": sns, 19 "click_datetime": Date.now(), 20 "click_client": navigator.userAgent.match(/iPhone|Android.+Mobile/) ? "sp" : "pc", 21 "click_referer": document.referrer 22 }; 23 document.cookie = "click=" + encodeURIComponent(JSON.stringify(click)) + "; path=/; max-age=86400; Secure; SameSite=Lax"; 24 } 25 26})();
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.