1document.addEventListener("DOMContentLoaded", function () { 2 const handleLinkClick = function (e) { 3 if (!e.target.href) { 4 this.querySelector("a").click(); 5 } 6 }; 7 8 const handleGotoClick = function (e) { 9 const goto = window.atob(this.dataset.goto); 10 if (e.ctrlKey || e.metaKey || this.dataset.external) { 11 window.open(goto, "_blank", "noopener").focus(); 12 } else { 13 window.location.href = goto; 14 } 15 }; 16 17 const expandClickElements = [ 18 ".wp-block-latest-posts > li", 19 ".generate-columns-container > article", 20 ".gb-query-loop-item", 21 ".gb-loop-item", 22 ".wp-block-post-template > .wp-block-post", 23 ".site-branding-container", 24 ]; 25 26 expandClickElements.forEach((el) => { 27 document.querySelectorAll(el).forEach((el) => { 28 el.addEventListener("click", handleLinkClick, { passive: true }); 29 }); 30 }); 31 32 document.querySelectorAll("[data-goto]").forEach((el) => { 33 el.addEventListener("click", handleGotoClick, { passive: true }); 34 }); 35});
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.