bitcoin autobet script


SUBMITTED BY: tasaoirse

DATE: Jan. 13, 2016, 7:50 a.m.

FORMAT: Text only

SIZE: 6.8 kB

HITS: 362

  1. // @Combination of PrimeDice 3 scripts Compiled by DaNksta
  2. // @Contains:
  3. // @PDDark Skin by Paradocks
  4. // @Faucet Timer (draggable and can show/hide with CTRL + ALT + Z)
  5. // @New BASE bet button - Sets your bet amount to whatever you want. Set this by clicking on the dice icon.
  6. // @REFRESH BALANCE (bets 0.00000000) by clicking on the B next to your balance.
  7. // @Add A new button near MAX, 1/2, and 2x buttons. Set its value by clicking the two dice logo above them.
  8. var basebet = 0.00000001;
  9. basebet = basebet.toFixed(8);
  10. $('.icon--dice').click(function() {
  11. basebet = prompt("What would you like your basebet to be?", "0.00000000");
  12. });
  13. $('<button id="basebet" class="btn btn--submit grid__item one-third" >Base</button>').insertAfter('div button:nth(3)');
  14. $('#basebet').click(function() {
  15. $('.hero__main input:first').val(basebet).change();
  16. });
  17. $('.icon--balance').attr('data-ember-action', '');
  18. $('.icon--balance').click(function() {
  19. $('.hero__main input:first').val(0).change();
  20. setTimeout(function() {
  21. $('#spinner').click();
  22. }, 500);
  23. });
  24. // ==UserScript==
  25. // @name PD3 Dark
  26. // @version 0.1
  27. // @description enter something useful
  28. // @author paradocks
  29. // ==/UserScript==
  30. var css = '',
  31. // Change the URL below in quotes for a custom background image.
  32. backgroundurl = 'http://cdn.wonderfulengineering.com/wp-content/uploads/2014/01/HD-backgrounds-3.jpg';
  33. // CSS
  34. css += '<style>';
  35. css += 'header, .tabs, .slideout__content__inside, .chat__you *, .btn, .hero__main, .rollrow-dark, .rollbox--prominent, .chat__input-holder{background-color:#121212 !important;color:#ccc !important;}';
  36. css += 'time{color:#ccc !important;}';
  37. css += 'div.tabs > div > div.live-data-header > div{background-color:#111111;border-top:1px solid #777; border-bottom:1px solid #777;}';
  38. css += '.btn,.btn--secondary.btn--active,.btn--secondary.btn--selector, .btn--submit:last-child{border:1px solid #777 !important;background-color:#242130 !important;color:#ccc!important;}';
  39. css += '.btn:hover,.btn--secondary.btn--active:hover,.btn--secondary.btn--selector:hover{border:1px solid #777 !important;background-color:#322E47 !important;color:#ccc!important;}';
  40. css += '.hero{margin-bottom:0px;background:url("'+ backgroundurl + '") no-repeat 50% 50%;}';
  41. css += '.slideout *{color:#ccc;}';
  42. css += '.tabs{padding-top:20px;border-top:1px solid #777 !important;}';
  43. css += 'header{border: 1px solid #777 !important;border-left:none !important;border-right:none !important;}';
  44. css += '.rollrow-thin, .rollrow-dark .chat__input-holder {background-color:#212121;}';
  45. css += '.input{background-color:#323232 !important;color:#ccc;}';
  46. css += '.action-open-slideout{background-color:#121212 !important;}';
  47. css += 'span.admin{color:red !important}';
  48. // Uncomment (remove // from two lines below) to Remove Site Header & Max Bet Button
  49. // css += '.theme-switch, .header-main, .hero button:nth-child(3) {display:none;}';
  50. // css += '.slideout, body{padding-top:0px !important; }';
  51. css += '</style>';
  52. $(css).appendTo('head');
  53. // PD3Dark End
  54. /*
  55. // PD3 Faucet Timer
  56. // Created by Serlite
  57. //
  58. // (Hide using Ctrl + Alt + Z)
  59. */
  60. var sinceLastClaim = 0;
  61. var $fTimer = null;
  62. var $fTimerWrapper = null;
  63. var fIntervalRef = null;
  64. var fTimerHider = {17: false, 18: false, 90:false};
  65. initializeTimer();
  66. // Creates GUI and begins timer countdown
  67. function initializeTimer(){
  68. if (!window.jQuery.ui){
  69. $("body").append("<script src='//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.js'></script>");
  70. }
  71. // Delay to allow jQuery UI to load
  72. setTimeout(function(){
  73. $("body").append("<div class='faucet-timer' style='background:#FFF; border:2px solid #b4b9cd; position:fixed; z-index:9999; top:100px; left:200px; color:#6d738c; padding:15px; font-size:1em'><p style='margin-bottom:10px;'>Since last claim:</p><p><span class='time-counter' style='font-weight:bold;'>00:00</span></p></div>");
  74. // Caching reference
  75. $fTimer = $(".faucet-timer .time-counter");
  76. $fTimerWrapper = $(".faucet-timer");
  77. $fTimerWrapper.draggable();
  78. fIntervalRef = setInterval(updateFaucetTime, 1000);
  79. // Reset timer if claim button is pressed
  80. $(document).on("click", "button.btn.btn--primary.btn--huge.btn--block", function(){
  81. if ($(this).text() == "Claim"){
  82. sinceLastClaim = 0;
  83. writeFaucetTime(formattedFaucetTime());
  84. setTimerCol();
  85. // Reset interval ensure precision
  86. clearInterval(fIntervalRef);
  87. fIntervalRef = setInterval(updateFaucetTime, 1000);
  88. }
  89. });
  90. // Register key down in combo
  91. $(document).keydown(function(e){
  92. if (e.keyCode in fTimerHider){
  93. fTimerHider[e.keyCode] = true;
  94. // Ctrl + Alt + Z, toggle visible
  95. if (fTimerHider[17] && fTimerHider[18] && fTimerHider[90]){
  96. $fTimerWrapper.toggle();
  97. }
  98. }
  99. });
  100. // Register key up in combo
  101. $(document).keyup(function(e){
  102. if (e.keyCode in fTimerHider){
  103. fTimerHider[e.keyCode] = false;
  104. }
  105. });
  106. }, 800);
  107. }
  108. // Increment timer value
  109. function updateFaucetTime(){
  110. sinceLastClaim++;
  111. writeFaucetTime(formattedFaucetTime());
  112. setTimerCol();
  113. }
  114. // Format time into more readable string
  115. function formattedFaucetTime(){
  116. var minutes = Math.floor(sinceLastClaim/60).toString();
  117. var seconds = (sinceLastClaim%60).toString();
  118. // Adding leading zeroes
  119. if (minutes.length == 1){
  120. minutes = "0" + minutes;
  121. }
  122. if (seconds.length == 1){
  123. seconds = "0" + seconds;
  124. }
  125. return (minutes + ":" + seconds);
  126. }
  127. // Change timer text
  128. function writeFaucetTime(faucetTime){
  129. $fTimer.text(faucetTime);
  130. }
  131. // Change colour according to time
  132. function setTimerCol(){
  133. if (sinceLastClaim >= 180){
  134. $fTimer.css("color","#5fb365");
  135. }
  136. else{
  137. $fTimer.css("color","#6d738c");
  138. }
  139. }

comments powered by Disqus