1(function () { 2 function isInternalLink(link) { 3 return link && link.href && link.href.startsWith(window.location.origin) 4 && !link.hasAttribute('target'); 5 } 6 7 // Middle-click (botão scroll) 8 document.addEventListener('auxclick', function (e) { 9 if (e.button === 1) { 10 var link = e.target.closest('a'); 11 if (isInternalLink(link)) { 12 e.preventDefault(); 13 window.open(link.href, '_blank'); 14 } 15 } 16 }); 17 18 // Ctrl+Click / Cmd+Click 19 document.addEventListener('click', function (e) { 20 if (e.ctrlKey || e.metaKey) { 21 var link = e.target.closest('a'); 22 if (isInternalLink(link)) { 23 e.preventDefault(); 24 window.open(link.href, '_blank'); 25 } 26 } 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.