bot pick

pick odds in plus & less goals with odd between 2.00 - 3.00. Bet all goals less one.

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         bot pick
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  pick odds in plus & less goals with odd between 2.00 - 3.00. Bet all goals less one.
// @author       You
// @match        https://www.betclic.pt/futebol-s1/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    setTimeout(function(){ judge(); }, 1500);

    function judge(){
        var more = document.getElementsByClassName("seeMoreButton prebootFreeze ng-star-inserted");
        if(more.length > 0) more[0].click();

        setTimeout(function(){
            var content = document.getElementsByClassName("oddButtonWrapper prebootFreeze ng-trigger ng-trigger-oddsStateAnimation"), size = (content.length > 24)? 24 : 0,
                aux = -1, i = 0;

            for(var j = 3; j < size; j++){

                var odd = parseFloat(content[j].getElementsByClassName("oddValue")[0].textContent.replace(',','.')), odd1 = parseFloat(content[j+1].getElementsByClassName("oddValue")[0].textContent.replace(',','.'));

                if( !((content[j].title).localeCompare("Abaixo de "+i+".5")) ){

                    //console.log(content[j].title+" | "+odd+"| "+content[j+1].title+" | "+odd1);
                    if( (odd > 2.00 && odd < 3.00) && ( odd1 > 2.00 && odd1 < 3.00) ){ aux = j; break;}
                    i++;
                }

            }

            // click
            if(aux > -1){
                content[aux].click();
                content[aux+1].click();
            }

            window.location.href = "https://www.betclic.pt/futebol-s1";
        }, 1000);
    }
    // Your code here...
})();