PageSourceSearch

https://www.rasslabyxa.ru/promo_js/no_recl.js

js rasslabyxa.ru collected 2026-10-04 17:26:41 UTC 1,282 bytes, 33 lines download raw bytes

1var ads = "noad8b7l6"
2var msg = '<div style="border: 1px dashed #f00; padding: 5px;"><b>Чтобы РАССЛАБУХА.рф не закрылась - отключите Adblock и посетите рекламу</b></div>';
3
4onload=function(){
5	// заглушка для IE, т.к. нет функции getElementByClassName
6	if (document.getElementsByClassName == undefined) {
7		document.getElementsByClassName = function(className)
8		{
9			var hasClassName = new RegExp("(?:^|\s)" + className + "(?:$|\s)");
10			var allElements = document.getElementsByTagName("*");
11			var results = [];
12
13			var element;
14			for (var i = 0; (element = allElements[i]) != null; i++) {
15				var elementClass = element.className;
16				if (elementClass && elementClass.indexOf(className) != -1 && hasClassName.test(elementClass))
17					results.push(element);
18			}
19			return results;
20		}
21	}
22
23    blocked = 0;
24	//получаем массив всех рекламных элементов
25	var ad_nodes = document.getElementsByClassName(ads);
26	for(i in ad_nodes){
27        // проверяем высоту i-го блока
28        if (ad_nodes[i].offsetHeight == 0){
29            blocked = 1;
30            ad_nodes[i].innerHTML = msg; // выводим сообщение на экран
31        }
32    }
33}

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.