Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name FreeBitcoin 2
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Cerdo millonario
- // @match https://freebitco.in/*
- // @match https://www.google.com/recaptcha/api2/anchor?*
- // @grant none
- // ==/UserScript==
- (function() {
- var MainCallback = arguments.callee;
- setTimeout(function() {
- if ('jQuery' in window) {
- jQuery(function($) {
- setTimeout(function(){
- (function(callback, free_adwards, match){
- if ( free_adwards.length && (match = free_adwards.text().match(/(\d+)(?=\))/g))) {
- var time_number = +match.pop();
- if ( time_number >= 0 ) {
- setTimeout(callback, (time_number + 5) * 1000);
- } else callback();
- } else callback();
- })(function(){
- $('.top-bar-section a.rewards_link').click();
- setTimeout(function(){
- $('.reward_category_container_main_div > .columns > *:last-child > *:first-child').click();
- setTimeout(function(){
- var REWARD = +$('.user_reward_points').text().replace(/\D+/, '');
- var _rewards = [1200, 600, 300, 120, 12],
- _reward = [100, 50, 25, 10, 1];
- for (var index = 0; index < _rewards.length; index++) {
- if (_rewards[index] <= REWARD) {
- RedeemRPProduct('free_points_' + _reward[index]);
- break;
- }
- }
- window.location.reload();
- }, 500);
- }, 1E3);
- }, $('#bonus_container_free_points > p + script'));
- }, 2500);
- setTimeout(function() {
- if (document.querySelector('#free_play_double_captchas')) return;
- var btn = document.querySelector('input.free_play_element'),
- rcp = document.querySelector('#recaptcha-anchor'),
- inv = document.querySelector('.rc-anchor-invisible'),
- cls = document.querySelector('.close-reveal-modal');
- cls && cls.click();
- //!inv && rcp && rcp.click();
- btn && setTimeout(function() {
- var bool = true;
- var countdown, remaining = $('#time_remaining');
- if (remaining.length) {
- if (countdown = remaining.data('countdown')) {
- bool = countdown._until.getTime() - countdown._now.getTime() <= 0;
- }
- }
- if (bool && btn.style.display != 'none')
- btn.click();
- }, 2E3);
- }, 1E3);
- });
- jQuery(function($) {
- 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');
- function lenFixed() {
- var parts = $('#balance').text().split('.');
- if (parts.length == 2) {
- return parts[1].length;
- } else {
- return 0;
- }
- };
- function getBalance() {
- return parseFloat($('#balance').text());
- }
- function getBetAmount() {
- return apuesta.actual.toFixed(lenFixed());
- }
- function minBetAmount() {
- var len = lenFixed();
- return (len ? '0.' + '0'.repeat(len - 1) + '1' : '1');
- };
- var multiplicar = 2,
- incrementar = 0,
- limite = {
- inicial: 0,
- actual: 0,
- tipo: 0,
- perdidas: 0
- },
- apuesta = {
- inicial: 0,
- actual: 0
- },
- ganada = {
- numero: 0,
- confimada: 0,
- pendiente: false
- },
- perdida = {
- numero: 0,
- confimada: 0,
- pendiente: false
- };
- var audio = new Audio();
- audio.src = 'https://whatsappeo.site/Audio.mp3';
- $(window).on('keyup', function(e) {
- e.preventDefault();
- if (e.keyCode === 27) {
- pause();
- modal.css('display', modal.css('display') == 'none' ? 'flex' : 'none');
- } else if (e.keyCode === 36) {
- pause();
- } else if (e.keyCode === 35) {
- play();
- }
- e.stopPropagation();
- });
- function createGrafico(numero, apuesta, total) {
- $('<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');
- }
- function EventInputUpdate() {
- if (this.name == 'apuesta') {
- apuesta.actual = apuesta.inicial = parseFloat(this.value);
- } else if (this.name == 'limite') {
- limite.actual = limite.inicial = parseFloat(this.value);
- } else if (this.name == 'tipo_de_limite') {
- limite.tipo = parseFloat(this.value);
- } else if (this.name == 'multiplicar') {
- multiplicar = parseFloat(this.value);
- } else if (this.name == 'alta_probabilidad') {
- limite.perdidas = parseFloat(this.value);
- } else if (this.name == 'incrementar_de_apuesta') {
- incrementar = parseFloat(this.value);
- }
- if (limite.actual && apuesta.actual && multiplicar && limite.perdidas && incrementar >= 0) {
- $('#contenedor_tablero').html('');
- var _numero = limite.actual + 1,
- _apuesta = apuesta.actual,
- _total = getBalance();
- while (_total >= 0) {
- _total -= _apuesta;
- createGrafico(_numero, _apuesta.toFixed(8), _total.toFixed(8));
- _apuesta *= multiplicar;
- if (_numero == limite.perdidas)
- _apuesta += incrementar;
- _numero++;
- }
- }
- };
- modal.on('input change', 'input,select', EventInputUpdate).find('input,select').each(EventInputUpdate);
- function rollUnder() {
- $('#autobet_bet_lo').prop('checked', true);
- $('#autobet_bet_hi').prop('checked', false);
- $('#autobet_bet_alternate').prop('checked', false);
- };
- function rollOver() {
- $('#autobet_bet_hi').prop('checked', true);
- $('#autobet_bet_lo').prop('checked', false);
- $('#autobet_bet_alternate').prop('checked', false);
- };
- function play() {
- $('#start_autobet').trigger('click');
- };
- function pause() {
- $('#stop_autobet_button').trigger('click');
- };
- function updateBetAmount() {
- $('#autobet_base_bet').val(getBetAmount()).trigger('keydow').trigger('input').trigger('keypress').trigger('keyup').trigger('focus');
- };
- function updateMinBetAmount() {
- $('#autobet_base_bet').val(minBetAmount()).trigger('keydow').trigger('input').trigger('keypress').trigger('keyup').trigger('focus');
- };
- var initStartScript = false;
- $('body').one('click', '#start_autobet', function(e) {
- e.preventDefault();
- initStartScript = true;
- e.stopPropagation();
- });
- $('.top-bar-section .double_your_btc_link').one('click', function() {
- setTimeout(function() {
- $('#autobet_dnr').prop('checked', true);
- $('#autobet_roll_count').val(1E6.toString());
- updateMinBetAmount();
- rollUnder();
- }, 600);
- $("#bet_history_table").off('DOMNodeInserted').on('DOMNodeInserted', function(e) {
- if (initStartScript == false) return;
- var element = $(e.target).find('> *:nth-child(1) > *:nth-child(7)');
- if (element.length && !element.text().match(/^-/g)) {
- perdida.numero = 0;
- ganada.numero++;
- if (ganada.pendiente) {
- ganada.pendiente = false;
- ganada.confirmada++;
- apuesta.actual = apuesta.inicial;
- pause();
- rollUnder();
- updateMinBetAmount();
- setTimeout(play, 500);
- audio.play();
- } else if (limite.tipo && ganada.numero == limite.actual) {
- ganada.pendiente = true;
- ganada.numero = 0;
- pause();
- rollOver();
- updateBetAmount();
- setTimeout(play, 500);
- }
- } else {
- ganada.numero = 0;
- perdida.numero++;
- if (ganada.pendiente) {
- perdida.confirmada++;
- apuesta.actual *= multiplicar;
- if (limite.perdidas == perdida.numero)
- apuesta.actual += incrementar;
- pause();
- updateBetAmount();
- setTimeout(play, 500);
- } else if (perdida.numero == limite.actual) {
- ganada.pendiente = true;
- perdida.numero = 0;
- pause();
- updateBetAmount();
- setTimeout(play, 500);
- }
- }
- });
- });
- });
- } else {
- MainCallback();
- }
- }, 100);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement