1document.addEventListener('DOMContentLoaded', function () { 2 // ÐÐ°Ñ Ð¾Ð´Ð¸Ð¼ вÑе ÑлеменÑÑ Ñ ÐºÐ»Ð°ÑÑом sclink 3 const sclinkElements = document.querySelectorAll('.sclink'); 4 5 sclinkElements.forEach(function (el) { 6 // Ð¡Ð¾Ñ ÑанÑем ÑекÑÑий onclick, еÑли нÑжно извлеÑÑ URL (опÑионалÑно) 7 const onclickAttr = el.getAttribute('onclick'); 8 let linkUrl = '#'; 9 10 // Ðзвлекаем URL из starGo('url'), еÑли возможно 11 if (onclickAttr && onclickAttr.includes("starGo")) { 12 const match = onclickAttr.match(/starGo\s*\(\s*['"]([^'"]+)['"]/); 13 if (match && match[1]) { 14 linkUrl = match[1].trim(); 15 } 16 } 17 18 // УдалÑем onclick 19 el.removeAttribute('onclick'); 20 21 // СоздаÑм обÑÑÑкÑ-ÑÑÑÐ»ÐºÑ 22 const wrapper = document.createElement('a'); 23 wrapper.href = linkUrl; 24 wrapper.className = 'call-modal callagreement'; 25 wrapper.setAttribute('data-call-modal', 'agreement1'); 26 wrapper.setAttribute('style', 'display: inline;'); // ÑÑÐ¾Ð±Ñ Ð½Ðµ ÑломаÑÑ Ð¾ÑобÑажение 27 28 // ÐÑÑавлÑем обÑÑÑÐºÑ 29 el.parentNode.insertBefore(wrapper, el); 30 wrapper.appendChild(el); 31 }); 32});
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.