1function getParameterByName(name) { 2 const queryParams = new URLSearchParams(window.location.search); 3 return queryParams.get(name); 4} 5 6function createCookie(name, value) { 7 if (value) { 8 document.cookie = `${name}=${value};max-age=${60*60*24*30};domain=.${window.location.host.replace('www.', '')};path=/`; 9 } 10} 11 12const ref = getParameterByName("ref"); 13const seRef = getParameterByName("se-ref"); 14 15createCookie("refcode", ref); 16createCookie("refcode", seRef); 17 18const isSamesiteReferrer = document.referrer.includes(document.location.host); 19 20if (!isSamesiteReferrer) { 21 createCookie("referrer", document.referrer); 22} 23
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.