Greasy Fork

Greasy Fork is available in English.

freebitco.in autoroll

autoclaim freebitco.in

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// Tampermonkey/Greasemonkey
// @name         freebitco.in autoroll
// @version      0.1.2
// @description  autoclaim freebitco.in
// @match        https://freebitco.in/?op=home
// @match        https://freebitco.in/
// @space        https://freebitco.in/?r=2574355 use referral please 
// @grant        none
// @namespace http://greasyfork.icu/users/474465
// ==/UserScript==
try{
  setTimeout(function(){

  
    var ativarRewards = true;
    var ativarBonus = true;
    var ativarCompraTickets = true;
    

    var rewards = document.getElementsByClassName('reward_table_box br_0_0_5_5 user_reward_points font_bold')[0].innerText.replace(',','');
    var id = document.getElementsByClassName('left bold')[0].innerHTML;

    if ($('#free_play_form_button').is(':visible') && !$('#play_without_captchas_button').is(':visible')) {

        if ($('#bonus_container_free_points').is(':visible'))
          console.log('O bônus já está ativado!!!');
        else if(ativarRewards){
          if(rewards >= 12 && rewards < 120)
            RedeemRPProduct('free_points_1');
          else if(rewards >= 120 && rewards < 300)
            RedeemRPProduct('free_points_10');
          else if(rewards >= 300 && rewards < 600)
            RedeemRPProduct('free_points_25');
          else if(rewards >= 600 && rewards < 1200)
            RedeemRPProduct('free_points_50');
          else if(rewards >= 1200)
            RedeemRPProduct('free_points_100');
          if(rewards-3200 >= 1200 && ativarBonus)
              setTimeout(function(){RedeemRPProduct('fp_bonus_1000');},500);
        }
        setTimeout(function(){
          $('#free_play_form_button').trigger('click');},4000);
    }
    else if($('#play_without_captchas_button').is(':visible')){
     
      try{
          if($('#req_for_bonuses_link').is(':visible')){
            $('#account_unblock_modal').trigger('click')

            console.log('Click efetuado para saber os requisitos para desbloquear o roll.');

            var ticketsParaComprar = document.getElementsByClassName('account_unblock_span option_play_multiply_span')[0].innerHTML;

            if(ticketsParaComprar.match(/,/))
                ticketsParaComprar = ticketsParaComprar.replace(',','');

            var comprarTickets;

            if(ativarCompraTickets){
              if(ticketsParaComprar<=350){
                comprarTickets = ticketsParaComprar * 2;

                document.getElementById('lottery_tickets_purchase_count').value = comprarTickets;

                $('#purchase_lottery_tickets_button').trigger('click');

                console.log(comprarTickets + ' tickets de loteria foram comprados!');

                setTimeout(function(){window.location.reload();},32000);
              }
              else
                comprarTickets = 0;
            }

          else
            console.log('Os tickets a serem comprados são muito elevados: '+comprarTickets);
          }
      }
      
      catch(err){window.location.reload();}
      }
    else
      console.log('Ainda não deu o tempo.');

    setTimeout(function(){window.location.reload();},1800000);
  },6000);
}

catch(err){
  document.cookie='cf_use_ob=0;path=/';window.location.reload();
}