PageSourceSearch

https://1reklama.com/bitrix/templates/concept_kraken_s1/js/custom.js?17549657921354

js 1reklama.com collected 2026-09-29 23:19:10 UTC 1,354 bytes, 32 lines download raw bytes

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.