AUTOCLICK "Continue" OF "Please disable your ad-block." Popup

automatic click "Continue" for "Please disable your ad-block." Popup

Version vom 17.02.2024. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         AUTOCLICK "Continue" OF "Please disable your ad-block." Popup
// @namespace    
// @version      2024-02-17
// @description  automatic click  "Continue" for "Please disable your ad-block." Popup
// @author       Beginner[2023]
// @match        https://idol.sankakucomplex.com/*
// @match        https://chan.sankakucomplex.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=sankakucomplex.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    var disAdBlockPopupisActive = false

    function disAdBlockPopup() {
        let spanCount = document.getElementsByTagName('span').length

        console.log('span: ' + spanCount)

        for (let i = 0; i < spanCount; i++) {
            let continueEle = document.getElementsByTagName('span')[i];
            let continueEle_text = document.getElementsByTagName('span')[i].innerText;

            if (continueEle_text.toLowerCase().startsWith('co') != false && continueEle_text.toLowerCase().endsWith('nue') != false) {
                console.log(i + ': ' + continueEle_text);

                continueEle.click();
                console.log('Here!!');

                disAdBlockPopupisActive = true;
            }
            if (continueEle_text.startsWith('co') == true) {
                console.log(i + ': ' + continueEle_text);
                continueEle.click();


                break
            }
        }
    }

    let detectDisadblockPop = setInterval(disAdBlockPopup,300);

    setInterval(function(){
        if (disAdBlockPopupisActive != false) {
            clearInterval(detectDisadblockPop);
        }
    },500)

})();