dardarino

script freebitcoin dec 2017

Dec 23rd, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. $('body').append('<div style="position:fixed;top:0;left:0;width:100%;height:100%;min-height:100%;text-align: center;z-index:100000;background-color:white;" class=""><table style="margin:0 auto;"><tr><td>balance</td><td id="balance_b"></td></tr><tr><td>win</td><td id="roundwin_b"></td></tr><tr><td>bet</td><td id="current_bet_b"></td></tr><tr><td>time</td><td id="time_b"></td></tr></table></div>');
  2.  
  3. bconfig = {
  4. maxBet: 0.00001024,
  5. wait: 1,
  6. toggleHilo: false,
  7. alertMultiplier: 5
  8. };
  9.  
  10. initialBalance = parseFloat($('#balance').html());
  11. hilo = 'hi';
  12. multiplier = 1;
  13. startTime = new Date().getTime();
  14. rollDice = function() {
  15.  
  16. if ($('#double_your_btc_bet_lose').html() !== '') {
  17. $('#double_your_btc_2x').click();
  18. multiplier++;
  19. if (bconfig.toggleHilo) toggleHiLo();
  20. } else {
  21. setStartBet();
  22. $('#double_your_btc_bet_win').html('');
  23. var cmsg = {
  24. lose: $('#double_your_btc_bet_lose').html(),
  25. win: $('#double_your_btc_bet_win').html()
  26. };
  27. cmsg = JSON.stringify(cmsg);
  28. }
  29.  
  30. if (multiplier > bconfig.alertMultiplier) {
  31. if (window.confirm("You have already lost " + (Math.pow(2, (multiplier - 1)) - 1) + " and you are about to lose " + Math.pow(2, (multiplier - 1)) + ". Click 'cancel' to reset the bet amount to 1 or 'ok' to take the risk?" )) {
  32.  
  33. } else {
  34. $('#double_your_btc_min').click();
  35. multiplier = 1;
  36. }
  37.  
  38. $('#double_your_btc_bet_' + hilo + '_button').click();
  39. } else {
  40. if (parseFloat($('#balance').html()) < (parseFloat($('#double_your_btc_stake').val()) * 2) ||
  41. parseFloat($('#double_your_btc_stake').val()) > bconfig.maxBet) {
  42. $('#double_your_btc_min').click();
  43. multiplier = 1;
  44. }
  45.  
  46. $('#double_your_btc_bet_' + hilo + '_button').click();
  47. }
  48.  
  49.  
  50.  
  51. // setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 100));
  52. };
  53.  
  54. toggleHiLo = function() {
  55. if (hilo === 'hi') {
  56. hilo = 'lo';
  57. } else {
  58. hilo = 'hi';
  59. }
  60. };
  61.  
  62. setStartBet = function() {
  63. $('#double_your_btc_min').click();
  64. multiplier = 1;
  65. // if ((Math.random() * 10) > 5) {
  66.  
  67. // } else {
  68. // $('#double_your_btc_min').click();
  69. // $('#double_your_btc_2x').click();
  70. // multiplier = 2;
  71. // }
  72. }
  73.  
  74. currentMsg = '';
  75. bChange = function(next) {
  76. var cmsg = {
  77. lose: $('#double_your_btc_bet_lose').html(),
  78. win: $('#double_your_btc_bet_win').html()
  79. };
  80. cmsg = JSON.stringify(cmsg);
  81. if (currentMsg !== cmsg) {
  82. $('#balance_b').html($('#balance').html());
  83. $('#roundwin_b').html((parseFloat($('#balance').html()) - initialBalance).toFixed(8));
  84. $('#current_bet_b').html($('#double_your_btc_stake').val());
  85. $('#time_b').html((Math.round(((new Date().getTime()) - startTime) / 1000) / 60 / 60).toFixed(2) + ' h');
  86. currentMsg = cmsg;
  87. next();
  88. }
  89. setTimeout(function() {
  90. setTimeout(function() {
  91. bChange(next);
  92. }, bconfig.wait)
  93.  
  94. }, 50);
  95. };
  96. bChange(rollDice);
Add Comment
Please, Sign In to add comment