btc


SUBMITTED BY: sidhu131313

DATE: May 22, 2016, 11:56 a.m.

FORMAT: Text only

SIZE: 13.4 kB

HITS: 657

  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. // quick and dirty hack if you have very little bitcoins like 0.00000001
  31. function deexponentize(number){
  32. return number * 10000000;
  33. }
  34. function iHaveEnoughMoni(){
  35. var balance = deexponentize(parseFloat($('#balance').text()));
  36. var current = deexponentize($('#double_your_btc_stake').val());
  37. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  38. }
  39. function stopBeforeRedirect(){
  40. var minutes = parseInt($('title').text());
  41. if( minutes < stopBefore )
  42. {
  43. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  44. stopGame();
  45. return true;
  46. }
  47. return false;
  48. }
  49. // Unbind old shit
  50. $('#double_your_btc_bet_lose').unbind();
  51. $('#double_your_btc_bet_win').unbind();
  52. // Loser
  53. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  54. if( $(event.currentTarget).is(':contains("lose")') )
  55. {
  56. console.log('You LOST! Multiplying your bet and betting again.');
  57. multiply();
  58. setTimeout(function(){
  59. $loButton.trigger('click');
  60. }, getRandomWait());
  61. //$loButton.trigger('click');
  62. }
  63. });
  64. // Winner
  65. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  66. if( $(event.currentTarget).is(':contains("win")') )
  67. {
  68. if( stopBeforeRedirect() )
  69. {
  70. return;
  71. }
  72. if( iHaveEnoughMoni() )
  73. {
  74. console.log('You WON! But don\'t be greedy. Restarting!');
  75. reset();
  76. if( stopped )
  77. {
  78. stopped = false;
  79. return false;
  80. }
  81. }
  82. else
  83. {
  84. console.log('You WON! Betting again');
  85. }
  86. setTimeout(function(){
  87. $loButton.trigger('click');
  88. }, getRandomWait());
  89. }
  90. });startGame()var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  91. stopPercentage = 0.001,
  92. maxWait = 777,
  93. stopped = false, // debugging
  94. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  95. var $loButton = $('#double_your_btc_bet_lo_button'),
  96. $hiButton = $('#double_your_btc_bet_hi_button');
  97. function multiply(){
  98. var current = $('#double_your_btc_stake').val();
  99. var multiply = (current * 2).toFixed(8);
  100. $('#double_your_btc_stake').val(multiply);
  101. }
  102. function getRandomWait(){
  103. var wait = Math.floor(Math.random() * maxWait ) + 100;
  104. console.log('Waiting for ' + wait + 'ms before next bet.');
  105. return wait ;
  106. }
  107. function startGame(){
  108. console.log('Game started!');
  109. reset();
  110. $loButton.trigger('click');
  111. }
  112. function stopGame(){
  113. console.log('Game will stop soon! Let me finish.');
  114. stopped = true;
  115. }
  116. function reset(){
  117. $('#double_your_btc_stake').val(startValue);
  118. }
  119. // quick and dirty hack if you have very little bitcoins like 0.00000001
  120. function deexponentize(number){
  121. return number * 10000000;
  122. }
  123. function iHaveEnoughMoni(){
  124. var balance = deexponentize(parseFloat($('#balance').text()));
  125. var current = deexponentize($('#double_your_btc_stake').val());
  126. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  127. }
  128. function stopBeforeRedirect(){
  129. var minutes = parseInt($('title').text());
  130. if( minutes < stopBefore )
  131. {
  132. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  133. stopGame();
  134. return true;
  135. }
  136. return false;
  137. }
  138. // Unbind old shit
  139. $('#double_your_btc_bet_lose').unbind();
  140. $('#double_your_btc_bet_win').unbind();
  141. // Loser
  142. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  143. if( $(event.currentTarget).is(':contains("lose")') )
  144. {
  145. console.log('You LOST! Multiplying your bet and betting again.');
  146. multiply();
  147. setTimeout(function(){
  148. $loButton.trigger('click');
  149. }, getRandomWait());
  150. //$loButton.trigger('click');
  151. }
  152. });
  153. // Winner
  154. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  155. if( $(event.currentTarget).is(':contains("win")') )
  156. {
  157. if( stopBeforeRedirect() )
  158. {
  159. return;
  160. }
  161. if( iHaveEnoughMoni() )
  162. {
  163. console.log('You WON! But don\'t be greedy. Restarting!');
  164. reset();
  165. if( stopped )
  166. {
  167. stopped = false;
  168. return false;
  169. }
  170. }
  171. else
  172. {
  173. console.log('You WON! Betting again');
  174. }
  175. setTimeout(function(){
  176. $loButton.trigger('click');
  177. }, getRandomWait());
  178. }
  179. });startGame()var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  180. stopPercentage = 0.001,
  181. maxWait = 777,
  182. stopped = false, // debugging
  183. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  184. var $loButton = $('#double_your_btc_bet_lo_button'),
  185. $hiButton = $('#double_your_btc_bet_hi_button');
  186. function multiply(){
  187. var current = $('#double_your_btc_stake').val();
  188. var multiply = (current * 2).toFixed(8);
  189. $('#double_your_btc_stake').val(multiply);
  190. }
  191. function getRandomWait(){
  192. var wait = Math.floor(Math.random() * maxWait ) + 100;
  193. console.log('Waiting for ' + wait + 'ms before next bet.');
  194. return wait ;
  195. }
  196. function startGame(){
  197. console.log('Game started!');
  198. reset();
  199. $loButton.trigger('click');
  200. }
  201. function stopGame(){
  202. console.log('Game will stop soon! Let me finish.');
  203. stopped = true;
  204. }
  205. function reset(){
  206. $('#double_your_btc_stake').val(startValue);
  207. }
  208. // quick and dirty hack if you have very little bitcoins like 0.00000001
  209. function deexponentize(number){
  210. return number * 10000000;
  211. }
  212. function iHaveEnoughMoni(){
  213. var balance = deexponentize(parseFloat($('#balance').text()));
  214. var current = deexponentize($('#double_your_btc_stake').val());
  215. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  216. }
  217. function stopBeforeRedirect(){
  218. var minutes = parseInt($('title').text());
  219. if( minutes < stopBefore )
  220. {
  221. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  222. stopGame();
  223. return true;
  224. }
  225. return false;
  226. }
  227. // Unbind old shit
  228. $('#double_your_btc_bet_lose').unbind();
  229. $('#double_your_btc_bet_win').unbind();
  230. // Loser
  231. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  232. if( $(event.currentTarget).is(':contains("lose")') )
  233. {
  234. console.log('You LOST! Multiplying your bet and betting again.');
  235. multiply();
  236. setTimeout(function(){
  237. $loButton.trigger('click');
  238. }, getRandomWait());
  239. //$loButton.trigger('click');
  240. }
  241. });
  242. // Winner
  243. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  244. if( $(event.currentTarget).is(':contains("win")') )
  245. {
  246. if( stopBeforeRedirect() )
  247. {
  248. return;
  249. }
  250. if( iHaveEnoughMoni() )
  251. {
  252. console.log('You WON! But don\'t be greedy. Restarting!');
  253. reset();
  254. if( stopped )
  255. {
  256. stopped = false;
  257. return false;
  258. }
  259. }
  260. else
  261. {
  262. console.log('You WON! Betting again');
  263. }
  264. setTimeout(function(){
  265. $loButton.trigger('click');
  266. }, getRandomWait());
  267. }
  268. });startGame()var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  269. stopPercentage = 0.001,
  270. maxWait = 777,
  271. stopped = false, // debugging
  272. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  273. var $loButton = $('#double_your_btc_bet_lo_button'),
  274. $hiButton = $('#double_your_btc_bet_hi_button');
  275. function multiply(){
  276. var current = $('#double_your_btc_stake').val();
  277. var multiply = (current * 2).toFixed(8);
  278. $('#double_your_btc_stake').val(multiply);
  279. }
  280. function getRandomWait(){
  281. var wait = Math.floor(Math.random() * maxWait ) + 100;
  282. console.log('Waiting for ' + wait + 'ms before next bet.');
  283. return wait ;
  284. }
  285. function startGame(){
  286. console.log('Game started!');
  287. reset();
  288. $loButton.trigger('click');
  289. }
  290. function stopGame(){
  291. console.log('Game will stop soon! Let me finish.');
  292. stopped = true;
  293. }
  294. function reset(){
  295. $('#double_your_btc_stake').val(startValue);
  296. }
  297. // quick and dirty hack if you have very little bitcoins like 0.00000001
  298. function deexponentize(number){
  299. return number * 10000000;
  300. }
  301. function iHaveEnoughMoni(){
  302. var balance = deexponentize(parseFloat($('#balance').text()));
  303. var current = deexponentize($('#double_your_btc_stake').val());
  304. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  305. }
  306. function stopBeforeRedirect(){
  307. var minutes = parseInt($('title').text());
  308. if( minutes < stopBefore )
  309. {
  310. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  311. stopGame();
  312. return true;
  313. }
  314. return false;
  315. }
  316. // Unbind old shit
  317. $('#double_your_btc_bet_lose').unbind();
  318. $('#double_your_btc_bet_win').unbind();
  319. // Loser
  320. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  321. if( $(event.currentTarget).is(':contains("lose")') )
  322. {
  323. console.log('You LOST! Multiplying your bet and betting again.');
  324. multiply();
  325. setTimeout(function(){
  326. $loButton.trigger('click');
  327. }, getRandomWait());
  328. //$loButton.trigger('click');
  329. }
  330. });
  331. // Winner
  332. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  333. if( $(event.currentTarget).is(':contains("win")') )
  334. {
  335. if( stopBeforeRedirect() )
  336. {
  337. return;
  338. }
  339. if( iHaveEnoughMoni() )
  340. {
  341. console.log('You WON! But don\'t be greedy. Restarting!');
  342. reset();
  343. if( stopped )
  344. {
  345. stopped = false;
  346. return false;
  347. }
  348. }
  349. else
  350. {
  351. console.log('You WON! Betting again');
  352. }
  353. setTimeout(function(){
  354. $loButton.trigger('click');
  355. }, getRandomWait());
  356. }
  357. });startGame()var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
  358. stopPercentage = 0.001,
  359. maxWait = 777,
  360. stopped = false, // debugging
  361. stopBefore = 1; // In minutes for timer before stopping redirect on webpage
  362. var $loButton = $('#double_your_btc_bet_lo_button'),
  363. $hiButton = $('#double_your_btc_bet_hi_button');
  364. function multiply(){
  365. var current = $('#double_your_btc_stake').val();
  366. var multiply = (current * 2).toFixed(8);
  367. $('#double_your_btc_stake').val(multiply);
  368. }
  369. function getRandomWait(){
  370. var wait = Math.floor(Math.random() * maxWait ) + 100;
  371. console.log('Waiting for ' + wait + 'ms before next bet.');
  372. return wait ;
  373. }
  374. function startGame(){
  375. console.log('Game started!');
  376. reset();
  377. $loButton.trigger('click');
  378. }
  379. function stopGame(){
  380. console.log('Game will stop soon! Let me finish.');
  381. stopped = true;
  382. }
  383. function reset(){
  384. $('#double_your_btc_stake').val(startValue);
  385. }
  386. // quick and dirty hack if you have very little bitcoins like 0.00000001
  387. function deexponentize(number){
  388. return number * 10000000;
  389. }
  390. function iHaveEnoughMoni(){
  391. var balance = deexponentize(parseFloat($('#balance').text()));
  392. var current = deexponentize($('#double_your_btc_stake').val());
  393. return ((balance)*2/100) * (current*2) > stopPercentage/100;
  394. }
  395. function stopBeforeRedirect(){
  396. var minutes = parseInt($('title').text());
  397. if( minutes < stopBefore )
  398. {
  399. console.log('Approaching redirect! Stop the game so we don\'t get redirected while loosing.');
  400. stopGame();
  401. return true;
  402. }
  403. return false;
  404. }
  405. // Unbind old shit
  406. $('#double_your_btc_bet_lose').unbind();
  407. $('#double_your_btc_bet_win').unbind();
  408. // Loser
  409. $('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(event){
  410. if( $(event.currentTarget).is(':contains("lose")') )
  411. {
  412. console.log('You LOST! Multiplying your bet and betting again.');
  413. multiply();
  414. setTimeout(function(){
  415. $loButton.trigger('click');
  416. }, getRandomWait());
  417. //$loButton.trigger('click');
  418. }
  419. });
  420. // Winner
  421. $('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(event){
  422. if( $(event.currentTarget).is(':contains("win")') )
  423. {
  424. if( stopBeforeRedirect() )
  425. {
  426. return;
  427. }
  428. if( iHaveEnoughMoni() )
  429. {
  430. console.log('You WON! But don\'t be greedy. Restarting!');
  431. reset();
  432. if( stopped )
  433. {
  434. stopped = false;
  435. return false;
  436. }
  437. }
  438. else
  439. {
  440. console.log('You WON! Betting again');
  441. }
  442. setTimeout(function(){
  443. $loButton.trigger('click');
  444. }, getRandomWait());
  445. }
  446. });startGame()

comments powered by Disqus