FreeBitco.in Script


SUBMITTED BY: MD47

DATE: June 27, 2016, 8 a.m.

UPDATED: Oct. 5, 2017, 12:38 p.m.

FORMAT: Text only

SIZE: 9.3 kB

HITS: 20634

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

comments powered by Disqus