PageSourceSearch

https://www.gazetadopovo.com.br/public-next/js/adBlock.js

js gazetadopovo.com.br collected 2026-09-24 07:54:53 UTC 1,248 bytes, 38 lines download raw bytes

1/* eslint-disable @typescript-eslint/no-unused-vars */
2function adBlockerOnEvent(event) {
3  adBlocker()
4  event.currentTarget.removeEventListener(event.type, adBlockerOnEvent)
5}
6
7document.addEventListener('DOMContentLoaded', () => {
8  setTimeout(adBlocker, 500)
9})
10
11document.addEventListener('scroll', adBlockerOnEvent)
12document.addEventListener('mousemove', adBlockerOnEvent)
13document.addEventListener('touchstart', adBlockerOnEvent)
14
15document.cookie = '__adblocker=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'
16
17const setNptTechAdblockerCookie = function (isBlocked) {
18  const expirationDate = new Date()
19  expirationDate.setTime(expirationDate.getTime() + 300000) // 5 minutos
20  document.cookie =
21    '__adblocker=' +
22    (isBlocked ? 'true' : 'false') +
23    '; expires=' +
24    expirationDate.toUTCString() +
25    '; path=/'
26}
27
28function adBlocker() {
29  if (window.adBlockerInit) return false
30  window.adBlockerInit = true
31
32  const scriptElement = document.createElement('script')
33  scriptElement.setAttribute('async', '')
34  scriptElement.setAttribute('src', '//www.npttech.com/advertising.js')
35  scriptElement.setAttribute('onerror', 'setNptTechAdblockerCookie(true);')
36
37  document.getElementsByTagName('head')[0].appendChild(scriptElement)
38}

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.