Auto-Roll Only

Auto-Roll Only for freebitco.in

当前为 2025-02-24 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name Auto-Roll Only
// @namespace freebitco.in Auto-Roll Hourly
// @description Auto-Roll Only for freebitco.in
// @author GypsyMan
// @include https://freebitco.in/*
// @run-at document-end
// @grant GM_addStyle
// @version 3
// ==/UserScript==
var timer = undefined;
var counter = 0;
var remain = 60*6;

function try_roll()
{
var x = document.querySelector("#free_play_form_button"),
myRP = document.getElementsByClassName("user_reward_points"),
y = document.getElementById("bonus_container_free_points"),
z = document.getElementById("bonus_container_fp_bonus");
console.log("Detect if we can roll");
document.title="Can we roll?";
if(y == null){
if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=1200)
setTimeout(function(){
// RedeemRPProduct('free_points_100');
}, 3000);
else
if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=600)
setTimeout(function(){
// RedeemRPProduct('free_points_50');
}, 3000);
else
if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=120)
setTimeout(function(){
// RedeemRPProduct('free_points_10');
}, 3000);
else
if(parseInt(myRP[0].innerText.replace(/,/g, '')) >=12)
setTimeout(function(){
// RedeemRPProduct('free_points_1');
}, 3000);
}
if(z==null && parseInt(myRP[0].innerText.replace(/,/g, '')) >= 4400){
setTimeout(function(){
// RedeemRPProduct('fp_bonus_10');
}, 3000);
}
if(x && x.style["display"] != "none")
{
console.log("Rolling...");
document.title="Rooling...";
x.click();
remain = 606;
counter = 0;
}
}
function count_up()
{
counter = counter + 1;
if(counter >= remain)
{
location.reload();
}
try_roll();
}
function auto_roll()
{
if(document.location.href.indexOf("freebitco.in") == -1)
return;
try_roll();
timer = setInterval(count_up, 101000); /* 1 minutes */
}
setTimeout(function(){
auto_roll();
}, 40000);