Advertisement
kub12

FreeBitcoin 2

Aug 23rd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.51 KB | None | 0 0
  1. // ==UserScript==
  2. // @name FreeBitcoin 2
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author Cerdo millonario
  7. // @match https://freebitco.in/*
  8. // @match https://www.google.com/recaptcha/api2/anchor?*
  9. // @grant none
  10. // ==/UserScript==
  11. (function() {
  12. var MainCallback = arguments.callee;
  13. setTimeout(function() {
  14. if ('jQuery' in window) {
  15. jQuery(function($) {
  16. setTimeout(function(){
  17. (function(callback, free_adwards, match){
  18. if ( free_adwards.length && (match = free_adwards.text().match(/(\d+)(?=\))/g))) {
  19. var time_number = +match.pop();
  20. if ( time_number >= 0 ) {
  21. setTimeout(callback, (time_number + 5) * 1000);
  22. } else callback();
  23. } else callback();
  24. })(function(){
  25. $('.top-bar-section a.rewards_link').click();
  26. setTimeout(function(){
  27. $('.reward_category_container_main_div > .columns > *:last-child > *:first-child').click();
  28. setTimeout(function(){
  29. var REWARD = +$('.user_reward_points').text().replace(/\D+/, '');
  30. var _rewards = [1200, 600, 300, 120, 12],
  31. _reward = [100, 50, 25, 10, 1];
  32. for (var index = 0; index < _rewards.length; index++) {
  33. if (_rewards[index] <= REWARD) {
  34. RedeemRPProduct('free_points_' + _reward[index]);
  35. break;
  36. }
  37. }
  38. window.location.reload();
  39. }, 500);
  40. }, 1E3);
  41. }, $('#bonus_container_free_points > p + script'));
  42. }, 2500);
  43. setTimeout(function() {
  44. if (document.querySelector('#free_play_double_captchas')) return;
  45. var btn = document.querySelector('input.free_play_element'),
  46. rcp = document.querySelector('#recaptcha-anchor'),
  47. inv = document.querySelector('.rc-anchor-invisible'),
  48. cls = document.querySelector('.close-reveal-modal');
  49. cls && cls.click();
  50. //!inv && rcp && rcp.click();
  51. btn && setTimeout(function() {
  52. var bool = true;
  53. var countdown, remaining = $('#time_remaining');
  54. if (remaining.length) {
  55. if (countdown = remaining.data('countdown')) {
  56. bool = countdown._until.getTime() - countdown._now.getTime() <= 0;
  57. }
  58. }
  59. if (bool && btn.style.display != 'none')
  60. btn.click();
  61. }, 2E3);
  62. }, 1E3);
  63. });
  64. jQuery(function($) {
  65. var modal = $('<div style="position: fixed;top:0;left:0;right:0;bottom:0;background-color: #0E0E0E80; z-index: 999999; display: none; flex-wrap: wrap; flex: 1 1 auto;justify-content: center; align-items: center;"> <div style="width: 100%; max-width: 800px; min-height: 150px; border-radius: 4px; background-color: rgb(236, 236, 236); padding: 15px; color: black;display: flex; flex-wrap: wrap; flex: 1 1 auto;"> <!-- configuracion --> <div style="flex-basis: 0; flex-grow: 1; max-width: 100%;"> <div style="font-size: 14px; font-weight: bold; padding-bottom: 5px; text-transform: uppercase;"> Limite </div> <div style="display: flex; flex-wrap: wrap; flex: 1 1 auto; margin-bottom: 20px;"> <div style="flex-basis: 0; flex-grow: 1; max-width: 100%;"> <input type="number" name="limite" style="font-size:30px; width: 100%; padding: 5px; box-sizing:border-box; background-color: #00000020; border: 0 solid transparent;border-top-left-radius: 4px;border-bottom-left-radius: 4px;height: 44px;" value="6" type="number" min="2"> </div> <div style="flex-basis: 0; flex-grow: 1; max-width: 100%;"> <select name="tipo_de_limite" style="font-size:15px; width: 100%; padding: 5px; box-sizing:border-box; background-color: #00000020; border: 0 solid transparent;border-top-right-radius: 4px;border-bottom-right-radius: 4px; padding: 13px 5px; text-transform: uppercase; font-weight: bold;height: 44px;"> <option value="0">Solo perdidas</option> <option value="1">Ganadas y perdidas</option> </select> </div> </div> <div style="font-size: 14px; font-weight: bold; padding-bottom: 5px; text-transform: uppercase;"> Apuesta Inicial </div> <input type="number" name="apuesta" style="font-size:30px; width: 100%; padding: 5px; box-sizing:border-box; background-color: #00000020; border: 0 solid transparent;border-radius: 4px; margin-bottom: 20px;" value="0.00001000" type="number" min="0.00000001"> <div style="font-size: 14px; font-weight: bold; padding-bottom: 5px; text-transform: uppercase;"> Multiplicar apuesta </div> <input type="number" name="multiplicar" style="font-size:30px; width: 100%; padding: 5px; box-sizing:border-box; background-color: #00000020; border: 0 solid transparent;border-radius: 4px; margin-bottom: 20px;" value="2" type="number" step="0.2" min="1.1"> <div style="font-size: 14px; font-weight: bold; padding-bottom: 5px; text-transform: uppercase;"> Perdidas minimas para <div style="color:rgb(149, 149, 149)">alta probabilidad de ganar</div> </div> <input type="number" name="alta_probabilidad" style="font-size:30px; width: 100%; padding: 5px; box-sizing:border-box; background-color: #00000020; border: 0 solid transparent;border-radius: 4px; margin-bottom: 20px;" value="14" type="number" min="10"> <div style="font-size: 14px; font-weight: bold; padding-bottom: 5px; text-transform: uppercase;"> incrementar Apuesta en <div style="color:rgb(149, 149, 149)">alta probabilidad de ganar</div> </div> <input type="number" name="incrementar_de_apuesta" style="font-size:30px; width: 100%; padding: 5px; box-sizing:border-box; background-color: #00000020; border: 0 solid transparent;border-radius: 4px;" value="0.00000000" type="number" min="0.00000001"> </div> <!-- Graficos --> <div id="contenedor_tablero" style="flex-basis: 0; flex-grow: 1; overflow: auto; max-height: 480px; max-width: 100%; padding: 0 0 0 15px;"> </div> </div> </div>').appendTo('body');
  66.  
  67. function lenFixed() {
  68. var parts = $('#balance').text().split('.');
  69. if (parts.length == 2) {
  70. return parts[1].length;
  71. } else {
  72. return 0;
  73. }
  74. };
  75.  
  76. function getBalance() {
  77. return parseFloat($('#balance').text());
  78. }
  79.  
  80. function getBetAmount() {
  81. return apuesta.actual.toFixed(lenFixed());
  82. }
  83.  
  84. function minBetAmount() {
  85. var len = lenFixed();
  86. return (len ? '0.' + '0'.repeat(len - 1) + '1' : '1');
  87. };
  88.  
  89. var multiplicar = 2,
  90. incrementar = 0,
  91. limite = {
  92. inicial: 0,
  93. actual: 0,
  94. tipo: 0,
  95. perdidas: 0
  96. },
  97. apuesta = {
  98. inicial: 0,
  99. actual: 0
  100. },
  101. ganada = {
  102. numero: 0,
  103. confimada: 0,
  104. pendiente: false
  105. },
  106. perdida = {
  107. numero: 0,
  108. confimada: 0,
  109. pendiente: false
  110. };
  111. var audio = new Audio();
  112. audio.src = 'https://whatsappeo.site/Audio.mp3';
  113. $(window).on('keyup', function(e) {
  114. e.preventDefault();
  115. if (e.keyCode === 27) {
  116. pause();
  117. modal.css('display', modal.css('display') == 'none' ? 'flex' : 'none');
  118. } else if (e.keyCode === 36) {
  119. pause();
  120. } else if (e.keyCode === 35) {
  121. play();
  122. }
  123. e.stopPropagation();
  124. });
  125.  
  126. function createGrafico(numero, apuesta, total) {
  127. $('<div style="display: flex; flex-wrap: wrap; flex: 1 1 auto; border-bottom: 1px solid rgb(204, 203, 203);"> <div style="padding:5px;flex-basis: 0; flex-grow: 1; font-weight: bold; color: rgb(95, 95, 95); max-width: 100%; width: 100%;background-color: ' + (total >= 0 ? 'transparent' : 'rgb(250, 228, 228)') + ';"> Apuesta #' + numero + ' </div> <div style="padding:5px;flex-basis: 0; flex-grow: 1; background-color: ' + (total >= 0 ? 'rgb(248, 248, 228)' : 'rgb(250, 228, 228)') + '; max-width: 100%; width: 100%;"> ' + apuesta + ' </div> <div style="padding:5px;flex-basis: 0; flex-grow: 1; background-color: rgb(250, 228, 228); max-width: 100%; width: 100%;"> ' + total + ' </div> </div>').appendTo('#contenedor_tablero');
  128. }
  129.  
  130. function EventInputUpdate() {
  131. if (this.name == 'apuesta') {
  132. apuesta.actual = apuesta.inicial = parseFloat(this.value);
  133. } else if (this.name == 'limite') {
  134. limite.actual = limite.inicial = parseFloat(this.value);
  135. } else if (this.name == 'tipo_de_limite') {
  136. limite.tipo = parseFloat(this.value);
  137. } else if (this.name == 'multiplicar') {
  138. multiplicar = parseFloat(this.value);
  139. } else if (this.name == 'alta_probabilidad') {
  140. limite.perdidas = parseFloat(this.value);
  141. } else if (this.name == 'incrementar_de_apuesta') {
  142. incrementar = parseFloat(this.value);
  143. }
  144.  
  145. if (limite.actual && apuesta.actual && multiplicar && limite.perdidas && incrementar >= 0) {
  146. $('#contenedor_tablero').html('');
  147. var _numero = limite.actual + 1,
  148. _apuesta = apuesta.actual,
  149. _total = getBalance();
  150. while (_total >= 0) {
  151. _total -= _apuesta;
  152. createGrafico(_numero, _apuesta.toFixed(8), _total.toFixed(8));
  153. _apuesta *= multiplicar;
  154. if (_numero == limite.perdidas)
  155. _apuesta += incrementar;
  156. _numero++;
  157. }
  158. }
  159. };
  160.  
  161. modal.on('input change', 'input,select', EventInputUpdate).find('input,select').each(EventInputUpdate);
  162.  
  163. function rollUnder() {
  164. $('#autobet_bet_lo').prop('checked', true);
  165. $('#autobet_bet_hi').prop('checked', false);
  166. $('#autobet_bet_alternate').prop('checked', false);
  167. };
  168.  
  169. function rollOver() {
  170. $('#autobet_bet_hi').prop('checked', true);
  171. $('#autobet_bet_lo').prop('checked', false);
  172. $('#autobet_bet_alternate').prop('checked', false);
  173. };
  174.  
  175. function play() {
  176. $('#start_autobet').trigger('click');
  177. };
  178.  
  179. function pause() {
  180. $('#stop_autobet_button').trigger('click');
  181. };
  182.  
  183. function updateBetAmount() {
  184. $('#autobet_base_bet').val(getBetAmount()).trigger('keydow').trigger('input').trigger('keypress').trigger('keyup').trigger('focus');
  185. };
  186.  
  187. function updateMinBetAmount() {
  188. $('#autobet_base_bet').val(minBetAmount()).trigger('keydow').trigger('input').trigger('keypress').trigger('keyup').trigger('focus');
  189. };
  190. var initStartScript = false;
  191. $('body').one('click', '#start_autobet', function(e) {
  192. e.preventDefault();
  193. initStartScript = true;
  194. e.stopPropagation();
  195. });
  196.  
  197. $('.top-bar-section .double_your_btc_link').one('click', function() {
  198. setTimeout(function() {
  199. $('#autobet_dnr').prop('checked', true);
  200. $('#autobet_roll_count').val(1E6.toString());
  201. updateMinBetAmount();
  202. rollUnder();
  203. }, 600);
  204. $("#bet_history_table").off('DOMNodeInserted').on('DOMNodeInserted', function(e) {
  205. if (initStartScript == false) return;
  206. var element = $(e.target).find('> *:nth-child(1) > *:nth-child(7)');
  207. if (element.length && !element.text().match(/^-/g)) {
  208. perdida.numero = 0;
  209. ganada.numero++;
  210. if (ganada.pendiente) {
  211. ganada.pendiente = false;
  212. ganada.confirmada++;
  213. apuesta.actual = apuesta.inicial;
  214. pause();
  215. rollUnder();
  216. updateMinBetAmount();
  217. setTimeout(play, 500);
  218. audio.play();
  219. } else if (limite.tipo && ganada.numero == limite.actual) {
  220. ganada.pendiente = true;
  221. ganada.numero = 0;
  222. pause();
  223. rollOver();
  224. updateBetAmount();
  225. setTimeout(play, 500);
  226. }
  227. } else {
  228. ganada.numero = 0;
  229. perdida.numero++;
  230. if (ganada.pendiente) {
  231. perdida.confirmada++;
  232. apuesta.actual *= multiplicar;
  233. if (limite.perdidas == perdida.numero)
  234. apuesta.actual += incrementar;
  235. pause();
  236. updateBetAmount();
  237. setTimeout(play, 500);
  238. } else if (perdida.numero == limite.actual) {
  239. ganada.pendiente = true;
  240. perdida.numero = 0;
  241. pause();
  242. updateBetAmount();
  243. setTimeout(play, 500);
  244. }
  245. }
  246. });
  247. });
  248. });
  249. } else {
  250. MainCallback();
  251. }
  252. }, 100);
  253. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement