0% found this document useful (0 votes)
39 views3 pages

Bitcoin Betting Game Automation Script

Script

Uploaded by

Dion Permana
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views3 pages

Bitcoin Betting Game Automation Script

Script

Uploaded by

Dion Permana
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

var startValue = '0.

00000002', // Don't lower the decimal point more


than 4x of current balance
stopPercentage = 0.001,
maxWait = 10250,
stopped = false, // debugging
stopBefore = 2; // In minutes for timer before stopping redirect
on webpage

var $hiButton = $('#double_your_btc_bet_hi_button'),


$hiButton = $('#double_your_btc_bet_hi_button');

function multiply(){
var current = $('#double_your_btc_stake').val();
var multiply = (current * 2).toFixed(8);
$('#double_your_btc_stake').val(multiply);
}

function getRandomWait(){
var wait = [Link]( maxWait ) + 100;

[Link]('Tunggu ' + wait + 'ms sebelum bet selanjutnya');

return wait ;
}

function startGame(){
[Link]('Game started!');
reset();
$[Link]('click');
}

function stopGame(){
[Link]('Game will stop soon! Let me finish.');
stopped = true;
}

function reset(){
$('#double_your_btc_stake').val(startValue);
}

// quick and dirty hack if you have very little bitcoins like
0.00000001
function deexponentize(number){
return number * 10000000;
}

function iHaveEnoughMoni(){
var balance = deexponentize(parseFloat($('#balance').text()));
var current = deexponentize($('#double_your_btc_stake').val());

return ((balance)*2/100) * (current*2) > stopPercentage/100;


}

function stopBeforeRedirect(){
var minutes = parseInt($('title').text());

if( minutes < stopBefore )


{
[Link]('Approaching redirect! Stop the game so we
don\'t get redirected while loosing.');
stopGame();

return true;
}

return false;
}

// Unbind old shit


$('#double_your_btc_bet_lose').unbind();
$('#double_your_btc_bet_win').unbind();

// Loser
$
('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event)
{
if( $([Link]).is(':contains("lose")') )
{
[Link]('_______________ KALAH');

multiply();

setTimeout(function(){
$[Link]('click');
}, getRandomWait());

//$[Link]('click');
}
});

// Winner
$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event)
{
if( $([Link]).is(':contains("win")') )
{
if( stopBeforeRedirect() )
{
return;
}

if( iHaveEnoughMoni() )
{
[Link]('MENANG_______________ ');

reset();

if( stopped )
{
stopped = false;
return false;
}
}
else
{
[Link]('MENANG_______________');
}
setTimeout(function(){
$[Link]('click');
}, getRandomWait());
}
});startGame()

You might also like