bot pick

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

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 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.

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         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...
})();