/* * This is a JavaScript Scratchpad. * * Enter some JavaScript, then Right Click or choose from the Execute Menu: * 1. Run to evaluate the selected text (Ctrl+R), * 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or, * 3. Display to insert the result in a comment after the selection. (Ctrl+L) */ bconfig = { maxBet: 0.0002200, wait: 1000, autoexit: 0.00001, want: 0.000014, toggleHilo:false, startbal: 0, won: 0, }; hilo = 'lo'; multiplier = 1; rollDice = function() { if ($('#double_your_btc_bet_lose').html() !== '') { $('#double_your_btc_2x').click(); multiplier = 1; if(bconfig.toggleHilo)toggleHiLo(); } else { $('#double_your_btc_min').click(); multiplier = 1; } if (parseFloat($('#balance').html()) < (parseFloat($('#double_your_btc_stake').val()) * 2) || parseFloat($('#double_your_btc_stake').val()) > bconfig.maxBet) { console.log($('#double_your_btc_min')); } if (parseFloat($('#balance').html()) < bconfig.autoexit) { throw "exit"; } if (parseFloat($('#balance').html()) > bconfig.want) { var num = parseFloat($('#balance').html()); bconfig.want = num + 0.00000030; bconfig.autoexit = num - 0.00000420; bconfig.won++; var total = num - bconfig.startbal; console.log('Setting bconfig want to: ' + bconfig.want) console.log('Setting autoexit to: ' + bconfig.autoexit) console.log('Total won: ' + total + ' BTC') } $('#double_your_btc_bet_hi_button').click(); setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 1000)); }; toggleHiLo = function() { if (hilo === 'lo') { hilo = 'lo'; } else { hilo = 'lo'; } }; var num = parseFloat($('#balance').html()); bconfig.startbal = num; bconfig.want = num + 0.00000030; bconfig.autoexit = num - 0.00000420; rollDice();