0% found this document useful (0 votes)
291 views8 pages

Freebitco in

This userscript is for the website FreeBitco.in. It automates tasks like clicking the "free play" button and reloading the page after a long random delay. It also adds a "Donations" button and displays the author's Bitcoin address. The script tracks betting statistics in a table by odds value. It generates random strings, sleeps the script for long periods, and copies a referral link to the clipboard when clicked.

Uploaded by

Gayan Sankalpa
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)
291 views8 pages

Freebitco in

This userscript is for the website FreeBitco.in. It automates tasks like clicking the "free play" button and reloading the page after a long random delay. It also adds a "Donations" button and displays the author's Bitcoin address. The script tracks betting statistics in a table by odds value. It generates random strings, sleeps the script for long periods, and copies a referral link to the clipboard when clicked.

Uploaded by

Gayan Sankalpa
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
You are on page 1/ 8

// ==UserScript==

// @name Freebitco.in All in One by Giuseppe Tarricone.


// @namespace https://greasyfork.org/it/users/457042-giuseppe-tarricone
// @version 1.0.1
// @description You need to create a FreeBitCo.in account to use this script, The
Links to Join :https://freebitco.in/?r=29923906
// @description For Info write me mail : [email protected]
// @description If you like can donate BTC.
// @description 352aQWxWzD4HUeCGN6MYNmm53DtYrEHtLX
// @author @Giuseppe_rus
// @license GPL-3.0
// @match https://freebitco.in/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
console.clear();
$(document).ready(function(){
setTimeout(function(){
$("#free_play_form_button").click();
}, 500+Math.random()*1500);
});

function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}

//60+ minutes sleeping function


async function main() {
var a=Math.random();
var b=Math.random();
var c=Math.round(Math.random()*149826);
var sleeptime=3630000+Math.round(a*b*c)+Math.floor(Math.random()*4000);
await sleep(sleeptime);

location.reload();
}

main();

