// ==UserScript==
// @name [New] Freebitco.in
// @namespace https://greasyfork.org/users/1162863
// @version 3.0
// @description Faucet Roll/1000% BTC Bonus/WoF Spin
// @author Andrewblood
// @icon https://coinfinity.top/favicon.ico
// @match *://*.freebitco.in/*
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @grant window.close
// @antifeature referral-link Referral-Link is in this Script integrated.
// @license Copyright Andrewblood
// @downloadURL none
// ==/UserScript==
(function() {
'use strict';
// CSS-Stil für das Overlay
var overlayStyle = `
#overlay {
position: fixed !important;
left: 10px !important; /* Abstand vom linken Rand */
bottom: 10px !important; /* Abstand vom unteren Rand */
width: 300px !important; /* Breite des Overlays */
height: 150px !important; /* Höhe des Overlays */
background-color: rgba(0, 0, 0, 0.5) !important; /* Halbtransparentes Schwarz */
color: black !important; /* Schriftfarbe Schwarz */
padding: 10px !important;
z-index: 9999 !important; /* Stellen Sie sicher, dass das Overlay oben liegt */
font-size: 16px !important; /* Schriftgröße 16px */
display: flex;
flex-direction: column; /* Überschrift und Inhalt untereinander */
}
#overlay h2 {
font-size: 20px; /* Größe des h2-Titels */
margin-bottom: 10px; /* Abstand nach unten */
text-align: center; /* Überschrift zentriert */
}
.checkbox-container {
display: flex;
align-items: center; /* Vertikal zentriert */
margin-left: 40px; /* Abstand vom linken Rand */
margin-bottom: 5px; /* Abstand nach unten */
}
.checkbox-container input[type="checkbox"] {
margin-right: 5px; /* Abstand zwischen Checkbox und Text */
}
`;
// Füge den CSS-Stil hinzu
GM_addStyle(overlayStyle);
// Erstelle das Overlay-Element mit innerHTML
var overlay = document.createElement('div');
overlay.id = 'overlay';
// Überschrift
overlay.innerHTML = '
Script by Andrewblood
';
// Kästchen zum Ankreuzen mit dem Namen "Roll"
var rollCheckboxContainer = document.createElement('div');
rollCheckboxContainer.classList.add('checkbox-container');
rollCheckboxContainer.innerHTML = `
`;
overlay.appendChild(rollCheckboxContainer);
// Kästchen zum Ankreuzen mit dem Namen "WoF"
var wofCheckboxContainer = document.createElement('div');
wofCheckboxContainer.classList.add('checkbox-container');
wofCheckboxContainer.innerHTML = `
`;
overlay.appendChild(wofCheckboxContainer);
// Kästchen zum Ankreuzen mit dem Namen "1000% BTC Bonus"
var bonusCheckboxContainer = document.createElement('div');
bonusCheckboxContainer.classList.add('checkbox-container');
bonusCheckboxContainer.innerHTML = `
`;
overlay.appendChild(bonusCheckboxContainer);
// Füge das Overlay dem Dokument hinzu
document.body.appendChild(overlay);
// Speichere und rufe den Roll-Status ab
var rollCheckbox = document.getElementById('roll-checkbox');
rollCheckbox.addEventListener('change', function() {
GM_setValue('rollStatus', rollCheckbox.checked);
});
// Überprüfe, ob der Roll-Status bereits gespeichert ist
var savedRollStatus = GM_getValue('rollStatus');
if (savedRollStatus !== undefined) {
rollCheckbox.checked = savedRollStatus;
}
// Speichere und rufe den WoF-Status ab
var wofCheckbox = document.getElementById('wof-checkbox');
wofCheckbox.addEventListener('change', function() {
GM_setValue('wofStatus', wofCheckbox.checked);
});
// Überprüfe, ob der WoF-Status bereits gespeichert ist
var savedWofStatus = GM_getValue('wofStatus');
if (savedWofStatus !== undefined) {
wofCheckbox.checked = savedWofStatus;
}
// Speichere und rufe den Bonus-Status ab
var bonusCheckbox = document.getElementById('bonus-checkbox');
bonusCheckbox.addEventListener('change', function() {
GM_setValue('bonusStatus', bonusCheckbox.checked);
});
// Überprüfe, ob der Bonus-Status bereits gespeichert ist
var savedBonusStatus = GM_getValue('bonusStatus');
if (savedBonusStatus !== undefined) {
bonusCheckbox.checked = savedBonusStatus;
}
function checkReferalCode() {
var url = window.location.href;
var targetURL = "https://freebitco.in/signup/?op=s&r=3595810";
if (url.includes("signup") && url !== targetURL) {
window.location.href = targetURL;
}
}
checkReferalCode();
if (savedWofStatus) {
console.log('WoF ist aktiviert.');
if (window.location.href.includes("wof")) {
setTimeout(function() {
document.querySelector("#wofc-section > div > div.wofc-spins > p > button:nth-child(2)").click();
}, 1000*5);
setTimeout(function() {
window.close();
}, 1000*10);
}
setTimeout(function() {
if (document.querySelector("#free_wof_spins_msg")){
window.open('https://freebitco.in/static/html/wof/wof-premium.html', '_blank');
}
}, 1000*3);
}
if (savedBonusStatus) {
document.querySelector("body > div.large-12.fixed > div > nav > section > ul > li:nth-child(8) > a").click();
document.querySelector("#rewards_tab > div.row.reward_category_container_main_div > div > div:nth-child(4) > div.reward_category_name").click();
setTimeout(function() {
var yourrwp = parseFloat(document.querySelector("#rewards_tab > div:nth-child(2) > div > div.reward_table_box.br_0_0_5_5.user_reward_points.font_bold").innerText.replace(/,/, ''))
var bonuscost = parseFloat(document.querySelector("#fp_bonus_rewards > div:nth-child(2) > div:nth-child(2) > div.large-6.small-12.columns > div").innerText.replace(/,/, ''))
console.log("Current Reward Points:", (yourrwp));
console.log("Price for bonus:", (bonuscost));
if (yourrwp > bonuscost){
document.querySelector("#fp_bonus_rewards > div:nth-child(2) > div:nth-child(2) > div:nth-child(3) > button").click();
}
}, 1000*1);
document.querySelector("#free_play_link_li > a").click();
}
if (savedRollStatus) {
setTimeout(function() {
if (document.querySelector("#free_play_form_button").style.display == "none"){
setTimeout(function() {
window.close();
}, 1000*10);
}
else
{
if (document.querySelector(".h-captcha")) {
var interval = setInterval(function() {
var captchaResponse = document.querySelector('textarea[name="h-captcha-response"]').value;
if (captchaResponse.length !== 0) {
clearInterval(interval); // Stop the interval
document.querySelector("#free_play_form_button").click();
setTimeout(function() {
window.close();
}, 1000*10);
}
}, 1000); // Check every second
}
else
{
document.querySelector("#free_play_form_button").click();
setTimeout(function() {
window.close();
}, 1000*10);
}
}
}, 1000*3);
}
})();