Automatic Tree

Automatic Tree Claiming

目前為 2024-01-28 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Automatic Tree
// @namespace    Terminator.Scripts
// @version      0.6.2
// @description  Automatic Tree Claiming
// @author       TERMINATOR
// @license      MIT
// @match        https://knolix.com/*
// @match        https://ads.knolix.com/int/*
// @match        https://scripts.cs2resellers.com/ads/?automatictree
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    var email = ''; // PASTE YOUR EMAIL
    var password = ''; // PASTE YOUR PASSWORD
    var completed = false; // CHANGE TO true

    if (completed !== true) return alert("Please fill in the details in the script!")

    function clickBtctree() {
        var btctreeElement = document.getElementById('bitcoin0');
        if (btctreeElement) {
            btctreeElement.click();
        } else {
            window.location.href = 'https://knolix.com/login';
        }
    }

    function clickSkipButton() {
        var skipButtonElement = document.querySelector('a#skip_bu2tton');
        if (skipButtonElement) {
            skipButtonElement.click();
            window.close();
        }
    }
    window.addEventListener('load', function() {
        if (window.location.href.startsWith("https://knolix.com/ref") || window.location.href.startsWith("https://knolix.com/convert")) {
            return;
        } else if (window.location.href.startsWith('https://scripts.cs2resellers.com/ads/?automatictree')) {
            setTimeout(() => {
                window.location.href = 'https://knolix.com/';
            }, 60000 * 30);
        } else if (window.location.href.startsWith('https://knolix.com/login')) {
            setTimeout(() => {
                document.getElementsByName('user')[0].value = email;
                document.getElementsByName('pass')[0].value = password;
                document.getElementsByName('submit_login')[0].click();
            }, 5000 * 2);
        } else if (window.location.href.startsWith('https://knolix.com/harvest.php?reward_token=')) {
            window.location.href = 'https://scripts.cs2resellers.com/ads/?automatictree';
        } else if (window.location.href.startsWith('https://ads.knolix.com/int/')) {
            setInterval(() => {
                clickSkipButton();
            }, 10000);
        } else if (window.location.href.startsWith('https://knolix.com/')) {
            //clickBtctree();
            setInterval(() => {
                clickBtctree();
            }, 15000);
        }
    });
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。