bconfig = { minWait: 3000, maxWait : 5000, odd : 1.5, bet : 0.00000002 }; //*********************************** var add = bconfig.bet; var x = add; var choice; var body = $('body'); var maxWait = bconfig.maxWait; var minWait = bconfig.minWait; var c = 1; var roll; var hi = "hi"; var lo = "lo"; var sum = 0.00000000; var stopprofit = 1.00000000; var stoploss = -1.00000000; var y = 1; var state = 1 ; //********************************* var choiceroll = prompt("Please enter number of rolls", "10"); roll = parseInt(choiceroll, 10); var rp = confirm("Do you want to stop the script on PROFIT"); if (rp == true) { var choiceprofit= prompt("Please enter a value in Satoshi", "100"); stopprofit = parseInt(choiceprofit, 10); } var rl = confirm("Do you want to stop the script on LOSS"); if (rl == true) { var choiceloss= prompt("Please enter a negative value in Satoshi", "-50"); stoploss = parseInt(choiceloss, 10); } function getRandomWait() { var wait; do { wait = Math.floor(Math.random() * maxWait) + 100; } while (wait < minWait); console.log(wait); return wait; } var init_balance = $('#balance').html(); document.getElementById("double_your_btc_payout_multiplier").value = "1.5"; rollDice = function(choice) { var balance = $('#balance').html(); if (x < 0.00000001) { x = add; document.getElementById("double_your_btc_stake").value = x.toFixed(8).toString(); } var lenLose = $('#double_your_btc_bet_lose').html().length; //console.log(lenLose); var lenWin = $('#double_your_btc_bet_win').html().length; //console.log(lenWin); if (lenLose > 36 && lenWin == 0 && state == 1) { lenWin = 0; lenLose = 0; //x = x + add; y = y * 3; x = add * y; document.getElementById("double_your_btc_stake").value = x.toFixed(8).toString(); $('#double_your_btc_bet_' + choice + '_button').click(); }else if (lenWin > 36 && lenLose == 0 && state == 1){ lenWin = 0; lenLose = 0; if (x >= add * bconfig.odd * 2 ) { y = 1; x = add * y; document.getElementById("double_your_btc_stake").value = x.toFixed(8).toString(); } $('#double_your_btc_bet_' + choice + '_button').click(); } c++; console.log("Roll number :"+c); sum = parseFloat(balance) - parseFloat(init_balance) ; if (((sum * 100000000) > stopprofit) || ((sum * 100000000) < stoploss)){ console.log("Script stopped"); state = 0; alert("Script stopped, " + " Profit = " + sum.toFixed(8).toString()); location.reload(); } } /*if (choice == null || choice == "") { choice = "hi"; } else { }*/ body.prepend( $('
').attr('style',"position:fixed;top:50px;left:0;z-index:999;width:400px;background-color:#227d5c;color: white; text-align: center;") .append( $('
').attr('id','autofaucet') .append($('

text-align: center').text("Donate:")) .append($('

text-align: center').text("1Jh72g1dBtnKjvP9wC4KSbEdVGNfpD8mDc")) .append($('

text-align: center').text("Click to copy")) .append($('

') ) ).click(function(){ var $temp = $('').val("1Jh72g1dBtnKjvP9wC4KSbEdVGNfpD8mDc"); body.append($temp); $temp.select(); document.execCommand("copy"); $temp.remove(); }) ).prepend($('