PageSourceSearch

https://govorim.cc/adblock/adblocks.js

js govorim.cc collected 2026-09-30 02:28:37 UTC 3,836 bytes, 102 lines download raw bytes

1var ads = "js_block"
2var ads2 = "js_block_full"
3var msg = '<!--noindex--><a rel="nofollow" target="blanc" href="https://ad.admitad.com/g/f99wvygtdt45ed8e611be5cbc1bcd5/?subid=promo"><img src="/templates/Art_Belarus/images/banner/e-dostavka_head.jpg"></a><!--/noindex-->';
4var msgTwo = '<!--noindex--><a rel="nofollow" target="blanc" href="https://ad.admitad.com/g/a054654c8c45ed8e611bc0e1312bc9/"><img src="/templates/Art_Belarus/images/banner/5elem.jpg"></a><!--/noindex-->';
5// you may choose to provide a direct URL path for the PHP file. Use 'http://"+document.location.hostname+' for the main part of your website's name. For example if the direct URL path to my php file was located at "http://www.saurdo.com/files/adblocks/adblocks.php". I would put "var php_url = 'http://'+document.location.hostname+'/files/adblocks/'"
6var php_url = 'https://'+document.location.hostname+'/adblock/'
7	
8function createXMLHttpRequest(){ 
9    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {} 
10    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} 
11    try { return new XMLHttpRequest(); } catch(e) {} 
12    alert("XMLHttpRequest not supported"); 
13    return null; 
14} 
15function recordBlock(b){ 
16    xmlPost = createXMLHttpRequest(); 
17    // add our "blocked" value to our request 
18    xmlPost.open( "GET", php_url+"adblocks.php?b="+b, true ); 
19    // attach request header 
20    xmlPost.setRequestHeader("X-Requested-With", "XMLHttpRequest"); 
21    xmlPost.send( null ); 
22} 
23function addBlock() {
24	// IE doesn't have a getElementByClassName function!
25	if (document.getElementsByClassName == undefined) {
26		document.getElementsByClassName = function(className)
27		{
28			var hasClassName = new RegExp("(?:^|\\s)" + className + "(?:$|\\s)");
29			var allElements = document.getElementsByTagName("*");
30			var results = [];
31
32			var element;
33			for (var i = 0; (element = allElements[i]) != null; i++) {
34				var elementClass = element.className;
35				if (elementClass && elementClass.indexOf(className) != -1 && hasClassName.test(elementClass))
36					results.push(element);
37			}
38
39			return results;
40		}
41	}
42
43    blocked = 0; 	
44	var ad_nodes = document.getElementsByClassName(ads);
45	for(i in ad_nodes){
46	    // detect if container has a height (has content) 
47		if (ad_nodes[i].offsetHeight == 0){ 
48			blocked = 1;
49			//alert("blocked");
50			ad_nodes[i].innerHTML = msg;
51		}
52	}
53	var fullNewsBlock = document.getElementsByClassName(ads2);
54	for(i in fullNewsBlock){
55	    // detect if container has a height (has content) 
56		if (fullNewsBlock[i].offsetHeight == 0){
57			blocked = 1;
58			//alert("blocked");
59			fullNewsBlock[i].innerHTML = msgTwo;
60		}
61	}
62    // activate recordBlock function 
63    recordBlock(blocked); 
64}
65setTimeout(addBlock, 2500);
66
67/*
68onload=function(){
69setTimeout(() => true, 3000);
70	// IE doesn't have a getElementByClassName function!
71	if (document.getElementsByClassName == undefined) {
72		document.getElementsByClassName = function(className)
73		{
74			var hasClassName = new RegExp("(?:^|\\s)" + className + "(?:$|\\s)");
75			var allElements = document.getElementsByTagName("*");
76			var results = [];
77
78			var element;
79			for (var i = 0; (element = allElements[i]) != null; i++) {
80				var elementClass = element.className;
81				if (elementClass && elementClass.indexOf(className) != -1 && hasClassName.test(elementClass))
82					results.push(element);
83			}
84
85			return results;
86		}
87	}
88
89    blocked = 0; 	
90	var ad_nodes = document.getElementsByClassName(ads);
91	for(i in ad_nodes){
92	    // detect if container has a height (has content) 
93		if (ad_nodes[i].offsetHeight == 0){ 
94			blocked = 1;
95			//alert("blocked");
96			ad_nodes[i].innerHTML = msg;
97		}
98	}
99    // activate recordBlock function 
100    recordBlock(blocked); 
101}
102*/

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.