https://freebitco.in/?r=5475803


SUBMITTED BY: corpionS

DATE: July 2, 2017, 6:28 p.m.

UPDATED: July 2, 2017, 6:28 p.m.

FORMAT: Text only

SIZE: 10.3 kB

HITS: 1689

  1. //Register at https://freebitco.in/?r=5475803 and test the bot //
  2. // version 4.1
  3. // If you want to futher support it, feel free to test it on new created accounts via my ref https://freebitco.in/?r=5475803 so i can get couple of satoshi and futher test/edit/update it :)
  4. console.clear();
  5. var begingbal = $('#balance').text();
  6. var startbalance = 0;
  7. var autorounds = 200; // play 500 rounds only
  8. var handbrake = 0.00000008; // pause when stake reaches 1024 Satoshis
  9. //var stopAt= '?';
  10. var round = 0;
  11. var gameLost=0;
  12. var gameWin=0;
  13. var higherbet=0;
  14. startbalance = $('#balance').text();
  15. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  16. stopPercentage = 0.004, // In %. I wouldn't recommend going past 0.08
  17. maxWait = 1000, // In milliseconds
  18. stopped = false,
  19. stopBefore = 1; // In minutes default 3
  20. var oldbet= 0.00000001;
  21. var rewardpoints = document.getElementsByClassName("reward_table_box br_0_0_5_5 user_reward_points font_bold")[0].innerHTML;
  22. s = document.getElementById("user_lottery_tickets").innerHTML;
  23. s = s.replace(/(^\s*)|(\s*$)/gi,"");
  24. s = s.replace(/[ ]{2,}/gi," ");
  25. s = s.replace(/\n /,"\n");
  26. document.getElementById("user_lottery_tickets").innerHTML = s;
  27. document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="startGame()" class="free_play_link">START BOT</a>';
  28. var $loButton = $('#double_your_btc_bet_lo_button'),
  29. $hiButton = $('#double_your_btc_bet_hi_button');
  30. function higherBet(){
  31. console.log('Highest bet: '+higherbet);
  32. }
  33. function beginingBal(){
  34. console.log('BTC Starting Balance: '+begingbal);
  35. }
  36. function rewardsBal(){
  37. console.log('%cReward Points Balance: ' +'%c'+rewardpoints+' points', 'color: #00000;', 'color: #ff9a36; font-weight: bold;');
  38. }
  39. function lotteryBal(){
  40. console.log('%cLottery Tickets Balance: ' +'%c'+ s+' tickets', 'color: #00000;', 'color: #005bb6; font-weight: bold;');
  41. }
  42. function changeBet(bet){
  43. startValue=bet;
  44. }
  45. function timeRemaining(){
  46. timeR = $('title').text();
  47. replText = timeR.replace("- FreeBitco.in - Win free bitcoins every hour!", "");
  48. console.log('%cTime until free roll: ' +'%c'+replText, 'color: #00000; font-weight:bold;', 'color: #007a5c;font-weight:bold;');
  49. }
  50. function realtime(time) {
  51. var sec_num =parseInt(time, 10) ; // don't forget the second param
  52. var hours = Math.floor(sec_num / 3600);
  53. var minutes = Math.floor((sec_num - (hours * 3600)) / 60);
  54. var seconds = sec_num - (hours * 3600) - (minutes * 60);
  55. if (hours!=0) {hours = hours+' Hours ';} else{hours = '';}
  56. if (minutes!=0) {minutes = minutes+' Minutes ';}
  57. else{minutes = '';}
  58. if (seconds < 10) {seconds = seconds;}
  59. var time = 'Time played = '+hours+minutes+seconds+' Seconds';
  60. return time;
  61. }
  62. function roundnumb(){
  63. console.clear();
  64. if( round == autorounds)
  65. {
  66. stopGame()
  67. }
  68. else
  69. {
  70. round = round + 1;
  71. timeRemaining();
  72. beginingBal();
  73. rewardsBal();
  74. lotteryBal();
  75. console.log('Round #' + round + ' / ' + autorounds);
  76. }
  77. var newbalance= $('#balance').text()
  78. var profit = (Number(newbalance) - Number(startbalance)).toFixed(8) ;
  79. console.log('Profit:' + profit + ' Bitcoin')
  80. }
  81. function multiply(){
  82. var current = $('#double_your_btc_stake').val();
  83. var multiply = (current * 2).toFixed(8);
  84. $('#double_your_btc_stake').val(multiply);
  85. console.log('Bet = ' + multiply);
  86. if( higherbet < multiply ){ higherbet=multiply; }
  87. }
  88. function getRandomWait(){
  89. var wait = Math.floor(Math.random() * maxWait ) + 100; //(Math.floor(Math.random() * 800) + 300) ; // avant 100
  90. console.log('Waiting for ' + wait + 'ms before next bet.');
  91. return wait ;
  92. }
  93. function startGame(limit){
  94. document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="stopGame()" class="free_play_link">STOP BOT</a>';
  95. starttime=(new Date()).getTime();
  96. startValue = prompt("Number of satoshi you want to bet?", '0.00000001');
  97. MaximumValue = prompt("Auto Restart BOT when bet reaches? ", '0.00000008');
  98. oldbet=startValue;
  99. handbrake=MaximumValue;
  100. round = 0;
  101. gameLost=0;
  102. gameWin=0;
  103. console.log('Game started!');
  104. reset();
  105. $loButton.trigger('click');
  106. if(limit !== null) {
  107. autorounds=limit;
  108. }
  109. else
  110. {
  111. autorounds=-1;
  112. }
  113. }
  114. function startGame2(limit){
  115. document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="stopGame()" class="free_play_link">STOP BOT</a>';
  116. starttime=(new Date()).getTime();
  117. stopped = false;
  118. oldbet=startValue;
  119. handbrake=MaximumValue;
  120. round = 0;
  121. gameLost=0;
  122. gameWin=0;
  123. console.log('Game started!');
  124. reset();
  125. $loButton.trigger('click');
  126. if(limit !== null) {
  127. autorounds=limit;
  128. }
  129. else
  130. {
  131. autorounds=-1;
  132. }
  133. }
  134. function stopGame(){
  135. document.getElementById("free_play_link_li").innerHTML = '<a href="#" onclick="startGame()" class="free_play_link">START BOT</a>';
  136. console.log('Game will stop soon! Let me finish.');
  137. stopped = true;
  138. startValue=oldbet;
  139. handbrake=MaximumValue;
  140. }
  141. var sound = document.createElement('audio');
  142. sound.id = 'handbrakealert';
  143. sound.src = 'https://www.mediacollege.com/downloads/sound-effects/star-trek/tos/tos-computer-05.wav';
  144. sound.preload = 'auto';
  145. document.getElementsByTagName('body')[0].appendChild(sound);
  146. function reset(){
  147. if( round % 100 === 0 && round !=0)
  148. {
  149. startValue=(startValue * 1.000).toFixed(8); //New bet after 100 round
  150. console.log('Round ' + round + ': bet change for ' + startValue);
  151. }
  152. $('#double_your_btc_stake').val(startValue);
  153. }
  154. // quick and dirty hack if you have very little bitcoins like 0.0000001
  155. function deexponentize(number){
  156. return number * 1000000;
  157. }
  158. function iHaveEnoughMoni(){
  159. var balance = deexponentize(parseFloat($('#balance').text()));
  160. var current = deexponentize($('#double_your_btc_stake').val());
  161. return ((balance *2)/ 100) * (current*2) > stopPercentage/100;
  162. }
  163. function stopBeforeRedirect(){
  164. var minutes = parseInt($('title').text());
  165. if( minutes < stopBefore )
  166. {
  167. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  168. stopGame();
  169. return true;
  170. }
  171. return false;
  172. }
  173. function stopMaxStake(){
  174. var maxstake1 = $('#double_your_btc_stake').val();
  175. if( maxstake1 == handbrake )
  176. {
  177. stopped = true;
  178. document.getElementById('handbrakealert').play();
  179. console.log('Handbrake triggered! Please Wait');
  180. var counter = 5;
  181. var resBOTCountdown = setInterval(function(){
  182. console.log('Highest Stake at '+ handbrake +' reached');
  183. console.log(counter);
  184. counter--
  185. if (counter === -1) {
  186. clearInterval(resBOTCountdown);
  187. console.clear();
  188. console.log("Restarting BOT");
  189. console.log("Wait 5 more seconds so it wont double start");
  190. }
  191. }, 1000);
  192. setTimeout(startGame2, 6000);
  193. return true;
  194. }
  195. return false;
  196. }
  197. // Unbind old shit
  198. $('#double_your_btc_bet_lose').unbind();
  199. $('#double_your_btc_bet_win').unbind();
  200. // Loser
  201. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  202. if( $(event.currentTarget).is(':contains("lose")') )
  203. {
  204. gameLost = gameLost + 1;
  205. roundnumb();
  206. console.log('%cWin: ' + gameWin + ' %cLost: ' + gameLost, 'color: #007a5c', 'color: #FF0000');
  207. endtime=(new Date()).getTime();
  208. var time=Math.floor((endtime-starttime )/1000);
  209. if( stopBeforeRedirect() )
  210. {
  211. return;
  212. }
  213. if( stopMaxStake() )
  214. {
  215. return;
  216. }
  217. else
  218. higherBet();
  219. console.log(realtime(time));
  220. console.log('You LOST!');
  221. multiply();
  222. setTimeout(function(){
  223. $loButton.trigger('click');
  224. }, getRandomWait());
  225. //$loButton.trigger('click');
  226. }
  227. }
  228. );
  229. // Winner
  230. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  231. if( $(event.currentTarget).is(':contains("win")') )
  232. {
  233. gameWin = gameWin + 1;
  234. roundnumb();
  235. console.log('%cWin: ' + gameWin + ' %cLost: ' + gameLost, 'color: #007a5c', 'color: #FF0000');
  236. endtime=(new Date()).getTime();
  237. var time=Math.floor((endtime-starttime )/1000);
  238. console.log(realtime(time));
  239. higherBet();
  240. if( iHaveEnoughMoni() )
  241. {
  242. console.log('You WON!');
  243. reset();
  244. if( stopped )
  245. {
  246. stopped = false;
  247. return false;
  248. }
  249. }
  250. else
  251. {
  252. console.log('You WON! ');
  253. }
  254. setTimeout(function(){
  255. $loButton.trigger('click');
  256. }, getRandomWait());
  257. }
  258. }
  259. );// JavaScript Document

comments powered by Disqus