Hide ads clicker

Auto clicks the hide ads button

اعتبارا من 19-08-2021. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey 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 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.

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

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         Hide ads clicker
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Auto clicks the hide ads button
// @author       Roboapple
// @match        https://beta.sankakucomplex.com/*
// @icon         https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant        GM_log
// ==/UserScript==

(function() {
    'use strict';
    console.log("Active");
    
    //calls the check every 10th of a second.  im bad at javescript so idk how to invoke it based on the appearance of the html element.
    setInterval(function(){ CheckForButton();}, 100);
})();

function CheckForButton(){

    //checks if the button is there and if so click it
    if(document.getElementsByClassName("MuiButtonBase-root MuiIconButton-root")){

        for (let i = 0; i < document.getElementsByClassName("MuiButtonBase-root MuiIconButton-root").length; i++) {
            if(document.getElementsByClassName("MuiButtonBase-root MuiIconButton-root")[i].ariaLabel == "close"){
                document.getElementsByClassName("MuiButtonBase-root MuiIconButton-root")[i].click();
                console.log("clicked!");
            }
        }
    }
}