Plus one Minus one algorithm

Play for ten times then refresh the page and select diffrent bet (HI/LO)

当前为 2019-09-30 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Plus one Minus one algorithm
// @description Play for ten times then refresh the page and select diffrent bet (HI/LO)
// @include     https://freebitco.in/*
// @copyright   2019, [email protected]
// @version     1.1
// @namespace 	william
// ==/UserScript==
bconfig = {
wait: 5000,
initialBet: 0.00000001
};

var x = bconfig.initialBet;
var i;
var choice;
var body = $('body');

var choiceSelect = prompt("Please enter hi or lo", "hi");
choice = choiceSelect;

rollDice = function() {

if ($('#double_your_btc_bet_lose').html() !== '') {
	x = x + 0.00000001;
	document.getElementById("double_your_btc_stake").value = x.toFixed(8).toString();
	//parseFloat($('#double_your_btc_stake').val(parseFloat(x)));
}else if ($('#double_your_btc_bet_win').html() !== '') {
	if (x != 0.00000001) {
		x = x - 0.00000001;
		document.getElementById("double_your_btc_stake").value = x.toFixed(8).toString();
		//parseFloat($('#double_your_btc_stake').val(parseFloat(x)));
	}	
}
$('#double_your_btc_bet_' + choice + '_button').click();
};

/*if (choice == null || choice == "") {
  choice = "hi";
} else {
  
}*/
    body.prepend(
        $('<div/>').attr('style',"position:fixed;top:50px;left:0;z-index:999;width:400px;background-color:#227d5c;color: white; text-align: center;")
            .append(
                $('<div/>').attr('id','autofaucet')
                    .append($('<p/> text-align: center').text("Donate:"))
                    .append($('<p/> text-align: center').text("37rtYG6a3ZaZjYNZThiQNTBVifxK44V6eS"))
                    .append($('<p/> text-align: center').text("Click to copy"))
                    .append($('<p/>')
                    )
            ).click(function(){
            var $temp = $('<input>').val("37rtYG6a3ZaZjYNZThiQNTBVifxK44V6eS");
            body.append($temp);
            $temp.select();
            document.execCommand("copy");
            $temp.remove();
        })
    ).prepend($('<style/>')
        .text("#autofaucet p { margin: 0; margin-left: 0px;  text-align: center; }")
)
		
for (i = 0; i < 11; i++) {
	setTimeout(function(){ rollDice(); }, bconfig.wait);
}