K


SUBMITTED BY: fynamite

DATE: Aug. 13, 2017, 1:54 p.m.

FORMAT: Text only

SIZE: 9.5 kB

HITS: 676

  1. var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  2. stopPercentage = 0.001,
  3. maxWait = 777,
  4. stopped = false, // debugging
  5. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  6. var $loButton = $('#double_your_btc_bet_lo_button'),
  7. $hiButton = $('#double_your_btc_bet_hi_button');
  8. function multiply(){
  9. var current = $('#double_your_btc_stake').val();
  10. var multiply = (current * 2).toFixed(8);
  11. $('#double_your_btc_stake').val(multiply);
  12. }
  13. function getRandomWait(){
  14. var wait = Math.floor(Math.random() * maxWait ) + 100;
  15. console.log('Waiting for ' + wait + 'ms before next bet.');
  16. return wait ;
  17. }
  18. function startGame(){
  19. console.log('Game started!');
  20. reset();
  21. $loButton.trigger('click');
  22. }
  23. function stopGame(){
  24. console.log('Game will stop soon! Let me finish.');
  25. stopped = true;
  26. }
  27. function reset(){
  28. $('#double_your_btc_stake').val(startValue);
  29. }
  30. function deexponentize(number){
  31. return number * 10000000;
  32. }
  33. function iHaveEnoughMoni(){
  34. var balance = deexponentize(parseFloat($('#balance').text()));
  35. var current = deexponentize($('#double_your_btc_stake').val());
  36. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  37. }
  38. function stopBeforeRedirect(){
  39. var minutes = parseInt($('title').text());
  40. if( minutes < stopBefore )
  41. {
  42. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  43. stopGame();
  44. return true;
  45. }
  46. return false;
  47. }
  48. $('#double_your_btc_bet_lose').unbind();
  49. $('#double_your_btc_bet_win').unbind();
  50. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  51. if( $(event.currentTarget).is(':contains("lose")') )
  52. {
  53. console.log('You LOST! Multiplying your bet and betting again.');
  54. multiply();
  55. setTimeout(function(){
  56. $loButton.trigger('click');
  57. }, getRandomWait());
  58. }
  59. });
  60. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  61. if( $(event.currentTarget).is(':contains("win")') )
  62. {
  63. if( stopBeforeRedirect() )
  64. {
  65. return;
  66. }
  67. if( iHaveEnoughMoni() )
  68. {
  69. console.log('You WON! But don\'t be greedy. Restarting!');
  70. reset();
  71. if( stopped )
  72. {
  73. stopped = false;
  74. return false;
  75. }
  76. }
  77. else
  78. {
  79. console.log('You WON! Betting again');
  80. }
  81. setTimeout(function(){
  82. $loButton.trigger('click');
  83. }, getRandomWait());
  84. }
  85. });startGame()var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  86. stopPercentage = 0.001,
  87. maxWait = 777,
  88. stopped = false, // debugging
  89. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  90. var $loButton = $('#double_your_btc_bet_lo_button'),
  91. $hiButton = $('#double_your_btc_bet_hi_button');
  92. function multiply(){
  93. var current = $('#double_your_btc_stake').val();
  94. var multiply = (current * 2).toFixed(8);
  95. $('#double_your_btc_stake').val(multiply);
  96. }
  97. function getRandomWait(){
  98. var wait = Math.floor(Math.random() * maxWait ) + 100;
  99. console.log('Waiting for ' + wait + 'ms before next bet.');
  100. return wait ;
  101. }
  102. function startGame(){
  103. console.log('Game started!');
  104. reset();
  105. $loButton.trigger('click');
  106. }
  107. function stopGame(){
  108. console.log('Game will stop soon! Let me finish.');
  109. stopped = true;
  110. }
  111. function reset(){
  112. $('#double_your_btc_stake').val(startValue);
  113. }
  114. function deexponentize(number){
  115. return number * 10000000;
  116. }
  117. function iHaveEnoughMoni(){
  118. var balance = deexponentize(parseFloat($('#balance').text()));
  119. var current = deexponentize($('#double_your_btc_stake').val());
  120. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  121. }
  122. function stopBeforeRedirect(){
  123. var minutes = parseInt($('title').text());
  124. if( minutes < stopBefore )
  125. {
  126. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  127. stopGame();
  128. return true;
  129. }
  130. return false;
  131. }
  132. $('#double_your_btc_bet_lose').unbind();
  133. $('#double_your_btc_bet_win').unbind();
  134. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  135. if( $(event.currentTarget).is(':contains("lose")') )
  136. {
  137. console.log('You LOST! Multiplying your bet and betting again.');
  138. multiply();
  139. setTimeout(function(){
  140. $loButton.trigger('click');
  141. }, getRandomWait());
  142. }
  143. });
  144. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  145. if( $(event.currentTarget).is(':contains("win")') )
  146. {
  147. if( stopBeforeRedirect() )
  148. {
  149. return;
  150. }
  151. if( iHaveEnoughMoni() )
  152. {
  153. console.log('You WON! But don\'t be greedy. Restarting!');
  154. reset();
  155. if( stopped )
  156. {
  157. stopped = false;
  158. return false;
  159. }
  160. }
  161. else
  162. {
  163. console.log('You WON! Betting again');
  164. }
  165. setTimeout(function(){
  166. $loButton.trigger('click');
  167. }, getRandomWait());
  168. }
  169. });startGame()var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  170. stopPercentage = 0.001,
  171. maxWait = 777,
  172. stopped = false, // debugging
  173. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  174. var $loButton = $('#double_your_btc_bet_lo_button'),
  175. $hiButton = $('#double_your_btc_bet_hi_button');
  176. function multiply(){
  177. var current = $('#double_your_btc_stake').val();
  178. var multiply = (current * 2).toFixed(8);
  179. $('#double_your_btc_stake').val(multiply);
  180. }
  181. function getRandomWait(){
  182. var wait = Math.floor(Math.random() * maxWait ) + 100;
  183. console.log('Waiting for ' + wait + 'ms before next bet.');
  184. return wait ;
  185. }
  186. function startGame(){
  187. console.log('Game started!');
  188. reset();
  189. $loButton.trigger('click');
  190. }
  191. function stopGame(){
  192. console.log('Game will stop soon! Let me finish.');
  193. stopped = true;
  194. }
  195. function reset(){
  196. $('#double_your_btc_stake').val(startValue);
  197. }
  198. function deexponentize(number){
  199. return number * 10000000;
  200. }
  201. function iHaveEnoughMoni(){
  202. var balance = deexponentize(parseFloat($('#balance').text()));
  203. var current = deexponentize($('#double_your_btc_stake').val());
  204. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  205. }
  206. function stopBeforeRedirect(){
  207. var minutes = parseInt($('title').text());
  208. if( minutes < stopBefore )
  209. {
  210. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  211. stopGame();
  212. return true;
  213. }
  214. return false;
  215. }
  216. $('#double_your_btc_bet_lose').unbind();
  217. $('#double_your_btc_bet_win').unbind();
  218. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  219. if( $(event.currentTarget).is(':contains("lose")') )
  220. {
  221. console.log('You LOST! Multiplying your bet and betting again.');
  222. multiply();
  223. setTimeout(function(){
  224. $loButton.trigger('click');
  225. }, getRandomWait());
  226. }
  227. });
  228. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  229. if( $(event.currentTarget).is(':contains("win")') )
  230. {
  231. if( stopBeforeRedirect() )
  232. {
  233. return;
  234. }
  235. if( iHaveEnoughMoni() )
  236. {
  237. console.log('You WON! But don\'t be greedy. Restarting!');
  238. reset();
  239. if( stopped )
  240. {
  241. stopped = false;
  242. return false;
  243. }
  244. }
  245. else
  246. {
  247. console.log('You WON! Betting again');
  248. }
  249. setTimeout(function(){
  250. $loButton.trigger('click');
  251. }, getRandomWait());
  252. }
  253. });startGame()var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  254. stopPercentage = 0.001,
  255. maxWait = 777,
  256. stopped = false, // debugging
  257. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  258. var $loButton = $('#double_your_btc_bet_lo_button'),
  259. $hiButton = $('#double_your_btc_bet_hi_button');
  260. function multiply(){
  261. var current = $('#double_your_btc_stake').val();
  262. var multiply = (current * 2).toFixed(8);
  263. $('#double_your_btc_stake').val(multiply);
  264. }
  265. function getRandomWait(){
  266. var wait = Math.floor(Math.random() * maxWait ) + 100;
  267. console.log('Waiting for ' + wait + 'ms before next bet.');
  268. return wait ;
  269. }
  270. function startGame(){
  271. console.log('Game started!');
  272. reset();
  273. $loButton.trigger('click');
  274. }
  275. function stopGame(){
  276. console.log('Game will stop soon! Let me finish.');
  277. stopped = true;
  278. }
  279. function reset(){
  280. $('#double_your_btc_stake').val(startValue);
  281. }
  282. function deexponentize(number){
  283. return number * 10000000;
  284. }
  285. function iHaveEnoughMoni(){
  286. var balance = deexponentize(parseFloat($('#balance').text()));
  287. var current = deexponentize($('#double_your_btc_stake').val());
  288. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  289. }
  290. function stopBeforeRedirect(){
  291. var minutes = parseInt($('title').text());
  292. if( minutes < stopBefore )
  293. {
  294. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  295. stopGame();
  296. return true;
  297. }
  298. return false;
  299. }
  300. $('#double_your_btc_bet_lose').unbind();
  301. $('#double_your_btc_bet_win').unbind();
  302. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  303. if( $(event.currentTarget).is(':contains("lose")') )
  304. {
  305. console.log('You LOST! Multiplying your bet and betting again.');
  306. multiply();
  307. setTimeout(function(){
  308. $loButton.trigger('click');
  309. }, getRandomWait());
  310. }
  311. });
  312. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  313. if( $(event.currentTarget).is(':contains("win")') )
  314. {
  315. if( stopBeforeRedirect() )
  316. {
  317. return;
  318. }
  319. if( iHaveEnoughMoni() )
  320. {
  321. console.log('You WON! But don\'t be greedy. Restarting!');
  322. reset();
  323. if( stopped )
  324. {
  325. stopped = false;
  326. return false;
  327. }
  328. }
  329. else
  330. {
  331. console.log('You WON! Betting again');
  332. }
  333. setTimeout(function(){
  334. $loButton.trigger('click');
  335. }, getRandomWait());
  336. }
  337. });startGame()

comments powered by Disqus