PageSourceSearch

https://torch.ch/static/linkify.js

js torch.ch collected 2026-09-24 08:46:11 UTC 536 bytes, 22 lines download raw bytes

1[].slice.apply(
2  document.querySelectorAll(
3    'article h2, article h3, article h4'
4  )
5).forEach(function(header) {
6  var slug = header.innerText
7    .toLowerCase()
8    .replace(/[^a-z0-9]/g, '-')
9    .replace(/-+/g, '-')
10    .replace(/^-|-$/g, '');
11
12  var hashref = document.createElement('a');
13  hashref.id = slug;
14  hashref.className = 'hashref';
15  header.appendChild(hashref);
16
17  var hash = document.createElement('a');
18  hash.className = 'hash';
19  hash.href = '#' + slug;
20  hash.innerText = '#';
21  header.appendChild(hash);
22});

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.