0% found this document useful (0 votes)
82 views7 pages

Freebitco.in Script for Gamers

1. The document describes a userscript for the website freebitco.in that automates various activities like free rolls, buying rewards, playing multiplier games, and buying lottery tickets. 2. It contains configuration variables to turn these features on/off and set parameters like reward spending amounts. 3. The script monitors the page for updates, calculates time values, and calls functions in a defined order to perform the automated activities based on the configuration and timing.

Uploaded by

Thomas Williams
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views7 pages

Freebitco.in Script for Gamers

1. The document describes a userscript for the website freebitco.in that automates various activities like free rolls, buying rewards, playing multiplier games, and buying lottery tickets. 2. It contains configuration variables to turn these features on/off and set parameters like reward spending amounts. 3. The script monitors the page for updates, calculates time values, and calls functions in a defined order to perform the automated activities based on the configuration and timing.

Uploaded by

Thomas Williams
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

// ==UserScript==

// @name [Link] - Free Roll (no captcha) - Rewards - 1000% - Multiply


- Lottery - Human Simulation
// @description OLD PROJECT. Not mantained. 1. Timed Free Roll 2. Top-down config
3. Rewards RP 4. Bonus 1000% 5. Multiply game 6. Lottery tickets 7. Human
Simulation 8. Slower in the night 9. Status console - made by dany-veneno in 2018
for private use, published in 2020.
// @author dany-veneno
// @icon [Link]
// @match [Link]
// @grant none
// @create 2018-05-28
// @lastmodified 2020-05-25
// @version 1.7
// @namespace [Link]
// @require [Link]
// @license NTP
// @supportURL [Link]
// @home-url [Link]
// @home-url2 [Link]
// @homepageURL [Link]
// @copyright 2018-2020, dany-veneno

// @note 2020-05-25-V.1.7 Added logging && changed timings && verifying


all good && faster on RPActive
// ==/UserScript==

////////////
// CONFIG //
////////////
// >>>>>>>>>>>>>> //

var MULTIPLY = false; //decide if play Multiply games or not ***It's a doubling
technique. Play at your risk *** ***When true, it's played randomly***
var MAX_ROLLS_AT_MULTIPLY = 1000; //how many rolls in multiply.
var REWARDS = true; //decide if auto buy rewards, or not, incrementally. ***When
true, it will activate RP promotions***
var LOTTERY = false; //decide if auto buy lottery tickets, or not. ***When true, It
will randomly buy lottery tickets, # between 4000 and 7000***
var LOGGING = 5; //0 is no messages, 5 is debug
// <<<<<<<<<<<<<< //

// System Variables //
// >>>>>>>>>>>>>>>> //
var css_reset='font-weight: reset; color:reset';
var css_bold='font-weight:bold;';
// <<<<<<<<<<<<<<<< //

