1(() => { 2 document.addEventListener("click", (event) => { 3 if ( 4 event.defaultPrevented || 5 event.button !== 0 || 6 event.metaKey || 7 event.ctrlKey || 8 event.shiftKey || 9 event.altKey 10 ) return; 11 12 const anchor = event.target.closest("a[href]"); 13 if (!anchor || anchor.hasAttribute("download")) return; 14 if (anchor.target && anchor.target !== "_self") return; 15 16 const rawHref = anchor.getAttribute("href"); 17 if (!rawHref || rawHref.startsWith("#")) return; 18 19 const destination = new URL(rawHref, window.location.href); 20 if (destination.origin !== window.location.origin) return; 21 if (!/^https?:$/.test(destination.protocol)) return; 22 23 event.preventDefault(); 24 event.stopImmediatePropagation(); 25 window.location.assign(destination.pathname + destination.search + destination.hash); 26 }, true); 27})();
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.