0% found this document useful (2 votes)
3K views2 pages

New Script Freebitcoin

The document defines JavaScript code to automate betting on a Bitcoin doubling website. It includes functions to start and stop the automation, track bets placed and results, check the bet results against a pattern, and alert when a pattern is found. Key variables tracked include the bet button, the defined pattern, a flag for stopping, and the initial and current balances.

Uploaded by

Atiye Salehi
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 (2 votes)
3K views2 pages

New Script Freebitcoin

The document defines JavaScript code to automate betting on a Bitcoin doubling website. It includes functions to start and stop the automation, track bets placed and results, check the bet results against a pattern, and alert when a pattern is found. Key variables tracked include the bet button, the defined pattern, a flag for stopping, and the initial and current balances.

Uploaded by

Atiye Salehi
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="patrones" value="RRR-VVV" 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 boton;
var hacerParada = false; var balanceInicial; var balanceActual;
function iniciar(){
boton = $("#double_your_btc_bet_hi_button");
//var boton = $("#double_your_btc_bet_hi_button");
patron=$("#patrones").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.00000002');
//$("#double_your_btc_bet_hi_button").trigger("click");
boton.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').bind("DOMSubtreeModified",function(event){
if (hacerParada) return;
if( $(event.currentTarget).is(':contains("lose")') ){
validarPatron("R");
}
});

$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
if (hacerParada) return;
if( $(event.currentTarget).is(':contains("win")') ){
validarPatron("V");
}
});

function validarPatron(resultado){
jugadas+= resultado;
var cadena = $("#patrones").val();
var patrones = cadena.split("-");
for (var i = 0; i < patrones.length; i++) {
var longitud = patrones[i].length;
var valor = jugadas.substr(jugadas.length - longitud);
var patron = patrones[i].substr(0,longitud);
if (valor==patron){
parar();
balanceActual = (parseInt(parseFloat ($
("#balance").html())*100000000));
var inversion = balanceActual-balanceInicial;
alert("Patrón encontrado: " + valor + "\nInversión:" + inversion
+ " satoshis" );
return;
}
}
boton.trigger("click");
}

You might also like