$("#main_deposit_button_top").parent()
.append("<div class='left new_button_style deposit_withdraw_button_style
withdraw_box_button' data-reveal-id='donationModal'>DONATIONS</div>"),$("body")
.append("<div id='donationModal' class='reveal-modal'> <h3>
<center>DONATIONS</center> </h3> <p>If you like my work this is my BTC
address.<br>Thank you!</p> <div class='row' id='main_deposit_address_box'> <div
class='large-12 small-12 large-centered small-centered columns change_size_css'>
<div class='reward_table_box green_prize_rank br_5_5 bold' style='border-bottom:
1px solid #f3cd00; font-weight: bold;'>BTC ADRESS</div> <div
class='reward_table_box br_0_0_5_5 font_bold' style='border-top:none;'> <input
type='text' id='main_deposit_address' size='40' style='text-align:center;'
value='352aQWxWzD4HUeCGN6MYNmm53DtYrEHtLX' onclick='this.select();'> <p><img
src='//chart.googleapis.com/chart?
cht=qr&chs=200x200&chl=352aQWxWzD4HUeCGN6MYNmm53DtYrEHtLX&chld=H|0'></p> </div>
</div> </div> <a class='close-reveal-modal'>×</a> </div>")

var body = $('body');


$('<div/>').attr('id','autofaucet')
.append($('<p/>').attr('style','text-
decoration:underline;color: red').text("Freebitcoin All In One"))
.append($('<p/>').attr('style',"color: red").text("By Giuseppe
Tarricone"))
.append($('<p/>').text("Support Mail :
[email protected]"))
.append($('<p/>').attr('style',"color: green").text("Referral :
https://freebitco.in/?r=29923906"))
.append($('<p/>').attr('style','text-
decoration:underline;color: red').text("(Click to copy)"))
.append($('<p/>').attr('style','text-
decoration:underline;color: white').text("Good Luck."))
.append($('<p/>')
)
.click(function(){
var $temp = $('<input>').val("https://freebitco.in/?r=29923906");
body.append($temp);
$temp.select();
document.execCommand("copy");
$temp.remove();
})
.prepend($('<style/>')
.text("#autofaucet p { margin: 0; margin-left: 2px; text-align:
center; }")
)

//------------------------------------------------------------------------
Сonfiguration Values
------------------------------------------------------------------------
const odds = [1.5, 2, 3, 4, 5, 8, 10, 15, 20, 25, 40, 50, 100, 450, 4750];
let oddVals = [];
let oddStat = [];
let isBetButtonClicked = false;
let rollsCount = 0;
let tableRowId = 0;
let starterBalance = 0;
let statTableExists = false;
//------------------------------------------------------------------------
Сonfiguration Values
------------------------------------------------------------------------

//------------------------------------------------------------------------
Additional Functions
------------------------------------------------------------------------

function id(id) {

return document.getElementById(id);

function createVariableForOdd(odd) {

let hiNum = parseInt(Math.round(10000 - (9500 / parseFloat(odd).toFixed(2))));


let loNum = parseInt(Math.round((9500 / parseFloat(odd).toFixed(2))));

oddVals[odd] = {
hiNum: hiNum,
loNum: loNum
};

oddStat[odd] = {
hiLose: 0,
hiMaxSeqLose: 0,
hiWinCount: 0,
loLose: 0,
loMaxSeqLose: 0,
loWinCount: 0
};

function isBetButtonDisabled(mod) {

return id('double_your_btc_bet_' + mod + '_button').getAttribute('disabled');

function generateRandomString(comb, minLength, maxLength) {

let randomString = '';


let characters = '';
let numbers = '0123456789';
let upperCaseLetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
let lowerCaseLetters = 'abcdefghijklmnopqrstuvwxyz';
let length = Math.floor(Math.random() * (maxLength - minLength + 1)) +
minLength;

if (comb == 'random') comb = Math.floor(Math.random() * 7);

switch (comb) {

case 1:
characters = numbers;
break;
case 2:
characters = upperCaseLetters;
break;
case 3:
characters = lowerCaseLetters;
break;
case 4:
characters = numbers + upperCaseLetters;
break;
case 5:
characters = numbers + lowerCaseLetters;
break;
case 6:
characters = upperCaseLetters + lowerCaseLetters;
break;
default:
characters = numbers + upperCaseLetters + lowerCaseLetters;

for (let i = 0; i < length; i++) {


randomString += characters.charAt(Math.floor(Math.random() *
characters.length));

return randomString;

//------------------------------------------------------------------------
Additional Functions
------------------------------------------------------------------------

//------------------------------------------------------------------------------
Main Code
-----------------------------------------------------------------------------

let rollStat = {

update: function() {

let currentBalance = (Number(parseFloat(id('balance').textContent)) +


Number(parseFloat(id('bonus_account_balance').textContent))).toFixed(8);
let profit = (currentBalance - starterBalance).toFixed(8);

rollsCount += 1;

odds.forEach(this.setVals);

if (statTableExists === false) this.setTable(currentBalance);

id('stat-rolls-count').innerHTML = '<span style="color:#039">Rolls played :


</span>' + rollsCount;
id('stat-starter-balance').innerHTML = '<span style="color:#039">Starter
balance : </span>' + starterBalance;
id('stat-current-balance').innerHTML = '<span style="color:#039">Current
balance : </span>' + currentBalance;
id('stat-profit1').innerHTML = '<span style="color:#039">Profit : </span>'
+ profit;

odds.forEach(function(odd) {

tableRowId += 1;

id('stat-table-td-hilose' + tableRowId).textContent =
oddStat[odd].hiLose;
id('stat-table-td-himaxseqlose' + tableRowId).textContent =
oddStat[odd].hiMaxSeqLose;
id('stat-table-td-hiwincount' + tableRowId).textContent =
oddStat[odd].hiWinCount;
id('stat-table-td-lolose' + tableRowId).textContent =
oddStat[odd].loLose;
id('stat-table-td-lomaxseqlose' + tableRowId).textContent =
oddStat[odd].loMaxSeqLose;
id('stat-table-td-lowincount' + tableRowId).textContent =
oddStat[odd].loWinCount;
});

tableRowId = 0;

},

setVals: function(odd) {

let prevRollNum = parseInt(id('previous_roll').textContent);

if (prevRollNum > oddVals[odd].hiNum) {

oddStat[odd].hiWinCount += 1;
oddStat[odd].hiLose = 0;

} else {

oddStat[odd].hiLose += 1;
if (oddStat[odd].hiLose > oddStat[odd].hiMaxSeqLose)
oddStat[odd].hiMaxSeqLose += 1;

if (prevRollNum < oddVals[odd].loNum) {

oddStat[odd].loWinCount += 1;
oddStat[odd].loLose = 0;

} else {

oddStat[odd].loLose += 1;
if (oddStat[odd].loLose > oddStat[odd].loMaxSeqLose)
oddStat[odd].loMaxSeqLose += 1;

},

setTable: function(currentBalance) {

let hStyle = [];


hStyle = document.getElementsByTagName('head');

hStyle[0].insertAdjacentHTML('beforeend',
' <style>#stat-table1{font-family:"Lucida Sans Unicode","Lucida
Grande",Sans-Serif;font-size:16px;background:none;width:868px;margin-left:auto;
margin-right:auto;margin-bottom:50px;border-collapse: collapse;border:none}#stat-
table1 th{font-weight:400;color:#039;text-align:center;border-bottom:2px solid
#6678b1;padding:6px 8px}#stat-table1 td{border-bottom:1px solid
#8c98bf;color:#669;text-align:center;padding:7px 8px}#stat-table1 tr:hover
td{background:#a8c7e0}.tborder-r{border-right:2px solid #6678b1}.tborder-r1{border-
right:1px solid #8c98bf}#stat-table1 .tfont-c1{color:#09f}#stat-table1 .tfont-
c2{color:#000}#stat-table1 .tfont-c3{color:#c00}#stat-table1 .tfont-
c4{color:#37a661}.odd11{font-weight:bold}</style> ');

id('double_your_btc_main_container_outer').insertAdjacentHTML('afterend',
'<table style = "border:none;background:none; width:868px; text-align:center; font-
weight:bold;margin-bottom:0px;font-size:14px;color:#333"><tr
style="padding:0px;height:36px;line-height:36px"><td id="stat-rolls-count"><span
style="color:#039">Rolls played : </span>' + rollsCount + '</td><td id="stat-
starter-balance"><span style="color:#039">Starter balance : </span>' +
starterBalance + '</td><td id="stat-current-balance"><span
style="color:#039">Current balance : </span>' + currentBalance + '</td><td
id="stat-profit1"><span style="color:#039">Profit : </span>' + (currentBalance -
starterBalance).toFixed(8) + '</td></tr></table> <table id = "stat-
table1"><tr><th class="tborder-r">Odd</th><th>Target (HI)</th><th> Lose
</th><th>Max Lose</th><th class="tborder-r1">Win Count</th><th>Target (LO)</th><th>
Lose </th><th>Max Lose</th><th>Win Count</th></tr></table>');

odds.forEach(function(odd) {

tableRowId += 1;

id('stat-table1').insertAdjacentHTML('beforeend', '<tr><td
class="tborder-r odd11">' + odd + '</td><td class="tfont-c1">' + oddVals[odd].hiNum
+ '</td><td id="stat-table-td-hilose' + tableRowId + '" class="tfont-c2">0</td><td
id="stat-table-td-himaxseqlose' + tableRowId + '" class="tfont-c3">0</td><td
id="stat-table-td-hiwincount' + tableRowId + '" class="tborder-r1 tfont-
c4">0</td><td class="tfont-c1">' + oddVals[odd].loNum + '</td><td id="stat-table-
td-lolose' + tableRowId + '" class="tfont-c2">0</td><td id="stat-table-td-
lomaxseqlose' + tableRowId + '" class="tfont-c3">0</td><td id="stat-table-td-
lowincount' + tableRowId + '" class="tfont-c4">0</td></tr>');

});

tableRowId = 0;
statTableExists = true;

};

function init(mod) {

if (isBetButtonDisabled(mod) == 'disabled') {

isBetButtonClicked = true;

return

} else {

if (isBetButtonClicked === true) {

id('next_client_seed').value = generateRandomString('random', 3, 20);


rollStat.update();
isBetButtonClicked = false;

} else {

return

}
}
}

id('double_your_btc_bet_hi_button').addEventListener("DOMSubtreeModified",
function() {

init('hi');

});

id('double_your_btc_bet_lo_button').addEventListener("DOMSubtreeModified",
function() {

init('lo');

});

starterBalance = (Number(parseFloat(id('balance').textContent)) +
Number(parseFloat(id('bonus_account_balance').textContent))).toFixed(8);

odds.forEach(createVariableForOdd);

rollStat.setTable(starterBalance);

//------------------------------------------------------------------------------
Main Code
-----------------------------------------------------------------------------

var x = '<div id="keypad" class="large-12 small-12 columns center">' +


'<button id="start" onclick="StartFind()" class="btn btn-primary"
style="margin:0 0 10px 0; padding:3px; width:auto;">Start Find</button>' +
'</div>' +
'<div class="large-12 small-12 columns center">' +
'<input type="text" id="pattern" value="RRGG" style="text-
align:center; height:30px;">' +
'</div>'
$("#double_your_btc_right_section p:first").html(x);

$('#double_your_btc_bet_lose').unbind();
$('#double_your_btc_bet_win').unbind();
var game; var pattern;
var stopGame = false; var balanceInitial; var balanceCurrent;
function StartFind(){
//debugger;
pattern=$("#pattern").val();
stopGame=false;
$("#keypad").html('<button id="start" onclick="Stop()" class="btn btn-warning
style="margin:0 0 10px 0; padding:3px; width:auto;">Stop</button>');
game = "";
$('#double_your_btc_stake').val('0.00000001');
$("#double_your_btc_bet_hi_button").trigger("click");
balanceInitial = ( parseInt(parseFloat ( $("#balance").html() ) * 100000000) );
}

function Stop(){
stopGame = true;
$("#keypad").html('<button id="start" onclick="StartFind()" class="class="btn
btn-primary" style="margin:0 0 10px 0; padding:3px; width:auto;">Start
Find</button>');
//$('#double_your_btc_bet_lose').unbind();
//$('#double_your_btc_bet_win').unbind();
}

$('#double_your_btc_bet_lose').bind("DOMSubtreeModified",function(e){
//debugger;
if (stopGame) return;
if( $(event.currentTarget).is(':contains("lose")') ){
validatePattern("R");
}

});

function validatePattern(result){
game+= result;
var value = game.substr(game.length - pattern.length);
if (value==pattern){
Stop();
balanceCurrent = (parseInt(parseFloat ($
("#balance").html())*100000000));
var cost = balanceCurrent-balanceInitial;
alert("Pattern Find !!! : " + value + "\nCost : " + cost + "
Satoshi" );

}else{
$("#double_your_btc_bet_hi_button").trigger("click");
}
}

$('#double_your_btc_bet_win').bind("DOMSubtreeModified",function(e){
//debugger;
if (stopGame) return;
if( $(event.currentTarget).is(':contains("win")') ){
validatePattern("G");
}
});

You might also like