[Premium] Freebitco.in

Faucet Roll/1000% BTC Bonus/WoF Spin with Overlay for settings

目前為 2024-05-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         [Premium] Freebitco.in
// @namespace    https://gf.qytechs.cn/users/1162863
// @version      3.1
// @description  Faucet Roll/1000% BTC Bonus/WoF Spin with Overlay for settings
// @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
// ==/UserScript==

(function() {
    'use strict';

    var overlayStyle = `
    #overlay {
        position: fixed !important;
        left: 10px !important;
        bottom: 10px !important;
        width: 300px !important;
        height: 230px !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        color: white !important;
        padding: 10px !important;
        z-index: 9999 !important;
        font-size: 16px !important;
        display: flex;
        flex-direction: column;
    }

    #overlay h2 {
        font-size: 20px;
        margin-bottom: 10px;
        text-align: center;
        color: white;
    }

    .checkbox-container {
        display: flex;
        align-items: center;
        margin-left: 40px;
        margin-bottom: 5px;
    }

    .checkbox-container label {
        color: white;
        margin-left: 5px;
    }

    #overlay button {
        margin-top: auto;
        align-self: center;
    }

    #info-overlay {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 80%;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        z-index: 99999;
        padding: 20px;
        display: none;
        overflow-y: auto;
    }

    #info-overlay h2 {
        text-align: center;
        color: white;
    }
`;

    GM_addStyle(overlayStyle);


    var overlay = document.createElement('div');
    overlay.id = 'overlay';

    overlay.innerHTML = '<h2>Freebitco.in Script</h2>';

    var wofCheckboxContainer = document.createElement('div');
    wofCheckboxContainer.classList.add('checkbox-container');
    wofCheckboxContainer.innerHTML = `
        <input type="checkbox" id="wof-checkbox">
        <label for="wof-checkbox">WoF</label>
    `;

    overlay.appendChild(wofCheckboxContainer);

    var bonusCheckboxContainer = document.createElement('div');
    bonusCheckboxContainer.classList.add('checkbox-container');
    bonusCheckboxContainer.innerHTML = `
        <input type="checkbox" id="bonus-checkbox">
        <label for="bonus-checkbox">1000% BTC Bonus</label>
    `;

    overlay.appendChild(bonusCheckboxContainer);

    var rollCheckboxContainer = document.createElement('div');
    rollCheckboxContainer.classList.add('checkbox-container');
    rollCheckboxContainer.innerHTML = `
        <input type="checkbox" id="roll-checkbox">
        <label for="roll-checkbox">Roll</label>
    `;

    overlay.appendChild(rollCheckboxContainer);

    var closeCheckboxContainer = document.createElement('div');
    closeCheckboxContainer.classList.add('checkbox-container');
    closeCheckboxContainer.innerHTML = `
        <input type="checkbox" id="close-checkbox">
        <label for="close-checkbox">Close after work</label>
    `;
    overlay.appendChild(closeCheckboxContainer);

    var moreInfoButton = document.createElement('button');
    moreInfoButton.textContent = 'More Info';
    moreInfoButton.addEventListener('click', openInfoOverlay);

    overlay.appendChild(moreInfoButton);

    document.body.appendChild(overlay);

    function openInfoOverlay() {
        var infoOverlay = document.getElementById('info-overlay');
        if (!infoOverlay) {
            infoOverlay = document.createElement('div');
            infoOverlay.id = 'info-overlay';
            infoOverlay.innerHTML = `
                <h2>Additional Information</h2>
                <p>	The script looks at first for a message if you have any WoF aviable, if yes it opens a new page and makes the WoF and close the Wof page.<br>
	Then it goes to the Reward page and looks how many Reward points you have if you have much enough for 1000% BTC bonus it buy that.<br>
	After that it make the Roll<br>
<br>
You can activate and deactivate the functions in the Overlay as desired.<br>
When it is deactivated, it will not be executed.<br></p>

    <h2>Privacy Policy</h2>
    <p>
        This script stores user data locally within TamperMonkey and is exclusively used for script functionality.<br>
        It is not shared with the script creator or third parties.<br>
    </p>
    <br>

    <h2>Support</h2>
    <p>
        If you have any questions or need assistance, don't hesitate to reach out the creator and supporter,
        <a href="https://gf.qytechs.cn/users/1162863" target="_blank">Andrewblood</a>.
    </p>
    <br>

    <h2>Changelog</h2>
    <p>
        <b>Version v.3.1</b><br>
        Added setting to let the site open<br>
        Added Button/Overlay with more Infos<br>
        Deleted comments<br>
        <br>
        <b>Version v.3.0</b><br>
        Added Overlay to chance the settings
    </p>
            `;
            document.body.appendChild(infoOverlay);
        }
        infoOverlay.style.display = 'block';

        document.addEventListener('click', function(event) {
            if (!infoOverlay.contains(event.target) && event.target !== moreInfoButton) {
                closeInfoOverlay();
            }
        });
    }

    function closeInfoOverlay() {
        var infoOverlay = document.getElementById('info-overlay');
        if (infoOverlay) {
            infoOverlay.style.display = 'none';
        }
    }

    var wofCheckbox = document.getElementById('wof-checkbox');
    wofCheckbox.addEventListener('change', function() {
        GM_setValue('wofStatus', wofCheckbox.checked);
    });

    var savedWofStatus = GM_getValue('wofStatus');
    if (savedWofStatus !== undefined) {
        wofCheckbox.checked = savedWofStatus;
    }

    var bonusCheckbox = document.getElementById('bonus-checkbox');
    bonusCheckbox.addEventListener('change', function() {
        GM_setValue('bonusStatus', bonusCheckbox.checked);
    });

    var savedBonusStatus = GM_getValue('bonusStatus');
    if (savedBonusStatus !== undefined) {
        bonusCheckbox.checked = savedBonusStatus;
    }

    var rollCheckbox = document.getElementById('roll-checkbox');
    rollCheckbox.addEventListener('change', function() {
        GM_setValue('rollStatus', rollCheckbox.checked);
    });

    var savedRollStatus = GM_getValue('rollStatus');
    if (savedRollStatus !== undefined) {
        rollCheckbox.checked = savedRollStatus;
    }

    var closeCheckbox = document.getElementById('close-checkbox');
    closeCheckbox.addEventListener('change', function() {
        GM_setValue('closeStatus', closeCheckbox.checked);
    });

    var savedCloseStatus = GM_getValue('closeStatus');
    if (savedCloseStatus !== undefined) {
        closeCheckbox.checked = savedCloseStatus;
    }

    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();
                            if (savedCloseStatus) {
                                setTimeout(function() {
                                    window.close();
                                }, 1000*10);
                            } else {
                                setTimeout(function() {
                                    window.location.reload();
                                }, 1000*60*60);
                            }
                        }
                    }, 1000); // Check every second
                }
                else
                {
                    document.querySelector("#free_play_form_button").click();
                    if (savedCloseStatus) {
                        setTimeout(function() {
                            window.close();
                        }, 1000*10);
                    } else {
                        setTimeout(function() {
                            window.location.reload();
                        }, 1000*60*60);
                    }
                }
            }
        }, 1000*3);
    }

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址