PageSourceSearch

https://www.ic.org/wp-content/codicts-snippets/110282-codicts-snippet.js?ver=1781709886

js ic.org collected 2026-10-01 10:18:00 UTC 595 bytes, 21 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2	var currentHost = window.location.hostname;
3
4	document.querySelectorAll('a[href]').forEach(function (link) {
5		if (link.protocol !== 'http:' && link.protocol !== 'https:') {
6			return;
7		}
8
9		if (link.hostname !== currentHost) {
10			link.setAttribute('target', '_blank');
11
12			var rel = (link.getAttribute('rel') || '').split(/\s+/).filter(Boolean);
13			['noopener', 'noreferrer'].forEach(function (value) {
14				if (rel.indexOf(value) === -1) {
15					rel.push(value);
16				}
17			});
18			link.setAttribute('rel', rel.join(' '));
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.