starlavinia.name.tr : Auto Faucet

https://starlavinia.name.tr/clmm/?r=23926

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         starlavinia.name.tr : Auto Faucet
// @namespace    https://starlavinia.name.tr/clmm/?r=23926
// @version      1.2
// @description  https://starlavinia.name.tr/clmm/?r=23926
// @author       stealtosvra
// @match        https://starlavinia.name.tr/*
// @icon         https://starlavinia.name.tr/clmm/styles/upload/favicon/f019b396110fc39e9715f2d3140de41a.png
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    var email = "";

    function hCaptcha() {
        return grecaptcha && grecaptcha.getResponse().length !== 0;
    }

    function autoClaim() {
        const element = document.querySelector('.btn.btn-primary');
        if (element.innerText === 'Go Claim') {
            element.click();
            location.reload();
        }
    }

    if(window.location.href === "https://starlavinia.name.tr/") {
        var element = document.querySelector('button[data-target="#login"]');
        element.click();

        var inputBox = document.getElementById("InputEmail");
        inputBox.value = email;

        setTimeout(function() {
            var buttons = document.querySelectorAll('button.btn.btn-primary');
            var secondButton = buttons[3];
            secondButton.click();
        }, 5000);
    }


    setInterval(function() {
            document.getElementById("subbutt").click();
    }, 5000);

    setInterval(autoClaim, 5000);

})();