freebitco.in script working


SUBMITTED BY: r0fl

DATE: Sept. 1, 2016, 11:16 p.m.

UPDATED: Sept. 1, 2016, 11:16 p.m.

FORMAT: Text only

SIZE: 7.1 kB

HITS: 5306

  1. //Update August 2016 : I am working on a GUI and Auto increase betting system
  2. //COMMAND//
  3. //changeBet() ex: changeBet('0.00000005');
  4. console.clear();
  5. var startbalance = 0;
  6. var stopAt= '?';
  7. var round = 0;
  8. var gameLost=0;
  9. var gameWin=0;
  10. var higherbet=0;
  11. startbalance = $('#balance').text();
  12. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  13. stopPercentage = 0.001, // In %. I wouldn't recommend going past 0.08
  14. maxWait = 500, // In milliseconds
  15. stopped = false,
  16. stopBefore = 3; // In minutes
  17. var oldbet= 0.00000001;
  18. document.getElementById("advertise_link_li").innerHTML = '<a href="#" onclick="startGame()" class="advertise_link">START BOT</a>';
  19. var $loButton = $('#double_your_btc_bet_lo_button'),
  20. $hiButton = $('#double_your_btc_bet_hi_button');
  21. function higherBet(){
  22. console.log('Highest bet: '+higherbet);
  23. }
  24. function changeBet(bet){
  25. startValue=bet;
  26. }
  27. function realtime(time) {
  28. var sec_num =parseInt(time, 10) ; // don't forget the second param
  29. var hours = Math.floor(sec_num / 3600);
  30. var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
  31. var seconds = sec_num - (hours * 3600) - (minutes * 60);
  32. if (hours!=0) {hours = hours+' Hours ';} else{hours = '';}
  33. if (minutes!=0) {minutes = minutes+' Minutes ';}
  34. else{minutes = '';}
  35. if (seconds < 10) {seconds = seconds;}
  36. var time = 'Playing time = '+hours+minutes+seconds+' Secondes';
  37. return time;
  38. }
  39. function roundnumb(){
  40. console.clear();
  41. if( round == stopAt)
  42. {
  43. stopGame()
  44. }
  45. else
  46. {
  47. round = round + 1;
  48. console.log('Round #' + round + ' / ' + stopAt);
  49. }
  50. var newbalance= $('#balance').text()
  51. var profit = (Number(newbalance) - Number(startbalance)).toFixed(8) ;
  52. console.log('Profit:' + profit + ' Bitcoin')
  53. }
  54. //Number of round. Type stopatRound(NUMBER_OF_ROUND) to change
  55. //function stopatRound(limitRound){
  56. //stopAt=limitRound;
  57. //}
  58. function multiply(){
  59. var current = $('#double_your_btc_stake').val();
  60. var multiply = (current * 2).toFixed(8);
  61. $('#double_your_btc_stake').val(multiply);
  62. console.log('Bet = ' + multiply);
  63. if( higherbet < multiply ){ higherbet=multiply; }
  64. }
  65. function getRandomWait(){
  66. var wait = Math.floor(Math.random() * maxWait ) + 100; //(Math.floor(Math.random() * 800) + 300) ; // avant 100
  67. console.log('Waiting for ' + wait + 'ms before next bet.');
  68. return wait ;
  69. }
  70. function startGame(limit){
  71. document.getElementById("advertise_link_li").innerHTML = '<a href="#" onclick="stopGame()" class="advertise_link">STOP BOT</a>';
  72. starttime=(new Date()).getTime();
  73. startValue = prompt("Number of satoshi you want to bet?", '0.00000001');
  74. oldbet=startValue;
  75. round = 0;
  76. gameLost=0;
  77. gameWin=0;
  78. console.log('Game started!');
  79. reset();
  80. $loButton.trigger('click');
  81. if(limit !== null) {
  82. stopAt=limit;
  83. }
  84. else
  85. {
  86. stopAt=-1;
  87. }
  88. }
  89. function stopGame(){
  90. document.getElementById("advertise_link_li").innerHTML = '<a href="#" onclick="startGame()" class="advertise_link">START BOT</a>';
  91. console.log('Game will stop soon! Let me finish.');
  92. stopped = true;
  93. startValue=oldbet;
  94. }
  95. function reset(){
  96. if( round % 100 === 0 && round !=0)
  97. {
  98. startValue=(startValue * 1.000).toFixed(8); //New bet after 100 round
  99. console.log('Round ' + round + ': bet change for ' + startValue);
  100. }
  101. $('#double_your_btc_stake').val(startValue);
  102. }
  103. // quick and dirty hack if you have very little bitcoins like 0.0000001
  104. function deexponentize(number){
  105. return number * 1000000;
  106. }
  107. function iHaveEnoughMoni(){
  108. var balance = deexponentize(parseFloat($('#balance').text()));
  109. var current = deexponentize($('#double_your_btc_stake').val());
  110. return ((balance*2)/100) * (current*2) > stopPercentage/100;
  111. }
  112. function stopBeforeRedirect(){
  113. var minutes = parseInt($('title').text());
  114. if( minutes < stopBefore )
  115. {
  116. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  117. stopGame();
  118. return true;
  119. }
  120. return false;
  121. }
  122. // Unbind old shit
  123. $('#double_your_btc_bet_lose').unbind();
  124. $('#double_your_btc_bet_win').unbind();
  125. // Loser
  126. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  127. if( $(event.currentTarget).is(':contains("lose")') )
  128. {
  129. gameLost = gameLost + 1;
  130. roundnumb();
  131. console.log('%cWin: ' + gameWin + ' Lost: ' + gameLost, 'color: #00CC00');
  132. endtime=(new Date()).getTime();
  133. var time=Math.floor((endtime-starttime )/1000);
  134. higherBet();
  135. console.log(realtime(time));
  136. console.log('You LOST!');
  137. multiply();
  138. setTimeout(function(){
  139. $loButton.trigger('click');
  140. }, getRandomWait());
  141. //$loButton.trigger('click');
  142. }
  143. }
  144. );
  145. // Winner
  146. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  147. if( $(event.currentTarget).is(':contains("win")') )
  148. {
  149. gameWin = gameWin + 1;
  150. roundnumb();
  151. console.log('%cWin: ' + gameWin + ' Lost: ' + gameLost, 'color: #FF0000');
  152. endtime=(new Date()).getTime();
  153. var time=Math.floor((endtime-starttime )/1000);
  154. console.log(realtime(time));
  155. higherBet();
  156. if( stopBeforeRedirect() )
  157. {
  158. return;
  159. }
  160. if( iHaveEnoughMoni() )
  161. {
  162. console.log('You WON!');
  163. reset();
  164. if( stopped )
  165. {
  166. stopped = false;
  167. return false;
  168. }
  169. }
  170. else
  171. {
  172. console.log('You WON! ');
  173. }
  174. setTimeout(function(){
  175. $loButton.trigger('click');
  176. }, getRandomWait());
  177. }
  178. }
  179. );

comments powered by Disqus