1 2document.addEventListener('DOMContentLoaded', function () { 3 var cells = document.querySelectorAll('.frame-type-table td') 4 ;[].forEach.call(cells, function (el) { 5 if (el.innerText.includes('img:')) { 6 el.innerHTML = 7 '<img src="/' + 8 el.innerText.replace('img:', '') + 9 '" alt="" width="100">' 10 } 11 if (el.innerText.includes('link:')) { 12 if (el.innerText.includes('t3://')) { 13 const link = new URL(el.innerText.toString()) 14 const url = link.searchParams.get('url') 15 const title = 16 link.searchParams.get('title') == '' || 17 !link.searchParams.get('title') 18 ? 'kein titel' 19 : link.searchParams.get('title') 20 el.innerText = title 21 file_get_contents( 22 '?type=148512357276453&url=' + encodeURI(url), 23 function (data) { 24 el.innerHTML = JSON.parse(data).link 25 el.children.item(0).innerText = title 26 } 27 ) 28 } else { 29 const link = new URL(el.innerText.toString()) 30 const url = link.searchParams.get('url') 31 const title = 32 link.searchParams.get('title') == '' || 33 !link.searchParams.get('title') 34 ? url.replace('mailto:','').replace('tel:','') 35 : link.searchParams.get('title') 36 let a = document.createElement('a') 37 a.href = url 38 a.innerText = title 39 el.innerText = '' 40 el.appendChild(a) 41 } 42 } 43 }) 44 }) 45 46 async function file_get_contents (uri, callback) { 47 let res = await fetch(uri), 48 ret = await res.text() 49 return callback ? callback(ret) : ret // a Promise() actually. 50 } 51
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.