Anti [ AdBlock Detector ]

Today I saw a window asking me to disable AdBlock ._. If you also have a problem with this, then you can use this script

  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. // ==/UserScript==
  16.  
  17. (function() {
  18. const detected = {
  19. active: false,
  20. element: null
  21. }
  22.  
  23. const observer = new MutationObserver(function(mutations) {
  24. for (const mutation of mutations) {
  25. for (const node of mutation.addedNodes) {
  26. if (!node.classList) {
  27. continue
  28. }
  29.  
  30. let allElements = Object.values(document.querySelectorAll("*"))
  31.  
  32. allElements = allElements.filter((element) => element.classList.value.length && element.tagName === "DIV")
  33.  
  34. for (const element of allElements) {
  35. if (!element.textContent.match(/Support\sFree\s\w+/)) {
  36. continue
  37. }
  38.  
  39. detected.active = true
  40. detected.element = element
  41.  
  42. observer.disconnect()
  43.  
  44. break
  45. }
  46. }
  47. }
  48. })
  49.  
  50. const interval = setInterval(() => {
  51. if (!detected.active) return void 0
  52.  
  53. if (detected.element.style.visibility === "hidden") return void 0
  54.  
  55. detected.element.remove()
  56.  
  57. console.log("Anti [ AdBlock Detector ]::success", detected.element)
  58.  
  59. clearInterval(interval)
  60. })
  61.  
  62. observer.observe(document, {childList: true, subtree: true})
  63.  
  64. setTimeout(() => {
  65. observer.disconnect()
  66. }, 30000)
  67. })()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址