Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
1.2 kB
2
Indexable
Never
// ==UserScript==
// @name         Gartic.io Auto Clicker
// @namespace    http://tam_buraya_url_girin.com
// @version      0.1
// @description  Gartic.io otomatik tıklama
// @author       You
// @match        *://*/*?__cpo=aHR0cHM6Ly9nYXJ0aWMuaW8
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function clickSelectAvatar() {
        var selectAvatarButton = document.querySelector('.selectAvatar');
        var randomNum = 4;
        if (selectAvatarButton) {
            selectAvatarButton.click();

            setTimeout(function() {
                var avatarOption = document.querySelector('.avt' + randomNum);

                if (avatarOption) {
                    avatarOption.click();

                    setTimeout(function() {
                        var yesButton = document.querySelector('.btYellowBig.ic-yes');

                        if (yesButton) {
                            yesButton.click();
                        }
                    }, 1000);
                }
            }, 1000);
        }
    }

    // Set interval and capture the interval ID
    var intervalId = setInterval(clickSelectAvatar, 1);
})();
Leave a Comment