PageSourceSearch

https://shizhouxing.github.io/assets/js/main.js

js shizhouxing.github.io collected 2026-10-03 09:56:42 UTC 413 bytes, 14 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2  document.querySelectorAll('a:not(.nav-link):not([href^="#"])').forEach(function(a) {
3    if (!a.getAttribute('target')) {
4      a.setAttribute('target', '_blank');
5    }
6  });
7});
8
9if (window !== window.top) {
10  // Inside an iframe
11  document.querySelectorAll('a:not([href^="#"])').forEach(function(a) {
12    a.setAttribute('target', '_blank');
13  });
14}

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.