0% found this document useful (0 votes)
118 views2 pages

Freebitcoin 3rojos

This document defines JavaScript code to automate betting on a "double your BTC" site. It includes: 1) Functions to start and stop the automated betting by binding/unbinding click events and updating buttons. 2) Variables to track the betting pattern, number of bets placed, initial and current balances. 3) Event bindings that check for win/lose results and call a function to validate the betting pattern and stop if complete. 4) The validation function that logs the result, updates the betting pattern string, and stops if the pattern matches or continues betting if not.

Uploaded by

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

Freebitcoin 3rojos

This document defines JavaScript code to automate betting on a "double your BTC" site. It includes: 1) Functions to start and stop the automated betting by binding/unbinding click events and updating buttons. 2) Variables to track the betting pattern, number of bets placed, initial and current balances. 3) Event bindings that check for win/lose results and call a function to validate the betting pattern and stop if complete. 4) The validation function that logs the result, updates the betting pattern string, and stops if the pattern matches or continues betting if not.

Uploaded by

Yan Mikhlin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

var x = '<div id="botonera" class="large-12 small-12 columns center">' +

'<button id="start" onclick="iniciar()" class="btn btn-primary"


style="margin:0 0 10px 0; padding:3px; width:auto;">Iniciar</button>' +
'</div>' +
'<div class="large-12 small-12 columns center">' +
'<input type="text" id="patron" value="RRR" style="text-
align:center; height:30px;">' +
'</div>'
$("#double_your_btc_right_section p:first").html(x);

$('#double_your_btc_bet_lose').unbind();
$('#double_your_btc_bet_win').unbind();
var jugadas; var patron;
var hacerParada = false; var balanceInicial; var balanceActual;
function iniciar(){
//debugger;
patron=$("#patron").val();
hacerParada=false;
$("#botonera").html('<button id="start" onclick="parar()" class="btn btn-warning
style="margin:0 0 10px 0; padding:3px; width:auto;">Parar</button>');
jugadas = "";
$('#double_your_btc_stake').val('0.00000001');
$("#double_your_btc_bet_hi_button").trigger("click");
balanceInicial = ( parseInt(parseFloat ( $("#balance").html() ) * 100000000) );
}

function parar(){
hacerParada = true;
$("#botonera").html('<button id="start" onclick="iniciar()" class="class="btn
btn-primary" style="margin:0 0 10px 0; padding:3px;
width:auto;">Iniciar</button>');
//$('#double_your_btc_bet_lose').unbind();
//$('#double_your_btc_bet_win').unbind();
}

$('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(e){
//debugger;
if (hacerParada) return;
if( $(event.currentTarget).is(':contains("lose")') ){
validarPatron("R");
}

});

function validarPatron(resultado){
jugadas+= resultado;
var valor = jugadas.substr(jugadas.length - patron.length);
if (valor==patron){
parar();
balanceActual = (parseInt(parseFloat ($
("#balance").html())*100000000));
var inversion = balanceActual-balanceInicial;
alert("Patrón encontrado: " + valor + "\nInversión:" + inversion + "
satoshis" );
}else{
$("#double_your_btc_bet_hi_button").trigger("click");
}
}
$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(e){
//debugger;
if (hacerParada) return;
if( $(event.currentTarget).is(':contains("win")') ){
validarPatron("V");
}
});

You might also like