PageSourceSearch

https://www.zahav.ru/public/js/adBlock.js

js zahav.ru collected 2026-10-02 07:08:05 UTC 541 bytes, 18 lines download raw bytes

1(function () {
2	async function detectAdBlock() {
3		let adBlockEnabled = false;
4		const googleAdUrl = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
5		try {
6			await fetch(new Request(googleAdUrl)).catch(_ => (adBlockEnabled = true));
7			console.log('try');
8		} catch (e) {
9			console.log('catch');
10			adBlockEnabled = true;
11			console.log('adBlock', adBlockEnabled);
12		} finally {
13			sessionStorage.setItem('isAdBlock', adBlockEnabled);
14			console.log(`AdBlock Enabled: ${adBlockEnabled}`);
15		}
16	}
17	detectAdBlock();
18})();

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.