freebitcoin.in script


SUBMITTED BY: DemoHam

DATE: Feb. 3, 2017, 10:47 p.m.

FORMAT: Text only

SIZE: 4.0 kB

HITS: 8158

  1. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  2. stopPercentage = 0.001,
  3. maxWait = 33,
  4. stopped = false, // debugging
  5. stopBefore = 1, // In minutes for timer before stopping redirect on webpage
  6. LSC= 0, max_loss= 16, bet_L = 1, bet_count = 1, max_bet= 4500,
  7. won = 0;
  8. var betlabel = ["Lo", "Hi"];
  9. var $loButton = $('#double_your_btc_bet_lo_button'),
  10. $hiButton = $('#double_your_btc_bet_hi_button');
  11. function multiply(){
  12. var current = $('#double_your_btc_stake').val();
  13. var multiply = (current * 2).toFixed(8);
  14. $('#double_your_btc_stake').val(multiply);
  15. //$('#double_your_btc_stake').val(startValue);
  16. }
  17. function getRandomWait(w){
  18. var wait = Math.floor(Math.random() * maxWait ) + 100;
  19. //console.log('Waiting for ' + wait + 'ms before next bet.');
  20. return wait ;
  21. }
  22. function startGame(){
  23. console.log('Game started!');
  24. reset();
  25. click_hilo(bet_L);
  26. }
  27. function reset(){
  28. LSC= 0;
  29. $('#double_your_btc_stake').val(startValue);
  30. }
  31. function stopGame(){
  32. console.log('Game will stop soon! Let me finish.');
  33. stopped = true;
  34. }
  35. // quick and dirty hack if you have very little bitcoins like 0.00000001
  36. function deexponentize(number){
  37. return number * 10000000;
  38. }
  39. function iHaveEnoughMoni(){
  40. var balance = deexponentize(parseFloat($('#balance').text()));
  41. var current = deexponentize($('#double_your_btc_stake').val());
  42. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  43. }
  44. function stopBeforeRedirect(){
  45. var minutes = parseInt($('title').text());
  46. if( minutes < stopBefore )
  47. {
  48. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing. Won: ' + won);
  49. stopGame();
  50. return true;
  51. }
  52. return false;
  53. }
  54. function switch_hilo(){
  55. if(bet_L)
  56. {
  57. bet_L = 0;
  58. }else{
  59. bet_L = 1;
  60. }
  61. }
  62. function click_hilo()
  63. {
  64. if(bet_L)
  65. {
  66. $hiButton.trigger('click');
  67. }else{
  68. $loButton.trigger('click');
  69. }
  70. }
  71. // Unbind old shit
  72. $('#double_your_btc_bet_lose').unbind();
  73. $('#double_your_btc_bet_win').unbind();
  74. // Loser
  75. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  76. if( $(event.currentTarget).is(':contains("lose")') )
  77. {
  78. //console.log('You LOST! Multiplying your bet and betting again.');
  79. LSC++;
  80. console.log(bet_count + '. Clicked '+ betlabel[bet_L] +', LOST! - ' + LSC);
  81. bet_L = 1; // get again HI
  82. /*
  83. if(LSC== 3 || LSC== 6 || LSC== 9 || LSC==12 || LSC==15 )
  84. {
  85. switch_hilo();
  86. }else{
  87. bet_L = 1;
  88. }
  89. */
  90. if(LSC>= max_loss)
  91. {
  92. console.log('Forced Stop! Restarting!');
  93. reset();
  94. if( stopped )
  95. {
  96. stopped = false;
  97. return false;
  98. }
  99. }else{
  100. multiply();
  101. setTimeout(function(){
  102. click_hilo(bet_L);
  103. }, getRandomWait(99));
  104. }
  105. bet_count++;
  106. }
  107. });
  108. // Winner
  109. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  110. if( $(event.currentTarget).is(':contains("win")') )
  111. {
  112. won++;
  113. if( stopBeforeRedirect() )
  114. {
  115. return;
  116. }
  117. if(bet_count > max_bet)
  118. {
  119. console.log('Won: '+ won +', Stop now or risk losing Everything!');
  120. reset();
  121. if( stopped )
  122. {
  123. stopped = false;
  124. return false;
  125. }
  126. }else{
  127. if( iHaveEnoughMoni() )
  128. {
  129. console.log(bet_count + '. Clicked '+ betlabel[bet_L] +','+ won +' WON!');
  130. //console.log('You WON! But don\'t be greedy. Restarting!');
  131. reset();
  132. if( stopped )
  133. {
  134. stopped = false;
  135. return false;
  136. }
  137. }
  138. else
  139. {
  140. //console.log('You WON! Betting again');
  141. console.log(bet_count + '. '+ won +' WON!');
  142. }
  143. setTimeout(function(){
  144. //bet_L = 1;
  145. //if(bet_L == 0){
  146. bet_L = 1;
  147. //}
  148. click_hilo();
  149. }, getRandomWait(0));
  150. }
  151. bet_count++;
  152. }
  153. });startGame()

comments powered by Disqus