brolo script


SUBMITTED BY: savvas919

DATE: July 30, 2016, 11:50 p.m.

FORMAT: Text only

SIZE: 52.3 kB

HITS: 1033

  1. var startValue = '0.00000020', // 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 = 0; // 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.00000020', // 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 = 0; // 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.00000020', // 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 = 0; // 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.00000020', // 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 = 0; // 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()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  338. stopPercentage = 0.001,
  339. maxWait = 777,
  340. stopped = false, // debugging
  341. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  342. var $loButton = $('#double_your_btc_bet_lo_button'),
  343. $hiButton = $('#double_your_btc_bet_hi_button');
  344. function multiply(){
  345. var current = $('#double_your_btc_stake').val();
  346. var multiply = (current * 2).toFixed(8);
  347. $('#double_your_btc_stake').val(multiply);
  348. }
  349. function getRandomWait(){
  350. var wait = Math.floor(Math.random() * maxWait ) + 100;
  351. console.log('Waiting for ' + wait + 'ms before next bet.');
  352. return wait ;
  353. }
  354. function startGame(){
  355. console.log('Game started!');
  356. reset();
  357. $loButton.trigger('click');
  358. }
  359. function stopGame(){
  360. console.log('Game will stop soon! Let me finish.');
  361. stopped = true;
  362. }
  363. function reset(){
  364. $('#double_your_btc_stake').val(startValue);
  365. }
  366. function deexponentize(number){
  367. return number * 10000000;
  368. }
  369. function iHaveEnoughMoni(){
  370. var balance = deexponentize(parseFloat($('#balance').text()));
  371. var current = deexponentize($('#double_your_btc_stake').val());
  372. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  373. }
  374. function stopBeforeRedirect(){
  375. var minutes = parseInt($('title').text());
  376. if( minutes < stopBefore )
  377. {
  378. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  379. stopGame();
  380. return true;
  381. }
  382. return false;
  383. }
  384. $('#double_your_btc_bet_lose').unbind();
  385. $('#double_your_btc_bet_win').unbind();
  386. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  387. if( $(event.currentTarget).is(':contains("lose")') )
  388. {
  389. console.log('You LOST! Multiplying your bet and betting again.');
  390. multiply();
  391. setTimeout(function(){
  392. $loButton.trigger('click');
  393. }, getRandomWait());
  394. }
  395. });
  396. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  397. if( $(event.currentTarget).is(':contains("win")') )
  398. {
  399. if( stopBeforeRedirect() )
  400. {
  401. return;
  402. }
  403. if( iHaveEnoughMoni() )
  404. {
  405. console.log('You WON! But don\'t be greedy. Restarting!');
  406. reset();
  407. if( stopped )
  408. {
  409. stopped = false;
  410. return false;
  411. }
  412. }
  413. else
  414. {
  415. console.log('You WON! Betting again');
  416. }
  417. setTimeout(function(){
  418. $loButton.trigger('click');
  419. }, getRandomWait());
  420. }
  421. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  422. stopPercentage = 0.001,
  423. maxWait = 777,
  424. stopped = false, // debugging
  425. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  426. var $loButton = $('#double_your_btc_bet_lo_button'),
  427. $hiButton = $('#double_your_btc_bet_hi_button');
  428. function multiply(){
  429. var current = $('#double_your_btc_stake').val();
  430. var multiply = (current * 2).toFixed(8);
  431. $('#double_your_btc_stake').val(multiply);
  432. }
  433. function getRandomWait(){
  434. var wait = Math.floor(Math.random() * maxWait ) + 100;
  435. console.log('Waiting for ' + wait + 'ms before next bet.');
  436. return wait ;
  437. }
  438. function startGame(){
  439. console.log('Game started!');
  440. reset();
  441. $loButton.trigger('click');
  442. }
  443. function stopGame(){
  444. console.log('Game will stop soon! Let me finish.');
  445. stopped = true;
  446. }
  447. function reset(){
  448. $('#double_your_btc_stake').val(startValue);
  449. }
  450. function deexponentize(number){
  451. return number * 10000000;
  452. }
  453. function iHaveEnoughMoni(){
  454. var balance = deexponentize(parseFloat($('#balance').text()));
  455. var current = deexponentize($('#double_your_btc_stake').val());
  456. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  457. }
  458. function stopBeforeRedirect(){
  459. var minutes = parseInt($('title').text());
  460. if( minutes < stopBefore )
  461. {
  462. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  463. stopGame();
  464. return true;
  465. }
  466. return false;
  467. }
  468. $('#double_your_btc_bet_lose').unbind();
  469. $('#double_your_btc_bet_win').unbind();
  470. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  471. if( $(event.currentTarget).is(':contains("lose")') )
  472. {
  473. console.log('You LOST! Multiplying your bet and betting again.');
  474. multiply();
  475. setTimeout(function(){
  476. $loButton.trigger('click');
  477. }, getRandomWait());
  478. }
  479. });
  480. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  481. if( $(event.currentTarget).is(':contains("win")') )
  482. {
  483. if( stopBeforeRedirect() )
  484. {
  485. return;
  486. }
  487. if( iHaveEnoughMoni() )
  488. {
  489. console.log('You WON! But don\'t be greedy. Restarting!');
  490. reset();
  491. if( stopped )
  492. {
  493. stopped = false;
  494. return false;
  495. }
  496. }
  497. else
  498. {
  499. console.log('You WON! Betting again');
  500. }
  501. setTimeout(function(){
  502. $loButton.trigger('click');
  503. }, getRandomWait());
  504. }
  505. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  506. stopPercentage = 0.001,
  507. maxWait = 777,
  508. stopped = false, // debugging
  509. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  510. var $loButton = $('#double_your_btc_bet_lo_button'),
  511. $hiButton = $('#double_your_btc_bet_hi_button');
  512. function multiply(){
  513. var current = $('#double_your_btc_stake').val();
  514. var multiply = (current * 2).toFixed(8);
  515. $('#double_your_btc_stake').val(multiply);
  516. }
  517. function getRandomWait(){
  518. var wait = Math.floor(Math.random() * maxWait ) + 100;
  519. console.log('Waiting for ' + wait + 'ms before next bet.');
  520. return wait ;
  521. }
  522. function startGame(){
  523. console.log('Game started!');
  524. reset();
  525. $loButton.trigger('click');
  526. }
  527. function stopGame(){
  528. console.log('Game will stop soon! Let me finish.');
  529. stopped = true;
  530. }
  531. function reset(){
  532. $('#double_your_btc_stake').val(startValue);
  533. }
  534. function deexponentize(number){
  535. return number * 10000000;
  536. }
  537. function iHaveEnoughMoni(){
  538. var balance = deexponentize(parseFloat($('#balance').text()));
  539. var current = deexponentize($('#double_your_btc_stake').val());
  540. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  541. }
  542. function stopBeforeRedirect(){
  543. var minutes = parseInt($('title').text());
  544. if( minutes < stopBefore )
  545. {
  546. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  547. stopGame();
  548. return true;
  549. }
  550. return false;
  551. }
  552. $('#double_your_btc_bet_lose').unbind();
  553. $('#double_your_btc_bet_win').unbind();
  554. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  555. if( $(event.currentTarget).is(':contains("lose")') )
  556. {
  557. console.log('You LOST! Multiplying your bet and betting again.');
  558. multiply();
  559. setTimeout(function(){
  560. $loButton.trigger('click');
  561. }, getRandomWait());
  562. }
  563. });
  564. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  565. if( $(event.currentTarget).is(':contains("win")') )
  566. {
  567. if( stopBeforeRedirect() )
  568. {
  569. return;
  570. }
  571. if( iHaveEnoughMoni() )
  572. {
  573. console.log('You WON! But don\'t be greedy. Restarting!');
  574. reset();
  575. if( stopped )
  576. {
  577. stopped = false;
  578. return false;
  579. }
  580. }
  581. else
  582. {
  583. console.log('You WON! Betting again');
  584. }
  585. setTimeout(function(){
  586. $loButton.trigger('click');
  587. }, getRandomWait());
  588. }
  589. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  590. stopPercentage = 0.001,
  591. maxWait = 777,
  592. stopped = false, // debugging
  593. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  594. var $loButton = $('#double_your_btc_bet_lo_button'),
  595. $hiButton = $('#double_your_btc_bet_hi_button');
  596. function multiply(){
  597. var current = $('#double_your_btc_stake').val();
  598. var multiply = (current * 2).toFixed(8);
  599. $('#double_your_btc_stake').val(multiply);
  600. }
  601. function getRandomWait(){
  602. var wait = Math.floor(Math.random() * maxWait ) + 100;
  603. console.log('Waiting for ' + wait + 'ms before next bet.');
  604. return wait ;
  605. }
  606. function startGame(){
  607. console.log('Game started!');
  608. reset();
  609. $loButton.trigger('click');
  610. }
  611. function stopGame(){
  612. console.log('Game will stop soon! Let me finish.');
  613. stopped = true;
  614. }
  615. function reset(){
  616. $('#double_your_btc_stake').val(startValue);
  617. }
  618. function deexponentize(number){
  619. return number * 10000000;
  620. }
  621. function iHaveEnoughMoni(){
  622. var balance = deexponentize(parseFloat($('#balance').text()));
  623. var current = deexponentize($('#double_your_btc_stake').val());
  624. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  625. }
  626. function stopBeforeRedirect(){
  627. var minutes = parseInt($('title').text());
  628. if( minutes < stopBefore )
  629. {
  630. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  631. stopGame();
  632. return true;
  633. }
  634. return false;
  635. }
  636. $('#double_your_btc_bet_lose').unbind();
  637. $('#double_your_btc_bet_win').unbind();
  638. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  639. if( $(event.currentTarget).is(':contains("lose")') )
  640. {
  641. console.log('You LOST! Multiplying your bet and betting again.');
  642. multiply();
  643. setTimeout(function(){
  644. $loButton.trigger('click');
  645. }, getRandomWait());
  646. }
  647. });
  648. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  649. if( $(event.currentTarget).is(':contains("win")') )
  650. {
  651. if( stopBeforeRedirect() )
  652. {
  653. return;
  654. }
  655. if( iHaveEnoughMoni() )
  656. {
  657. console.log('You WON! But don\'t be greedy. Restarting!');
  658. reset();
  659. if( stopped )
  660. {
  661. stopped = false;
  662. return false;
  663. }
  664. }
  665. else
  666. {
  667. console.log('You WON! Betting again');
  668. }
  669. setTimeout(function(){
  670. $loButton.trigger('click');
  671. }, getRandomWait());
  672. }
  673. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  674. stopPercentage = 0.001,
  675. maxWait = 777,
  676. stopped = false, // debugging
  677. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  678. var $loButton = $('#double_your_btc_bet_lo_button'),
  679. $hiButton = $('#double_your_btc_bet_hi_button');
  680. function multiply(){
  681. var current = $('#double_your_btc_stake').val();
  682. var multiply = (current * 2).toFixed(8);
  683. $('#double_your_btc_stake').val(multiply);
  684. }
  685. function getRandomWait(){
  686. var wait = Math.floor(Math.random() * maxWait ) + 100;
  687. console.log('Waiting for ' + wait + 'ms before next bet.');
  688. return wait ;
  689. }
  690. function startGame(){
  691. console.log('Game started!');
  692. reset();
  693. $loButton.trigger('click');
  694. }
  695. function stopGame(){
  696. console.log('Game will stop soon! Let me finish.');
  697. stopped = true;
  698. }
  699. function reset(){
  700. $('#double_your_btc_stake').val(startValue);
  701. }
  702. function deexponentize(number){
  703. return number * 10000000;
  704. }
  705. function iHaveEnoughMoni(){
  706. var balance = deexponentize(parseFloat($('#balance').text()));
  707. var current = deexponentize($('#double_your_btc_stake').val());
  708. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  709. }
  710. function stopBeforeRedirect(){
  711. var minutes = parseInt($('title').text());
  712. if( minutes < stopBefore )
  713. {
  714. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  715. stopGame();
  716. return true;
  717. }
  718. return false;
  719. }
  720. $('#double_your_btc_bet_lose').unbind();
  721. $('#double_your_btc_bet_win').unbind();
  722. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  723. if( $(event.currentTarget).is(':contains("lose")') )
  724. {
  725. console.log('You LOST! Multiplying your bet and betting again.');
  726. multiply();
  727. setTimeout(function(){
  728. $loButton.trigger('click');
  729. }, getRandomWait());
  730. }
  731. });
  732. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  733. if( $(event.currentTarget).is(':contains("win")') )
  734. {
  735. if( stopBeforeRedirect() )
  736. {
  737. return;
  738. }
  739. if( iHaveEnoughMoni() )
  740. {
  741. console.log('You WON! But don\'t be greedy. Restarting!');
  742. reset();
  743. if( stopped )
  744. {
  745. stopped = false;
  746. return false;
  747. }
  748. }
  749. else
  750. {
  751. console.log('You WON! Betting again');
  752. }
  753. setTimeout(function(){
  754. $loButton.trigger('click');
  755. }, getRandomWait());
  756. }
  757. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  758. stopPercentage = 0.001,
  759. maxWait = 777,
  760. stopped = false, // debugging
  761. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  762. var $loButton = $('#double_your_btc_bet_lo_button'),
  763. $hiButton = $('#double_your_btc_bet_hi_button');
  764. function multiply(){
  765. var current = $('#double_your_btc_stake').val();
  766. var multiply = (current * 2).toFixed(8);
  767. $('#double_your_btc_stake').val(multiply);
  768. }
  769. function getRandomWait(){
  770. var wait = Math.floor(Math.random() * maxWait ) + 100;
  771. console.log('Waiting for ' + wait + 'ms before next bet.');
  772. return wait ;
  773. }
  774. function startGame(){
  775. console.log('Game started!');
  776. reset();
  777. $loButton.trigger('click');
  778. }
  779. function stopGame(){
  780. console.log('Game will stop soon! Let me finish.');
  781. stopped = true;
  782. }
  783. function reset(){
  784. $('#double_your_btc_stake').val(startValue);
  785. }
  786. function deexponentize(number){
  787. return number * 10000000;
  788. }
  789. function iHaveEnoughMoni(){
  790. var balance = deexponentize(parseFloat($('#balance').text()));
  791. var current = deexponentize($('#double_your_btc_stake').val());
  792. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  793. }
  794. function stopBeforeRedirect(){
  795. var minutes = parseInt($('title').text());
  796. if( minutes < stopBefore )
  797. {
  798. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  799. stopGame();
  800. return true;
  801. }
  802. return false;
  803. }
  804. $('#double_your_btc_bet_lose').unbind();
  805. $('#double_your_btc_bet_win').unbind();
  806. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  807. if( $(event.currentTarget).is(':contains("lose")') )
  808. {
  809. console.log('You LOST! Multiplying your bet and betting again.');
  810. multiply();
  811. setTimeout(function(){
  812. $loButton.trigger('click');
  813. }, getRandomWait());
  814. }
  815. });
  816. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  817. if( $(event.currentTarget).is(':contains("win")') )
  818. {
  819. if( stopBeforeRedirect() )
  820. {
  821. return;
  822. }
  823. if( iHaveEnoughMoni() )
  824. {
  825. console.log('You WON! But don\'t be greedy. Restarting!');
  826. reset();
  827. if( stopped )
  828. {
  829. stopped = false;
  830. return false;
  831. }
  832. }
  833. else
  834. {
  835. console.log('You WON! Betting again');
  836. }
  837. setTimeout(function(){
  838. $loButton.trigger('click');
  839. }, getRandomWait());
  840. }
  841. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  842. stopPercentage = 0.001,
  843. maxWait = 777,
  844. stopped = false, // debugging
  845. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  846. var $loButton = $('#double_your_btc_bet_lo_button'),
  847. $hiButton = $('#double_your_btc_bet_hi_button');
  848. function multiply(){
  849. var current = $('#double_your_btc_stake').val();
  850. var multiply = (current * 2).toFixed(8);
  851. $('#double_your_btc_stake').val(multiply);
  852. }
  853. function getRandomWait(){
  854. var wait = Math.floor(Math.random() * maxWait ) + 100;
  855. console.log('Waiting for ' + wait + 'ms before next bet.');
  856. return wait ;
  857. }
  858. function startGame(){
  859. console.log('Game started!');
  860. reset();
  861. $loButton.trigger('click');
  862. }
  863. function stopGame(){
  864. console.log('Game will stop soon! Let me finish.');
  865. stopped = true;
  866. }
  867. function reset(){
  868. $('#double_your_btc_stake').val(startValue);
  869. }
  870. function deexponentize(number){
  871. return number * 10000000;
  872. }
  873. function iHaveEnoughMoni(){
  874. var balance = deexponentize(parseFloat($('#balance').text()));
  875. var current = deexponentize($('#double_your_btc_stake').val());
  876. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  877. }
  878. function stopBeforeRedirect(){
  879. var minutes = parseInt($('title').text());
  880. if( minutes < stopBefore )
  881. {
  882. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  883. stopGame();
  884. return true;
  885. }
  886. return false;
  887. }
  888. $('#double_your_btc_bet_lose').unbind();
  889. $('#double_your_btc_bet_win').unbind();
  890. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  891. if( $(event.currentTarget).is(':contains("lose")') )
  892. {
  893. console.log('You LOST! Multiplying your bet and betting again.');
  894. multiply();
  895. setTimeout(function(){
  896. $loButton.trigger('click');
  897. }, getRandomWait());
  898. }
  899. });
  900. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  901. if( $(event.currentTarget).is(':contains("win")') )
  902. {
  903. if( stopBeforeRedirect() )
  904. {
  905. return;
  906. }
  907. if( iHaveEnoughMoni() )
  908. {
  909. console.log('You WON! But don\'t be greedy. Restarting!');
  910. reset();
  911. if( stopped )
  912. {
  913. stopped = false;
  914. return false;
  915. }
  916. }
  917. else
  918. {
  919. console.log('You WON! Betting again');
  920. }
  921. setTimeout(function(){
  922. $loButton.trigger('click');
  923. }, getRandomWait());
  924. }
  925. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  926. stopPercentage = 0.001,
  927. maxWait = 777,
  928. stopped = false, // debugging
  929. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  930. var $loButton = $('#double_your_btc_bet_lo_button'),
  931. $hiButton = $('#double_your_btc_bet_hi_button');
  932. function multiply(){
  933. var current = $('#double_your_btc_stake').val();
  934. var multiply = (current * 2).toFixed(8);
  935. $('#double_your_btc_stake').val(multiply);
  936. }
  937. function getRandomWait(){
  938. var wait = Math.floor(Math.random() * maxWait ) + 100;
  939. console.log('Waiting for ' + wait + 'ms before next bet.');
  940. return wait ;
  941. }
  942. function startGame(){
  943. console.log('Game started!');
  944. reset();
  945. $loButton.trigger('click');
  946. }
  947. function stopGame(){
  948. console.log('Game will stop soon! Let me finish.');
  949. stopped = true;
  950. }
  951. function reset(){
  952. $('#double_your_btc_stake').val(startValue);
  953. }
  954. function deexponentize(number){
  955. return number * 10000000;
  956. }
  957. function iHaveEnoughMoni(){
  958. var balance = deexponentize(parseFloat($('#balance').text()));
  959. var current = deexponentize($('#double_your_btc_stake').val());
  960. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  961. }
  962. function stopBeforeRedirect(){
  963. var minutes = parseInt($('title').text());
  964. if( minutes < stopBefore )
  965. {
  966. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  967. stopGame();
  968. return true;
  969. }
  970. return false;
  971. }
  972. $('#double_your_btc_bet_lose').unbind();
  973. $('#double_your_btc_bet_win').unbind();
  974. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  975. if( $(event.currentTarget).is(':contains("lose")') )
  976. {
  977. console.log('You LOST! Multiplying your bet and betting again.');
  978. multiply();
  979. setTimeout(function(){
  980. $loButton.trigger('click');
  981. }, getRandomWait());
  982. }
  983. });
  984. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  985. if( $(event.currentTarget).is(':contains("win")') )
  986. {
  987. if( stopBeforeRedirect() )
  988. {
  989. return;
  990. }
  991. if( iHaveEnoughMoni() )
  992. {
  993. console.log('You WON! But don\'t be greedy. Restarting!');
  994. reset();
  995. if( stopped )
  996. {
  997. stopped = false;
  998. return false;
  999. }
  1000. }
  1001. else
  1002. {
  1003. console.log('You WON! Betting again');
  1004. }
  1005. setTimeout(function(){
  1006. $loButton.trigger('click');
  1007. }, getRandomWait());
  1008. }
  1009. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1010. stopPercentage = 0.001,
  1011. maxWait = 777,
  1012. stopped = false, // debugging
  1013. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1014. var $loButton = $('#double_your_btc_bet_lo_button'),
  1015. $hiButton = $('#double_your_btc_bet_hi_button');
  1016. function multiply(){
  1017. var current = $('#double_your_btc_stake').val();
  1018. var multiply = (current * 2).toFixed(8);
  1019. $('#double_your_btc_stake').val(multiply);
  1020. }
  1021. function getRandomWait(){
  1022. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1023. console.log('Waiting for ' + wait + 'ms before next bet.');
  1024. return wait ;
  1025. }
  1026. function startGame(){
  1027. console.log('Game started!');
  1028. reset();
  1029. $loButton.trigger('click');
  1030. }
  1031. function stopGame(){
  1032. console.log('Game will stop soon! Let me finish.');
  1033. stopped = true;
  1034. }
  1035. function reset(){
  1036. $('#double_your_btc_stake').val(startValue);
  1037. }
  1038. function deexponentize(number){
  1039. return number * 10000000;
  1040. }
  1041. function iHaveEnoughMoni(){
  1042. var balance = deexponentize(parseFloat($('#balance').text()));
  1043. var current = deexponentize($('#double_your_btc_stake').val());
  1044. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1045. }
  1046. function stopBeforeRedirect(){
  1047. var minutes = parseInt($('title').text());
  1048. if( minutes < stopBefore )
  1049. {
  1050. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1051. stopGame();
  1052. return true;
  1053. }
  1054. return false;
  1055. }
  1056. $('#double_your_btc_bet_lose').unbind();
  1057. $('#double_your_btc_bet_win').unbind();
  1058. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1059. if( $(event.currentTarget).is(':contains("lose")') )
  1060. {
  1061. console.log('You LOST! Multiplying your bet and betting again.');
  1062. multiply();
  1063. setTimeout(function(){
  1064. $loButton.trigger('click');
  1065. }, getRandomWait());
  1066. }
  1067. });
  1068. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1069. if( $(event.currentTarget).is(':contains("win")') )
  1070. {
  1071. if( stopBeforeRedirect() )
  1072. {
  1073. return;
  1074. }
  1075. if( iHaveEnoughMoni() )
  1076. {
  1077. console.log('You WON! But don\'t be greedy. Restarting!');
  1078. reset();
  1079. if( stopped )
  1080. {
  1081. stopped = false;
  1082. return false;
  1083. }
  1084. }
  1085. else
  1086. {
  1087. console.log('You WON! Betting again');
  1088. }
  1089. setTimeout(function(){
  1090. $loButton.trigger('click');
  1091. }, getRandomWait());
  1092. }
  1093. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1094. stopPercentage = 0.001,
  1095. maxWait = 777,
  1096. stopped = false, // debugging
  1097. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1098. var $loButton = $('#double_your_btc_bet_lo_button'),
  1099. $hiButton = $('#double_your_btc_bet_hi_button');
  1100. function multiply(){
  1101. var current = $('#double_your_btc_stake').val();
  1102. var multiply = (current * 2).toFixed(8);
  1103. $('#double_your_btc_stake').val(multiply);
  1104. }
  1105. function getRandomWait(){
  1106. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1107. console.log('Waiting for ' + wait + 'ms before next bet.');
  1108. return wait ;
  1109. }
  1110. function startGame(){
  1111. console.log('Game started!');
  1112. reset();
  1113. $loButton.trigger('click');
  1114. }
  1115. function stopGame(){
  1116. console.log('Game will stop soon! Let me finish.');
  1117. stopped = true;
  1118. }
  1119. function reset(){
  1120. $('#double_your_btc_stake').val(startValue);
  1121. }
  1122. function deexponentize(number){
  1123. return number * 10000000;
  1124. }
  1125. function iHaveEnoughMoni(){
  1126. var balance = deexponentize(parseFloat($('#balance').text()));
  1127. var current = deexponentize($('#double_your_btc_stake').val());
  1128. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1129. }
  1130. function stopBeforeRedirect(){
  1131. var minutes = parseInt($('title').text());
  1132. if( minutes < stopBefore )
  1133. {
  1134. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1135. stopGame();
  1136. return true;
  1137. }
  1138. return false;
  1139. }
  1140. $('#double_your_btc_bet_lose').unbind();
  1141. $('#double_your_btc_bet_win').unbind();
  1142. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1143. if( $(event.currentTarget).is(':contains("lose")') )
  1144. {
  1145. console.log('You LOST! Multiplying your bet and betting again.');
  1146. multiply();
  1147. setTimeout(function(){
  1148. $loButton.trigger('click');
  1149. }, getRandomWait());
  1150. }
  1151. });
  1152. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1153. if( $(event.currentTarget).is(':contains("win")') )
  1154. {
  1155. if( stopBeforeRedirect() )
  1156. {
  1157. return;
  1158. }
  1159. if( iHaveEnoughMoni() )
  1160. {
  1161. console.log('You WON! But don\'t be greedy. Restarting!');
  1162. reset();
  1163. if( stopped )
  1164. {
  1165. stopped = false;
  1166. return false;
  1167. }
  1168. }
  1169. else
  1170. {
  1171. console.log('You WON! Betting again');
  1172. }
  1173. setTimeout(function(){
  1174. $loButton.trigger('click');
  1175. }, getRandomWait());
  1176. }
  1177. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1178. stopPercentage = 0.001,
  1179. maxWait = 777,
  1180. stopped = false, // debugging
  1181. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1182. var $loButton = $('#double_your_btc_bet_lo_button'),
  1183. $hiButton = $('#double_your_btc_bet_hi_button');
  1184. function multiply(){
  1185. var current = $('#double_your_btc_stake').val();
  1186. var multiply = (current * 2).toFixed(8);
  1187. $('#double_your_btc_stake').val(multiply);
  1188. }
  1189. function getRandomWait(){
  1190. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1191. console.log('Waiting for ' + wait + 'ms before next bet.');
  1192. return wait ;
  1193. }
  1194. function startGame(){
  1195. console.log('Game started!');
  1196. reset();
  1197. $loButton.trigger('click');
  1198. }
  1199. function stopGame(){
  1200. console.log('Game will stop soon! Let me finish.');
  1201. stopped = true;
  1202. }
  1203. function reset(){
  1204. $('#double_your_btc_stake').val(startValue);
  1205. }
  1206. function deexponentize(number){
  1207. return number * 10000000;
  1208. }
  1209. function iHaveEnoughMoni(){
  1210. var balance = deexponentize(parseFloat($('#balance').text()));
  1211. var current = deexponentize($('#double_your_btc_stake').val());
  1212. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1213. }
  1214. function stopBeforeRedirect(){
  1215. var minutes = parseInt($('title').text());
  1216. if( minutes < stopBefore )
  1217. {
  1218. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1219. stopGame();
  1220. return true;
  1221. }
  1222. return false;
  1223. }
  1224. $('#double_your_btc_bet_lose').unbind();
  1225. $('#double_your_btc_bet_win').unbind();
  1226. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1227. if( $(event.currentTarget).is(':contains("lose")') )
  1228. {
  1229. console.log('You LOST! Multiplying your bet and betting again.');
  1230. multiply();
  1231. setTimeout(function(){
  1232. $loButton.trigger('click');
  1233. }, getRandomWait());
  1234. }
  1235. });
  1236. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1237. if( $(event.currentTarget).is(':contains("win")') )
  1238. {
  1239. if( stopBeforeRedirect() )
  1240. {
  1241. return;
  1242. }
  1243. if( iHaveEnoughMoni() )
  1244. {
  1245. console.log('You WON! But don\'t be greedy. Restarting!');
  1246. reset();
  1247. if( stopped )
  1248. {
  1249. stopped = false;
  1250. return false;
  1251. }
  1252. }
  1253. else
  1254. {
  1255. console.log('You WON! Betting again');
  1256. }
  1257. setTimeout(function(){
  1258. $loButton.trigger('click');
  1259. }, getRandomWait());
  1260. }
  1261. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1262. stopPercentage = 0.001,
  1263. maxWait = 777,
  1264. stopped = false, // debugging
  1265. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1266. var $loButton = $('#double_your_btc_bet_lo_button'),
  1267. $hiButton = $('#double_your_btc_bet_hi_button');
  1268. function multiply(){
  1269. var current = $('#double_your_btc_stake').val();
  1270. var multiply = (current * 2).toFixed(8);
  1271. $('#double_your_btc_stake').val(multiply);
  1272. }
  1273. function getRandomWait(){
  1274. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1275. console.log('Waiting for ' + wait + 'ms before next bet.');
  1276. return wait ;
  1277. }
  1278. function startGame(){
  1279. console.log('Game started!');
  1280. reset();
  1281. $loButton.trigger('click');
  1282. }
  1283. function stopGame(){
  1284. console.log('Game will stop soon! Let me finish.');
  1285. stopped = true;
  1286. }
  1287. function reset(){
  1288. $('#double_your_btc_stake').val(startValue);
  1289. }
  1290. function deexponentize(number){
  1291. return number * 10000000;
  1292. }
  1293. function iHaveEnoughMoni(){
  1294. var balance = deexponentize(parseFloat($('#balance').text()));
  1295. var current = deexponentize($('#double_your_btc_stake').val());
  1296. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1297. }
  1298. function stopBeforeRedirect(){
  1299. var minutes = parseInt($('title').text());
  1300. if( minutes < stopBefore )
  1301. {
  1302. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1303. stopGame();
  1304. return true;
  1305. }
  1306. return false;
  1307. }
  1308. $('#double_your_btc_bet_lose').unbind();
  1309. $('#double_your_btc_bet_win').unbind();
  1310. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1311. if( $(event.currentTarget).is(':contains("lose")') )
  1312. {
  1313. console.log('You LOST! Multiplying your bet and betting again.');
  1314. multiply();
  1315. setTimeout(function(){
  1316. $loButton.trigger('click');
  1317. }, getRandomWait());
  1318. }
  1319. });
  1320. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1321. if( $(event.currentTarget).is(':contains("win")') )
  1322. {
  1323. if( stopBeforeRedirect() )
  1324. {
  1325. return;
  1326. }
  1327. if( iHaveEnoughMoni() )
  1328. {
  1329. console.log('You WON! But don\'t be greedy. Restarting!');
  1330. reset();
  1331. if( stopped )
  1332. {
  1333. stopped = false;
  1334. return false;
  1335. }
  1336. }
  1337. else
  1338. {
  1339. console.log('You WON! Betting again');
  1340. }
  1341. setTimeout(function(){
  1342. $loButton.trigger('click');
  1343. }, getRandomWait());
  1344. }
  1345. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1346. stopPercentage = 0.001,
  1347. maxWait = 777,
  1348. stopped = false, // debugging
  1349. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1350. var $loButton = $('#double_your_btc_bet_lo_button'),
  1351. $hiButton = $('#double_your_btc_bet_hi_button');
  1352. function multiply(){
  1353. var current = $('#double_your_btc_stake').val();
  1354. var multiply = (current * 2).toFixed(8);
  1355. $('#double_your_btc_stake').val(multiply);
  1356. }
  1357. function getRandomWait(){
  1358. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1359. console.log('Waiting for ' + wait + 'ms before next bet.');
  1360. return wait ;
  1361. }
  1362. function startGame(){
  1363. console.log('Game started!');
  1364. reset();
  1365. $loButton.trigger('click');
  1366. }
  1367. function stopGame(){
  1368. console.log('Game will stop soon! Let me finish.');
  1369. stopped = true;
  1370. }
  1371. function reset(){
  1372. $('#double_your_btc_stake').val(startValue);
  1373. }
  1374. function deexponentize(number){
  1375. return number * 10000000;
  1376. }
  1377. function iHaveEnoughMoni(){
  1378. var balance = deexponentize(parseFloat($('#balance').text()));
  1379. var current = deexponentize($('#double_your_btc_stake').val());
  1380. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1381. }
  1382. function stopBeforeRedirect(){
  1383. var minutes = parseInt($('title').text());
  1384. if( minutes < stopBefore )
  1385. {
  1386. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1387. stopGame();
  1388. return true;
  1389. }
  1390. return false;
  1391. }
  1392. $('#double_your_btc_bet_lose').unbind();
  1393. $('#double_your_btc_bet_win').unbind();
  1394. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1395. if( $(event.currentTarget).is(':contains("lose")') )
  1396. {
  1397. console.log('You LOST! Multiplying your bet and betting again.');
  1398. multiply();
  1399. setTimeout(function(){
  1400. $loButton.trigger('click');
  1401. }, getRandomWait());
  1402. }
  1403. });
  1404. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1405. if( $(event.currentTarget).is(':contains("win")') )
  1406. {
  1407. if( stopBeforeRedirect() )
  1408. {
  1409. return;
  1410. }
  1411. if( iHaveEnoughMoni() )
  1412. {
  1413. console.log('You WON! But don\'t be greedy. Restarting!');
  1414. reset();
  1415. if( stopped )
  1416. {
  1417. stopped = false;
  1418. return false;
  1419. }
  1420. }
  1421. else
  1422. {
  1423. console.log('You WON! Betting again');
  1424. }
  1425. setTimeout(function(){
  1426. $loButton.trigger('click');
  1427. }, getRandomWait());
  1428. }
  1429. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1430. stopPercentage = 0.001,
  1431. maxWait = 777,
  1432. stopped = false, // debugging
  1433. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1434. var $loButton = $('#double_your_btc_bet_lo_button'),
  1435. $hiButton = $('#double_your_btc_bet_hi_button');
  1436. function multiply(){
  1437. var current = $('#double_your_btc_stake').val();
  1438. var multiply = (current * 2).toFixed(8);
  1439. $('#double_your_btc_stake').val(multiply);
  1440. }
  1441. function getRandomWait(){
  1442. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1443. console.log('Waiting for ' + wait + 'ms before next bet.');
  1444. return wait ;
  1445. }
  1446. function startGame(){
  1447. console.log('Game started!');
  1448. reset();
  1449. $loButton.trigger('click');
  1450. }
  1451. function stopGame(){
  1452. console.log('Game will stop soon! Let me finish.');
  1453. stopped = true;
  1454. }
  1455. function reset(){
  1456. $('#double_your_btc_stake').val(startValue);
  1457. }
  1458. function deexponentize(number){
  1459. return number * 10000000;
  1460. }
  1461. function iHaveEnoughMoni(){
  1462. var balance = deexponentize(parseFloat($('#balance').text()));
  1463. var current = deexponentize($('#double_your_btc_stake').val());
  1464. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1465. }
  1466. function stopBeforeRedirect(){
  1467. var minutes = parseInt($('title').text());
  1468. if( minutes < stopBefore )
  1469. {
  1470. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1471. stopGame();
  1472. return true;
  1473. }
  1474. return false;
  1475. }
  1476. $('#double_your_btc_bet_lose').unbind();
  1477. $('#double_your_btc_bet_win').unbind();
  1478. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1479. if( $(event.currentTarget).is(':contains("lose")') )
  1480. {
  1481. console.log('You LOST! Multiplying your bet and betting again.');
  1482. multiply();
  1483. setTimeout(function(){
  1484. $loButton.trigger('click');
  1485. }, getRandomWait());
  1486. }
  1487. });
  1488. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1489. if( $(event.currentTarget).is(':contains("win")') )
  1490. {
  1491. if( stopBeforeRedirect() )
  1492. {
  1493. return;
  1494. }
  1495. if( iHaveEnoughMoni() )
  1496. {
  1497. console.log('You WON! But don\'t be greedy. Restarting!');
  1498. reset();
  1499. if( stopped )
  1500. {
  1501. stopped = false;
  1502. return false;
  1503. }
  1504. }
  1505. else
  1506. {
  1507. console.log('You WON! Betting again');
  1508. }
  1509. setTimeout(function(){
  1510. $loButton.trigger('click');
  1511. }, getRandomWait());
  1512. }
  1513. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1514. stopPercentage = 0.001,
  1515. maxWait = 777,
  1516. stopped = false, // debugging
  1517. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1518. var $loButton = $('#double_your_btc_bet_lo_button'),
  1519. $hiButton = $('#double_your_btc_bet_hi_button');
  1520. function multiply(){
  1521. var current = $('#double_your_btc_stake').val();
  1522. var multiply = (current * 2).toFixed(8);
  1523. $('#double_your_btc_stake').val(multiply);
  1524. }
  1525. function getRandomWait(){
  1526. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1527. console.log('Waiting for ' + wait + 'ms before next bet.');
  1528. return wait ;
  1529. }
  1530. function startGame(){
  1531. console.log('Game started!');
  1532. reset();
  1533. $loButton.trigger('click');
  1534. }
  1535. function stopGame(){
  1536. console.log('Game will stop soon! Let me finish.');
  1537. stopped = true;
  1538. }
  1539. function reset(){
  1540. $('#double_your_btc_stake').val(startValue);
  1541. }
  1542. function deexponentize(number){
  1543. return number * 10000000;
  1544. }
  1545. function iHaveEnoughMoni(){
  1546. var balance = deexponentize(parseFloat($('#balance').text()));
  1547. var current = deexponentize($('#double_your_btc_stake').val());
  1548. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1549. }
  1550. function stopBeforeRedirect(){
  1551. var minutes = parseInt($('title').text());
  1552. if( minutes < stopBefore )
  1553. {
  1554. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1555. stopGame();
  1556. return true;
  1557. }
  1558. return false;
  1559. }
  1560. $('#double_your_btc_bet_lose').unbind();
  1561. $('#double_your_btc_bet_win').unbind();
  1562. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1563. if( $(event.currentTarget).is(':contains("lose")') )
  1564. {
  1565. console.log('You LOST! Multiplying your bet and betting again.');
  1566. multiply();
  1567. setTimeout(function(){
  1568. $loButton.trigger('click');
  1569. }, getRandomWait());
  1570. }
  1571. });
  1572. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1573. if( $(event.currentTarget).is(':contains("win")') )
  1574. {
  1575. if( stopBeforeRedirect() )
  1576. {
  1577. return;
  1578. }
  1579. if( iHaveEnoughMoni() )
  1580. {
  1581. console.log('You WON! But don\'t be greedy. Restarting!');
  1582. reset();
  1583. if( stopped )
  1584. {
  1585. stopped = false;
  1586. return false;
  1587. }
  1588. }
  1589. else
  1590. {
  1591. console.log('You WON! Betting again');
  1592. }
  1593. setTimeout(function(){
  1594. $loButton.trigger('click');
  1595. }, getRandomWait());
  1596. }
  1597. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1598. stopPercentage = 0.001,
  1599. maxWait = 777,
  1600. stopped = false, // debugging
  1601. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1602. var $loButton = $('#double_your_btc_bet_lo_button'),
  1603. $hiButton = $('#double_your_btc_bet_hi_button');
  1604. function multiply(){
  1605. var current = $('#double_your_btc_stake').val();
  1606. var multiply = (current * 2).toFixed(8);
  1607. $('#double_your_btc_stake').val(multiply);
  1608. }
  1609. function getRandomWait(){
  1610. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1611. console.log('Waiting for ' + wait + 'ms before next bet.');
  1612. return wait ;
  1613. }
  1614. function startGame(){
  1615. console.log('Game started!');
  1616. reset();
  1617. $loButton.trigger('click');
  1618. }
  1619. function stopGame(){
  1620. console.log('Game will stop soon! Let me finish.');
  1621. stopped = true;
  1622. }
  1623. function reset(){
  1624. $('#double_your_btc_stake').val(startValue);
  1625. }
  1626. function deexponentize(number){
  1627. return number * 10000000;
  1628. }
  1629. function iHaveEnoughMoni(){
  1630. var balance = deexponentize(parseFloat($('#balance').text()));
  1631. var current = deexponentize($('#double_your_btc_stake').val());
  1632. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1633. }
  1634. function stopBeforeRedirect(){
  1635. var minutes = parseInt($('title').text());
  1636. if( minutes < stopBefore )
  1637. {
  1638. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1639. stopGame();
  1640. return true;
  1641. }
  1642. return false;
  1643. }
  1644. $('#double_your_btc_bet_lose').unbind();
  1645. $('#double_your_btc_bet_win').unbind();
  1646. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1647. if( $(event.currentTarget).is(':contains("lose")') )
  1648. {
  1649. console.log('You LOST! Multiplying your bet and betting again.');
  1650. multiply();
  1651. setTimeout(function(){
  1652. $loButton.trigger('click');
  1653. }, getRandomWait());
  1654. }
  1655. });
  1656. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1657. if( $(event.currentTarget).is(':contains("win")') )
  1658. {
  1659. if( stopBeforeRedirect() )
  1660. {
  1661. return;
  1662. }
  1663. if( iHaveEnoughMoni() )
  1664. {
  1665. console.log('You WON! But don\'t be greedy. Restarting!');
  1666. reset();
  1667. if( stopped )
  1668. {
  1669. stopped = false;
  1670. return false;
  1671. }
  1672. }
  1673. else
  1674. {
  1675. console.log('You WON! Betting again');
  1676. }
  1677. setTimeout(function(){
  1678. $loButton.trigger('click');
  1679. }, getRandomWait());
  1680. }
  1681. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1682. stopPercentage = 0.001,
  1683. maxWait = 777,
  1684. stopped = false, // debugging
  1685. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1686. var $loButton = $('#double_your_btc_bet_lo_button'),
  1687. $hiButton = $('#double_your_btc_bet_hi_button');
  1688. function multiply(){
  1689. var current = $('#double_your_btc_stake').val();
  1690. var multiply = (current * 2).toFixed(8);
  1691. $('#double_your_btc_stake').val(multiply);
  1692. }
  1693. function getRandomWait(){
  1694. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1695. console.log('Waiting for ' + wait + 'ms before next bet.');
  1696. return wait ;
  1697. }
  1698. function startGame(){
  1699. console.log('Game started!');
  1700. reset();
  1701. $loButton.trigger('click');
  1702. }
  1703. function stopGame(){
  1704. console.log('Game will stop soon! Let me finish.');
  1705. stopped = true;
  1706. }
  1707. function reset(){
  1708. $('#double_your_btc_stake').val(startValue);
  1709. }
  1710. function deexponentize(number){
  1711. return number * 10000000;
  1712. }
  1713. function iHaveEnoughMoni(){
  1714. var balance = deexponentize(parseFloat($('#balance').text()));
  1715. var current = deexponentize($('#double_your_btc_stake').val());
  1716. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1717. }
  1718. function stopBeforeRedirect(){
  1719. var minutes = parseInt($('title').text());
  1720. if( minutes < stopBefore )
  1721. {
  1722. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1723. stopGame();
  1724. return true;
  1725. }
  1726. return false;
  1727. }
  1728. $('#double_your_btc_bet_lose').unbind();
  1729. $('#double_your_btc_bet_win').unbind();
  1730. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1731. if( $(event.currentTarget).is(':contains("lose")') )
  1732. {
  1733. console.log('You LOST! Multiplying your bet and betting again.');
  1734. multiply();
  1735. setTimeout(function(){
  1736. $loButton.trigger('click');
  1737. }, getRandomWait());
  1738. }
  1739. });
  1740. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1741. if( $(event.currentTarget).is(':contains("win")') )
  1742. {
  1743. if( stopBeforeRedirect() )
  1744. {
  1745. return;
  1746. }
  1747. if( iHaveEnoughMoni() )
  1748. {
  1749. console.log('You WON! But don\'t be greedy. Restarting!');
  1750. reset();
  1751. if( stopped )
  1752. {
  1753. stopped = false;
  1754. return false;
  1755. }
  1756. }
  1757. else
  1758. {
  1759. console.log('You WON! Betting again');
  1760. }
  1761. setTimeout(function(){
  1762. $loButton.trigger('click');
  1763. }, getRandomWait());
  1764. }
  1765. });startGame()var startValue = '0.00000020', // Don't lower the decimal point more than 4x of current balance
  1766. stopPercentage = 0.001,
  1767. maxWait = 777,
  1768. stopped = false, // debugging
  1769. stopBefore = 0; // In minutes for timer before stopping redirect on webpage
  1770. var $loButton = $('#double_your_btc_bet_lo_button'),
  1771. $hiButton = $('#double_your_btc_bet_hi_button');
  1772. function multiply(){
  1773. var current = $('#double_your_btc_stake').val();
  1774. var multiply = (current * 2).toFixed(8);
  1775. $('#double_your_btc_stake').val(multiply);
  1776. }
  1777. function getRandomWait(){
  1778. var wait = Math.floor(Math.random() * maxWait ) + 100;
  1779. console.log('Waiting for ' + wait + 'ms before next bet.');
  1780. return wait ;
  1781. }
  1782. function startGame(){
  1783. console.log('Game started!');
  1784. reset();
  1785. $loButton.trigger('click');
  1786. }
  1787. function stopGame(){
  1788. console.log('Game will stop soon! Let me finish.');
  1789. stopped = true;
  1790. }
  1791. function reset(){
  1792. $('#double_your_btc_stake').val(startValue);
  1793. }
  1794. function deexponentize(number){
  1795. return number * 10000000;
  1796. }
  1797. function iHaveEnoughMoni(){
  1798. var balance = deexponentize(parseFloat($('#balance').text()));
  1799. var current = deexponentize($('#double_your_btc_stake').val());
  1800. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  1801. }
  1802. function stopBeforeRedirect(){
  1803. var minutes = parseInt($('title').text());
  1804. if( minutes < stopBefore )
  1805. {
  1806. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  1807. stopGame();
  1808. return true;
  1809. }
  1810. return false;
  1811. }
  1812. $('#double_your_btc_bet_lose').unbind();
  1813. $('#double_your_btc_bet_win').unbind();
  1814. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  1815. if( $(event.currentTarget).is(':contains("lose")') )
  1816. {
  1817. console.log('You LOST! Multiplying your bet and betting again.');
  1818. multiply();
  1819. setTimeout(function(){
  1820. $loButton.trigger('click');
  1821. }, getRandomWait());
  1822. }
  1823. });
  1824. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  1825. if( $(event.currentTarget).is(':contains("win")') )
  1826. {
  1827. if( stopBeforeRedirect() )
  1828. {
  1829. return;
  1830. }
  1831. if( iHaveEnoughMoni() )
  1832. {
  1833. console.log('You WON! But don\'t be greedy. Restarting!');
  1834. reset();
  1835. if( stopped )
  1836. {
  1837. stopped = false;
  1838. return false;
  1839. }
  1840. }
  1841. else
  1842. {
  1843. console.log('You WON! Betting again');
  1844. }
  1845. setTimeout(function(){
  1846. $loButton.trigger('click');
  1847. }, getRandomWait());
  1848. }
  1849. });startGame()

comments powered by Disqus