PageSourceSearch

https://vselustry.ru/bitrix/templates/enext_new/js/custom.js?17913886651028

js vselustry.ru collected 2026-10-07 19:07:47 UTC 1,028 bytes, 29 lines download raw bytes

1/***CUSTOM JAVASCRIPT FOR YOUR SITE***/
2/* Keep manufacturer links visible while the selection guide stays compact. */
3(function () {
4  function promoteTrackLandingBrands() {
5    document.querySelectorAll('.catalog-section-prev .vl-seo-guide').forEach(function (guide) {
6      var brands = guide.querySelector(':scope > .vl-seo-guide__brands');
7      var parent = guide.parentElement;
8
9      if (!brands || !parent || parent.querySelector(':scope > .vl-seo-guide__brands')) {
10        return;
11      }
12
13      if (!brands.querySelector('.vl-seo-guide__brands-label')) {
14        var label = document.createElement('span');
15        label.className = 'vl-seo-guide__brands-label';
16        label.textContent = 'Производители:';
17        brands.insertBefore(label, brands.firstChild);
18      }
19
20      parent.insertBefore(brands, guide);
21    });
22  }
23
24  if (document.readyState === 'loading') {
25    document.addEventListener('DOMContentLoaded', promoteTrackLandingBrands);
26  } else {
27    promoteTrackLandingBrands();
28  }
29}());

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.