above 0.5

try to take over the world!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu betiği yüklemek için bir betik yöneticisi eklentisi yüklemeniz gerekecektir.

(Zaten bir betik yöneticim var, hadi yükleyelim!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         above 0.5
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       botclimber
// @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"),aux = -1, size = (content.length > 24)? 24 : 0;

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

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

                if( !((content[j].title).localeCompare("Acima de 0.5")) ){

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

                }
            }

            // click
            if(aux > -1){
                content[aux].click();
                var dot = localStorage.getItem("dot");
                dot = (!dot)? 1 : dot;

                dot = (dot * parseFloat(content[aux].textContent.replace(',','.')).toFixed(2) ).toFixed(2);

                if(dot >= 2.00){ localStorage.setItem("ctr_cl", 0); localStorage.setItem("dot", 1); }
                else localStorage.setItem("dot", dot);

            }else{
                var ctr = parseInt(localStorage.getItem("ctr_cl"));
                ctr = (ctr * 1) + 1;
                localStorage.setItem("ctr_cl", ctr);
            }

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

})();