Greasy Fork is available in English.

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

À partir de 2022-11-08. Voir la dernière version.

// ==UserScript==
// @name        Anti [ AdBlock Detector ]
// @namespace   -
// @version     0.1
// @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
// @author      Nudo#3310
// @match       *://moomoo.io/*
// @match       *://*.moomoo.io/*
// @icon        https://moomoo.io/img/favicon.png?v=1
// @run-at      document-start
// @grant       none
// ==/UserScript==

(function() {
    const observer = new MutationObserver(function(mutations) {
        for (const mutation of mutations) {
            for (const node of mutation.addedNodes) {
                if (node.tagName === "SCRIPT" && node.classList.contains("fEy1Z2XT")) {
                    observer.disconnect()

                    node.remove()
                }
            }
        }
    })

    observer.observe(document, {childList: true, subtree: true})
})()