1window.addEventListener("load", () => { 2 3 // open pdfs as external links 4 const pdfLinks = document.querySelectorAll("a[href$='.pdf']"); 5 6 pdfLinks.forEach((link) => { 7 8 link.setAttribute("target", "_blank"); 9 }); 10 11 // all external links go to a new tab 12 const externalLinks = document.querySelectorAll("a"); 13 14 externalLinks.forEach((link) => { 15 16 if (link.hostname !== window.location.hostname) { 17 18 link.setAttribute("target", "_blank"); 19 } 20 }); 21});
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.