LitecoinBits Auto Roll

Faucet Automation

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         LitecoinBits Auto Roll
// @namespace    LitecoinBits Auto faucet claim
// @version      1.0
// @description  Faucet Automation
// @author       Shnethan
// @match        https://litecoinbits.com/*
// @icon         https://litecoinbits.com/static/favicon-32x32.png
// @license      GPL-3.0
// @grant        none

// ==/UserScript==

(function() {

    'use strict';

    const u = window.location;
    const x = 'https://litecoinbits.com/?ref=26886';

    if (u.pathname === '/' && u.search === '') {
        window.location.replace(x);
        return;
    }

    if (!u.search.includes('ref=26886')) return;

    let r = false;
    let f = false;

    const o = new MutationObserver(() => {

        if (!r) {
            const b = document.querySelectorAll("button");

            b.forEach(btn => {
                if (
                    btn.innerText.includes("Roll") &&
                    btn.innerText.includes("Win") &&
                    btn.offsetParent !== null
                ) {
                    btn.click();
                    r = true;
                }
            });
        }

        if (r && !f) {
            const s = document.querySelector('#faucetMessage .alert-success');

            if (s) {
                const rb = s.querySelector('button.btn-danger');

                if (rb) {
                    rb.click();
                    f = true;
                    o.disconnect();
                }
            }
        }

    });

    o.observe(document.body, {
        childList: true,
        subtree: true
    });

})();