var startValue = '0.038000001', // Don't lower the decimal point more than 4x of current balance stopPercentage = 0.001, // In %. I wouldn't recommend going past 0.08 maxWait = 500, // In milliseconds stopped = false, stopBefore = 3; // In minutes
var $loButton = $('#double_your_doge_bet_lo_button'), $hiButton = $('#double_your_doge_bet_hi_button');
functionmultiply() { var current = $('#double_your_doge_stake').val(); var multiply = (current * 2).toFixed(8); $('#double_your_doge_stake').val(multiply); }
functiongetRandomWait() { var wait = Math.floor(Math.random() * maxWait) + 100; console.log('Waiting for ' + wait + 'ms before next bet.'); return wait; }
// quick and dirty hack if you have very little bitcoins like 0.0380001 functiondeexponentize(number) { return number * 1000000; }
functioniHaveEnoughMoni() { var balance = deexponentize(parseFloat($('#balance').text())); var current = deexponentize($('#double_your_doge_stake').val());
functionstopBeforeRedirect() { var minutes = parseInt($('title').text());
if (minutes < stopBefore) { console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.'); stopGame();
returntrue; }
returnfalse; }
// Unbind old shit $('#double_your_doge_bet_lose').unbind(); $('#double_your_doge_bet_win').unbind();
// Loser $('#double_your_doge_bet_lose').bind("DOMSubtreeModified", function (event) { if ($(event.currentTarget).is(':contains("lose")')) { console.log('You LOST! Multiplying your bet and betting again.');
// Winner $('#double_your_doge_bet_win').bind("DOMSubtreeModified", function (event) { if ($(event.currentTarget).is(':contains("win")')) { if (stopBeforeRedirect()) { return; }
if (iHaveEnoughMoni()) { console.log('You WON! But don\'t be greedy. Restarting!'); reset();
var startValue = '0.00000002', // Don't lower the decimal point more than 4x of current balance stopPercentage = 0.001, // In %. I wouldn't recommend going past 0.08 maxWait = 500, // In milliseconds stopped = false, stopBefore = 1; // In minutes for timer before stopping redirect on webpage
var $loButton = $('#double_your_btc_bet_lo_button'), $hiButton = $('#double_your_btc_bet_hi_button');
functionmultiply() { var current = $('#double_your_btc_stake').val(); var multiply = (current * 2).toFixed(8); $('#double_your_btc_stake').val(multiply); }
functiongetRandomWait() { var wait = Math.floor(Math.random() * maxWait) + 100; console.log('Waiting for ' + wait + 'ms before next bet.'); return wait; }
// quick and dirty hack if you have very little bitcoins like 0.0380001 functiondeexponentize(number) { return number * 1000000; }
functioniHaveEnoughMoni() { var balance = deexponentize(parseFloat($('#balance').text())); var current = deexponentize($('#double_your_btc_stake').val());
functionstopBeforeRedirect() { var minutes = parseInt($('title').text());
if (minutes < stopBefore) { console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.'); stopGame();
returntrue; }
returnfalse; }
// 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 ($(event.currentTarget).is(':contains("lose")')) { console.log('You LOST! Multiplying your bet and betting again.');
// Winner $('#double_your_btc_bet_win').bind("DOMSubtreeModified", function (event) { if ($(event.currentTarget).is(':contains("win")')) { if (stopBeforeRedirect()) { return; }
if (iHaveEnoughMoni()) { console.log('You WON! But don\'t be greedy. Restarting!'); reset();