Automatic Tree

Automatic Tree Claiming

17.12.2023 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Automatic Tree
// @namespace    Terminator.Scripts
// @version      0.4.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 = '';
    var password = '';
    var completed = false;

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

    function clickBtctree() {
        var btctreeElement = document.getElementById('btctree');
        if (btctreeElement) {
            btctreeElement.click();
        }
    }

    if (window.location.href.startsWith('https://scripts.cs2resellers.com/ads/?automatictree')) {
        setTimeout(() => {
            window.location.href = 'https://knolix.com/login';
        }, 60000 * 0.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();
        }, 60000 * 0.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/')) {
        setTimeout(() => {
            clickSkipButton();
        }, 60000 * 0.3);
    } else if (window.location.href.startsWith('https://knolix.com/')) {
        clickBtctree();
        setInterval(() => {
            clickBtctree();
        }, 60000 * 0.5);
    }

    function clickSkipButton() {
        var skipButtonElement = document.querySelector('a#skip_bu2tton');
        if (skipButtonElement) {
            skipButtonElement.click();
            window.close();
        }
    }
})();