PageSourceSearch

https://vagcenter.by/pans.js

js vagcenter.by collected 2026-10-08 15:27:17 UTC 1,613 bytes, 42 lines download raw bytes

1// Функция для поиска аномалий
2function findAnomalies() {
3    const anomalies = [];
4    
5    // Поиск изображений без alt атрибута
6    const images = document.querySelectorAll('img');
7    images.forEach(img => {
8        if (!img.hasAttribute('alt')) {
9            anomalies.push({ type: 'Image without alt', element: img });
10        }
11    });
12
13    // Поиск элементов с слишком большим количеством текста
14    const textElements = document.querySelectorAll('p, div');
15    textElements.forEach(el => {
16        if (el.innerText.length > 500) { // Пример порога
17            anomalies.push({ type: 'Long text element', element: el });
18        }
19    });
20
21    // Поиск элементов без заголовков
22    const sections = document.querySelectorAll('section');
23    sections.forEach(section => {
24        if (!section.querySelector('h1, h2, h3')) {
25            anomalies.push({ type: 'Section without headings', element: section });
26        }
27    });
28
29    // Вывод найденных аномалий в консоль
30    displayAnomalies(anomalies);
31}
32
33// Функция для вывода аномалий в консоль
34function displayAnomalies(anomalies) {
35    console.log('Anomalies Found:');
36    anomalies.forEach(anomaly => {
37        console.log(`${anomaly.type}:`, anomaly.element.outerHTML);
38    });
39}
40
41// Автоматический запуск скрипта при загрузке страницы
42window.onload = findAnomalies;

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.