Bitcoin bot - http://freebitco.in


SUBMITTED BY: Guest

DATE: May 18, 2014, 12:36 p.m.

FORMAT: Text only

SIZE: 3.7 kB

HITS: 983

  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. bconfig = {
  3. maxBet: 0.00001024,
  4. wait: 700,
  5. toggleHilo: false,
  6. alertMultiplier: 5
  7. };
  8. initialBalance = parseFloat($('#balance').html());
  9. hilo = 'hi';
  10. multiplier = 1;
  11. playItSafe = true;
  12. startTime = new Date().getTime();
  13. rollDice = function () {
  14. if ($('#double_your_btc_bet_lose').html() !== '') {
  15. $('#double_your_btc_2x').click();
  16. multiplier++;
  17. if (bconfig.toggleHilo) toggleHiLo();
  18. } else {
  19. setStartBet();
  20. $('#double_your_btc_bet_win').html('');
  21. var cmsg = {
  22. lose: $('#double_your_btc_bet_lose').html(),
  23. win: $('#double_your_btc_bet_win').html()
  24. };
  25. cmsg = JSON.stringify(cmsg);
  26. }
  27. if (multiplier > bconfig.alertMultiplier) {
  28. if (playItSafe) {
  29. $('#double_your_btc_min').click();
  30. multiplier = 1;
  31. } else {
  32. 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?")) {
  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. $('#double_your_btc_bet_' + hilo + '_button').click();
  46. }
  47. // setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 100));
  48. };
  49. toggleHiLo = function () {
  50. if (hilo === 'hi') {
  51. hilo = 'lo';
  52. } else {
  53. hilo = 'hi';
  54. }
  55. };
  56. setStartBet = function () {
  57. $('#double_your_btc_min').click();
  58. multiplier = 1;
  59. // if ((Math.random() * 10) > 5) {
  60. // } else {
  61. // $('#double_your_btc_min').click();
  62. // $('#double_your_btc_2x').click();
  63. // multiplier = 2;
  64. // }
  65. }
  66. currentMsg = '';
  67. bChange = function (next) {
  68. var cmsg = {
  69. lose: $('#double_your_btc_bet_lose').html(),
  70. win: $('#double_your_btc_bet_win').html()
  71. };
  72. cmsg = JSON.stringify(cmsg);
  73. if (currentMsg !== cmsg) {
  74. $('#balance_b').html($('#balance').html());
  75. $('#roundwin_b').html((parseFloat($('#balance').html()) - initialBalance).toFixed(8));
  76. $('#current_bet_b').html($('#double_your_btc_stake').val());
  77. $('#time_b').html((Math.round(((new Date().getTime()) - startTime) / 1000) / 60 / 60).toFixed(2) + ' h');
  78. currentMsg = cmsg;
  79. next();
  80. }
  81. setTimeout(function () {
  82. setTimeout(function () {
  83. bChange(next);
  84. }, bconfig.wait)
  85. }, 50);
  86. };
  87. bChange(rollDice);

comments powered by Disqus