Script for Freebitco.in MULTYPLY


SUBMITTED BY: Dizorn

DATE: Feb. 26, 2016, 6:06 a.m.

FORMAT: Text only

SIZE: 2.7 kB

HITS: 8151

  1. google chrome, ctrl+shift+j Enter.
  2. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  3. stopPercentage = 0.001,
  4. maxWait = 777,
  5. stopped = false, // debugging
  6. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  7. var $loButton = $('#double_your_btc_bet_lo_button'),
  8. $hiButton = $('#double_your_btc_bet_hi_button');
  9. function multiply(){
  10. var current = $('#double_your_btc_stake').val();
  11. var multiply = (current * 2).toFixed(8);
  12. $('#double_your_btc_stake').val(multiply);
  13. }
  14. function getRandomWait(){
  15. var wait = Math.floor(Math.random() * maxWait ) + 100;
  16. console.log('Waiting for ' + wait + 'ms before next bet.');
  17. return wait ;
  18. }
  19. function startGame(){
  20. console.log('Game started!');
  21. reset();
  22. $loButton.trigger('click');
  23. }
  24. function stopGame(){
  25. console.log('Game will stop soon! Let me finish.');
  26. stopped = true;
  27. }
  28. function reset(){
  29. $('#double_your_btc_stake').val(startValue);
  30. }
  31. // quick and dirty hack if you have very little bitcoins like 0.00000001
  32. function deexponentize(number){
  33. return number * 10000000;
  34. }
  35. function iHaveEnoughMoni(){
  36. var balance = deexponentize(parseFloat($('#balance').text()));
  37. var current = deexponentize($('#double_your_btc_stake').val());
  38. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  39. }
  40. function stopBeforeRedirect(){
  41. var minutes = parseInt($('title').text());
  42. if( minutes < stopBefore )
  43. {
  44. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  45. stopGame();
  46. return true;
  47. }
  48. return false;
  49. }
  50. // Unbind old shit
  51. $('#double_your_btc_bet_lose').unbind();
  52. $('#double_your_btc_bet_win').unbind();
  53. // Loser
  54. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  55. if( $(event.currentTarget).is(':contains("lose")') )
  56. {
  57. console.log('You LOST! Multiplying your bet and betting again.');
  58. multiply();
  59. setTimeout(function(){
  60. $loButton.trigger('click');
  61. }, getRandomWait());
  62. //$loButton.trigger('click');
  63. }
  64. });
  65. // Winner
  66. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  67. if( $(event.currentTarget).is(':contains("win")') )
  68. {
  69. if( stopBeforeRedirect() )
  70. {
  71. return;
  72. }
  73. if( iHaveEnoughMoni() )
  74. {
  75. console.log('You WON! But don\'t be greedy. Restarting!');
  76. reset();
  77. if( stopped )
  78. {
  79. stopped = false;
  80. return false;
  81. }
  82. }
  83. else
  84. {
  85. console.log('You WON! Betting again');
  86. }
  87. setTimeout(function(){
  88. $loButton.trigger('click');
  89. }, getRandomWait());
  90. }
  91. });startGame()

comments powered by Disqus