(function() {
'use strict';

var points = {};


var count_min = 15;
var rand = 0;
var totJack = getCookie("totJack");
var t;

//Buy lottery ticket random


if( Boolean(LOTTERY)){
rand=random(800,4000);
if(parseInt($('#balance').text().split(".")[1])>rand) {
$('lottery_link hide_menu').click();
setTimeout(function(){ $
('#lottery_tickets_purchase_count').val(rand);},random(4000,7000));
}else{
$('#lottery_tickets_purchase_count').val(parseInt($
('#balance').text().split(".")[1]));
}
if (LOGGING > 2) [Link]("Buy "+ parseInt($
('#balance').text().split(".")[1]) + " lottery tickets");
setTimeout(function(){ $
('#purchase_lottery_tickets_button').click()},random(8000,20000));
}

// Reward function call the roll function, that call the multiply function.
var reward = {};
[Link] = function() {
[Link] = parseInt($('.user_reward_points').text().replace(',',""));
[Link] = {};
if ($("#bonus_container_free_points").length != 0) {
[Link] = $('#bonus_span_free_points').text();
[Link] = parseInt([Link](":")[0]);
[Link] = parseInt([Link](":")[1]);
[Link] = parseInt([Link](":")[2]);
[Link] = [Link] * 3600 +
[Link] * 60 + [Link];
} else [Link] = 0;

if (LOGGING > 0) [Link]("Bonus Time: "+[Link]+" --


Reward Points: "+[Link]);
if ([Link] !== 0) {
if (LOGGING > 3) [Link]("Promo RP is active");
setTimeout(function(){ freeRoll(); }, 300);
} else {
t=missingTime();
if (Boolean(REWARDS) && t[0]<10) {
$('.rewards_link').not('.hide_menu').click();
if ([Link] < 12) {
if (LOGGING > 2) [Link]("No enough points to buy bonus.
Less then 12. Waiting for points in next rolls");
}
else if ([Link] < 120) {
if (LOGGING > 2) [Link]("waiting for points 60");
setTimeout(function()
{ RedeemRPProduct('free_points_1')},random(2000,4000));
}
else if ([Link] < 600) {
if (LOGGING > 2) [Link]("waiting for points 120");
setTimeout(function()
{ RedeemRPProduct('free_points_10')},random(2000,4000));
}
else if ([Link] < 1200) {
if (LOGGING > 2) [Link]("waiting for points 600");
setTimeout(function()
{ RedeemRPProduct('free_points_50')},random(2000,4000));
}
else {
setTimeout(function()
{ RedeemRPProduct('free_points_100')},random(2000,4000));
}
if ($('#bonus_span_fp_bonus').length === 0)
if ([Link] >= 4600)
setTimeout(function()
{ RedeemRPProduct('fp_bonus_1000')},random(5000,7000));
//Back to the main page
setTimeout(function(){ $
('.free_play_link').not('.hide_menu').click(); }, random(8000,10000));
} else {
//getting colors
var c1 = 'red'; var c2 = 'red'
var _rewards = true;
var _min = 10;
if (Boolean(REWARDS) == Boolean(_rewards)) c1 = 'green';
if (t[0] < _min ) c2 = 'green';
if (LOGGING > 3) [Link]('Not buying RPBonuses: Setting
Variable is: '+'%c'+Boolean(REWARDS)+' '+' %c('+Boolean(_rewards)+') '+'%c and
missing minutes are: '+'%c '+t[0]+''+' %c(<'+_min+')', 'color:'+c1, 'color:reset;
font-weight:bold', 'font-weight: reset', 'color:'+c2, 'color:reset; font-
weight:bold');
}
// Call the freeRoll
setTimeout(function(){ freeRoll(); }, 6100);
}
};

//Save distance from last 8888 on cookie to check when to play Jackpot
$('#previous_roll').on('DOMSubtreeModified', function(){
var rolled = $('#previous_roll').html();
if (rolled > 0 && rolled <= 10000 && rolled != 8888){
//[Link]('new value '+ rolled);
totJack++;
setCookie("totJack", totJack, "365");
setCookie("prevNum", rolled, "365");
//[Link]([Link]);
} else if (rolled == 8888) {
setCookie("totJack", 0, "365");
setCookie("prevNum", rolled, "365");
if (LOGGING > 0) [Link]("************** 8888 Jackpot!
**************");
}
});

// Close the reveals mode


closePopupInterval($('.close-reveal-modal'));
closePopupInterval($('.pushpad_deny_button'));
closePopupInterval($("[id^='hide_rp_promo']"));

//Show elapsed time every 10 min.


setInterval(function(){
var t=missingTime();
var date = new Date();
var dateTimeFormat = new [Link]('en', { year: 'numeric',
month: 'short', day: '2-digit', hour: 'numeric', minute: 'numeric', hour12: 'false'
});
var [{ value: month },,{ value: day },,{ value: year },,{ value: hour },,
{ value: minute }] = dateTimeFormat .formatToParts(date );
var ca='red'; var cb='red'; var cc='red'; var css='font-weight: bold;
color:';
var c1='purple'; var c2='olive';
var c3='brown'; var c4='teal';
if (LOGGING > 0) [Link](">>>>>>>>>>%c Time: "+hour+":"+minute+""+"%c
Status:", css_bold, css_bold+'color:'+c1);
//Rewards and multiply infos and colors
if (Boolean(REWARDS)) ca = 'green'; if (Boolean(MULTIPLY)) cb='green'; if
(Boolean(LOTTERY)) cc='green';
var cssa='font-weight: bold; color:'+ca;
var cssb='font-weight: bold; color:'+cb;
var cssc='font-weight: bold; color:'+cc;
if (LOGGING > 0) [Link](">>>>>>>>>> Buying Rewards:
"+"%c"+Boolean(REWARDS)+""+"%c; Playing Multiply: "+"%c"+Boolean(MULTIPLY)+""+"%c;
Buying Lottery: "+"%c"+Boolean(LOTTERY), cssa, css_reset,cssb, css_reset, cssc);
// End rewards and multiply

//[Link](">>>>>>>>>> Elapsed time from last page reload:"+" %c" +


count_min + " minutes.",css_bold+'color:'+c1);
if (LOGGING > 0) [Link](">>>>>>>>>> Missing "+"%c"+t[0]+" min "+t[1]+"
sec"+"%c for next roll",css_bold+"color:"+c1,css_reset);

// Free Roll btc Winnings via script


var tot_btc_winning_rolling = getCookie('tot_btc_winning_rolling');
if (LOGGING > 0) [Link](">>>>>>>>>> BTC won with script:
"+"%c"+tot_btc_winning_rolling, css_bold+'color:'+c4);
if (LOGGING > 0) [Link](">>>>>>>>>> Rolls from last 8888:
"+"%c"+totJack, css_bold+'color:'+c2);

count_min = count_min + 10;


}, 600000);

// The reward function call the others functions, cause the order is: buy
bonus, free roll, play multiply, reload page, etc.
setTimeout([Link],random(1500,3500));

// Give info about jackpot


$('#multiplier_fifth_digit').on('click', function(){
if (LOGGING > 2) [Link]("Count since last 8888: "+totJack);
});
}

)();

function missingTime () {
var min = 0; var sec = 0; var str = "";

str = $('title').text().split(" ")[0];


if ([Link] <= 7 && [Link] >= 3) {
min = [Link](':')[0]; if ([Link] > 0) min = [Link]('m','');
else min = 0;
sec = [Link](':')[1]; if ([Link] > 0) sec = [Link]('s','');
else sec = 0;
}
return [min,sec];
}
function random(min,max){
return min + (max - min) * [Link]();
}
function closePopupInterval (target) {
setInterval(function(){
if ([Link](':visible')) {
[Link]("Close the popup");
setTimeout(function(){
[Link]();
}, random (3000,6000));
}
},15000);
}
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent([Link]);
var ca = [Link](';');
for(var i = 0; i <[Link]; i++) {
var c = ca[i];
while ([Link](0) == ' ') {
c = [Link](1);
}
if ([Link](name) == 0) {
return [Link]([Link], [Link]);
}
}
return "";
}
function setCookie(cname, cvalue, exdays) {
var d = new Date();
[Link]([Link]() + (exdays*24*60*60*1000));
var expires = "expires="+ [Link]();
[Link] = cname + "=" + cvalue + ";" + expires + ";path=/";
}

function freeRoll() {
var d = new Date();
var rand=0;
var r=0;
var tot_btc_winning_rolling = getCookie('tot_btc_winning_rolling');
if (! (tot_btc_winning_rolling > 0)) tot_btc_winning_rolling=0;

if ($('#free_play_form_button').is(':visible') && ! $
('#play_without_captchas_button').is(':visible')) {
r=random(1,100);
var h = [Link]();
if (h <= 6) rand=random(900000,3600000); //from midnight to 6am
else {
if (r <= 10) rand=random(9000,3600000); // xx%, long wait, more
than hour
else if (r <= 30) rand=random(6000,1800000); // long but not longest
else if (r <= 71) rand=random(3000,1200000); // xx% cases medium
else rand=random(500,60000); // xx% cases fast roll
}
if ([Link] !== 0) { //If promo is active, roll faster
if (r <= 10) rand=random(3000,360000); //one time on ten it will
be slower
else rand=random(500,60000); //then faster
}
//if (! Boolean(REWARDS) ) rand=rand+random(5000,900000); // human behave
if (LOGGING > 2) [Link]('++++++++++++++++++++++++++++++Will roll in
'+rand/1000/60+' minutes;');
if (LOGGING > 4) [Link]('hour:'+h+'; r:'+r);
setTimeout(function(){ $
('.free_play_link').not('.hide_menu').click();},1800);
setTimeout(function(){
//Duplicate the visibility chek to avoid error when humans roll and
don't refresh.
if ($('#free_play_form_button').is(':visible') && ! $
('#play_without_captchas_button').is(':visible')){
if (LOGGING > 2) [Link]('+++++++++++++++++++++++++++++
+ROLL!');
$('#free_play_form_button').click();
setTimeout(function(){
var win_btc = $('#winnings').text();
var win_lottery = $('#fp_lottery_tickets_won').text();
var win_rp = $('#fp_reward_points_won').text();
if (win_btc > 0) {
if (LOGGING > 2) [Link]('Got '+win_btc+' btc,
'+win_lottery+' tickets and '+win_rp+' RP!');
if (LOGGING > 4) [Link](">> DEBUG:
"+tot_btc_winning_rolling+" -- "+win_btc+" --
"+parseFloat(tot_btc_winning_rolling));
tot_btc_winning_rolling =
parseFloat(parseFloat(tot_btc_winning_rolling) + parseFloat(win_btc)).toFixed(8);
if (LOGGING > 4) [Link](">> DEBUG:
"+tot_btc_winning_rolling);
setCookie('tot_btc_winning_rolling',
tot_btc_winning_rolling, 365);
} else {
if (LOGGING > 1) [Link](''+'%cSome error retrieving
Roll Winnings. Winning was: '+win_btc, 'color: red');
}
}, 6999);
}
else {
if (LOGGING > 3) [Link]('Already Rolled..');
setTimeout(function(){ [Link](); }, 3000);
}
},rand);
var rand1=rand+random(900000,1800000);
rand=random(0,1000);
if (rand < 500) {
if (LOGGING > 2) [Link]('Reload page after roll in
'+rand1/1000/60+' minutes!');
setTimeout(function(){ [Link](); }, rand1);
} else if (rand > 900 && Boolean(MULTIPLY)) {
if (LOGGING > 0) [Link]('Will multiply in '+rand1/1000/60+'
minutes!');
setTimeout(function(){ multiply(); }, rand1);
} else {
if (LOGGING > 2) [Link]('No action after roll. Rand was '+rand);
}
} else {
if (LOGGING > 2) [Link]("No roll");
}
}

// Multiply, called after the free roll, sometimes.


function multiply() {
var balance = parseInt($('#balance').text().split(".")[1]);
var bonustime_current;
if ($("#bonus_account_table").length != 0) {
var bonustime_balance = $('#bonus_account_balance').text().split(" ")[0];
var bonustime_wager_remaining = $('#bonus_account_wager').text().split(" ")
[0];
bonustime_current = 1;
} else
bonustime_current = 0;
var max_lose = 0; var i=0; var j=0;
$('.double_your_btc_link').not('.hide_menu').click();
if ( bonustime_current == 1) {
// Autobet at "double"
setTimeout(function(){ $('#auto_bet_on').click(); }, random(2000,2200));
setTimeout(function(){ $('#autobet_base_bet').val('0.00000001'); },
random(3500,7000));
//13 rolls loosing in a row, 1 every 4096 games. Every script exec game you
win ~500 sat, playing ~500 games.
setTimeout(function(){ $('#autobet_max_bet').val('0.00004096'); },
random(3500,7000));
setTimeout(function(){ $('#autobet_roll_count').val(MAX_ROLLS_AT_MULTIPLY);
}, random(3500,7000));
setTimeout(function(){ $('#autobet_bet_hi').prop('checked', true); $
('#autobet_bet_alternate').prop('checked', false); }, random(3500,7000));
setTimeout(function(){ $('#show_double_your_btc_auto_bet_on_lose').click();
}, random(7500,9000));
setTimeout(function(){ $('#autobet_lose_increase_bet').prop('checked',
true); $('#autobet_lose_return_to_base').prop('checked', false); },
random(9100,11000));
setTimeout(function(){ $('#autobet_max_bet_stop').prop('checked', true); $
('#autobet_max_bet_reset').prop('checked', false); }, random(9100,11000));
setTimeout(function(){ $('#autobet_lose_increase_bet_percent').val('100');
}, random(9100,11000));
setTimeout(function(){ $('#autobet_dnr').prop('checked', true); },
random(11000,12000));
setTimeout(function(){ $('#start_autobet').click(); },
random(17100,30000));
if (LOGGING > 2) [Link]('bonus balance: '+bonustime_balance+'; wager
remaining: '+bonustime_wager_remaining);
}
if (LOGGING > 2) [Link]('total balance: '+balance);
setTimeout(function(){ $('.free_play_link').not('.hide_menu').click(); },
random(900000,1200000));
}

You might also like