Clixgrid viewer

enter something useful

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Clixgrid viewer
// @namespace    jorgequintt
// @version      1
// @description  enter something useful
// @author       Jorge Quintero
// @match        www.clixsense.com/*
// @grant        none
// @run-at document-end
// ==/UserScript==
if(window.location.href.indexOf("ClixGrid")==28){
    if(window.location.href.length<=36){
        //ik=0;
        chances=document.getElementById("clxs1").innerText;
        grids = document.getElementsByTagName("table")[3].getElementsByTagName("td");
        back=document.getElementById("clxpic").src;
        avGrids = [];

        for (var i=(grids.length-1);i>=0;i--){
            if(grids[i].title!=="You have already clicked this position today"){
                avGrids.push(grids[i]);
            }
        }

        function seeGrid(n){
            setTimeout(function() {avGrids[n].click()},1500);
        }      

        randomFromAv=Math.floor(Math.random() * avGrids.length);
        document.title="("+chances+" grids restantes)";
        if(chances!=="0"){seeGrid(randomFromAv);}

        function roll(){
            if(document.getElementById("clxs1").innerText!==chances){
                //ik+=1;
                chances=document.getElementById("clxs1").innerText;
                grids = document.getElementsByTagName("table")[3].getElementsByTagName("td");

                avGrids = [];

                for (var i=(grids.length-1);i>=0;i--){
                    if(grids[i].title!=="You have already clicked this position today"){
                        avGrids.push(grids[i]);
                    }
                }

                function seeGrid(n){
                    setTimeout(function(){avGrids[n].click()},2200);
                }      

                randomFromAv=Math.floor(Math.random() * avGrids.length);
                document.title="("+chances+" grids restantes)";
                if(chances!=="0"/* && (ik==1)*/){seeGrid(randomFromAv);}
            }
            back=document.getElementById("clxpic").src;
            //if(ik==2){ik=0;}
        }

        setInterval(roll,100);
    }else if(window.location.href.length>36){
        function check(){
            if(!document.getElementsByClassName("msgx")[0]){
            }else{
                window.close();
            }
        }
        setInterval(check,500)
    }
}