1(function() { 2 // ç¾å¨ã®URLãã _src ãã©ã¡ã¼ã¿ãåå¾ãã颿° 3 function getsrcSource() { 4 const params = new URLSearchParams(window.location.search); 5 return params.get('_src'); // _srcãã©ã¡ã¼ã¿ãåå¾ 6 } 7 // ãã¹ã¦ã®ãªã³ã¯ã« _src ãã©ã¡ã¼ã¿ã追å ãã颿° 8 function addUtmToAllLinks(utmValue) { 9 if (!utmValue) return; // _src ãåå¨ããªãå ´åã¯ä½ãããªã 10 const links = document.querySelectorAll('a[href]'); // ãã¹ã¦ã®ãªã³ã¯ãåå¾ 11 links.forEach(link => { 12 try { 13 const linkURL = new URL(link.href, window.location.origin); 14 // console.log(linkURL); 15 16 // _srcãã©ã¡ã¼ã¿ãæ¢ã«åå¨ããªãå ´åã®ã¿è¿½å 17 if (!linkURL.searchParams.has('_src') && linkURL.origin != 'null') { // linkURL.protocol.indexOf('http') ã§ãå¯ 18 linkURL.searchParams.set('_src', utmValue); // _srcã追å 19 link.href = linkURL.toString(); // ãªã³ã¯URLãæ´æ° 20 } 21 } catch (e) { 22 console.warn("ç¡å¹ãªURL:", link.href); 23 } 24 }); 25 } 26 // å®è¡ 27 const utmValue = getsrcSource(); // ç¾å¨ã®URLãã_srcãã©ã¡ã¼ã¿ãåå¾ 28 addUtmToAllLinks(utmValue); // ãã¹ã¦ã®ãªã³ã¯ã«_srcãã©ã¡ã¼ã¿ã追å 29})();
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.