Today I saw a window asking me to disable AdBlock ._. If you also have a problem with this, then you can use this script
Size
2.4 KB
Version
0.3
Created
Jan 9, 2026
Updated
26 days ago
1// ==UserScript==
2// @name Anti [ AdBlock Detector ]
3// @name:ru Анти [ Обнаружитель AdBlock-а ]
4// @namespace -
5// @version 0.3
6// @description Today I saw a window asking me to disable AdBlock ._. If you also have a problem with this, then you can use this script
7// @description:ru Сегодня я увидел окно с просьбой отключить AdBlock ._. Если у вас также есть проблема с этим, то вы можете использовать этот скрипт
8// @author Nudo#7346
9// @match *://moomoo.io/*
10// @match *://*.moomoo.io/*
11// @match *://*.io/*
12// @icon https://moomoo.io/img/favicon.png?v=1
13// @run-at document-start
14// @grant none
15// @downloadURL https://update.greasyfork.org/scripts/454462/Anti%20%5B%20AdBlock%20Detector%20%5D.user.js
16// @updateURL https://update.greasyfork.org/scripts/454462/Anti%20%5B%20AdBlock%20Detector%20%5D.meta.js
17// ==/UserScript==
18
19(function() {
20 const detected = {
21 active: false,
22 element: null
23 }
24
25 const observer = new MutationObserver(function(mutations) {
26 for (const mutation of mutations) {
27 for (const node of mutation.addedNodes) {
28 if (!node.classList) {
29 continue
30 }
31
32 let allElements = Object.values(document.querySelectorAll("*"))
33
34 allElements = allElements.filter((element) => element.classList.value.length && element.tagName === "DIV")
35
36 for (const element of allElements) {
37 if (!element.textContent.match(/Support\sFree\s\w+/)) {
38 continue
39 }
40
41 detected.active = true
42 detected.element = element
43
44 observer.disconnect()
45
46 break
47 }
48 }
49 }
50 })
51
52 const interval = setInterval(() => {
53 if (!detected.active) return void 0
54
55 if (detected.element.style.visibility === "hidden") return void 0
56
57 detected.element.remove()
58
59 console.log("Anti [ AdBlock Detector ]::success", detected.element)
60
61 clearInterval(interval)
62 })
63
64 observer.observe(document, {childList: true, subtree: true})
65
66 setTimeout(() => {
67 observer.disconnect()
68 }, 30000)
69})()