1fetch("/api/v2/style/get_content?name=config") 2 .then((r) => r.json()) 3 .then((content) => { 4 const id = Number(content.siteImprovId); 5 const documentTitle = content.documentTitle; 6 const mainAddress = content.mainAddress; 7 const logoLinkEl = document.querySelector("#logo>a"); 8 9 if (id) { 10 const sz = document.createElement("script"); 11 sz.type = "text/javascript"; 12 sz.async = true; 13 sz.src = "//siteimproveanalytics.com/js/siteanalyze_" + id + ".js"; 14 const s = document.getElementsByTagName("script")[0]; 15 s.parentNode.insertBefore(sz, s); 16 } 17 18 if (documentTitle) { 19 document.title = `${document.title} - ${documentTitle}`; 20 } 21 22 if (logoLinkEl && mainAddress) { 23 const url = new URL(mainAddress); 24 const weblink = url.protocol === "http:" || url.protocol === "https:"; 25 const normal = !mainAddress.includes("?"); 26 weblink && normal && (logoLinkEl.href = mainAddress); 27 } 28 });
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.