Automatic Tree

Automatic Tree Claiming

Verze ze dne 15. 12. 2023. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Automatic Tree
// @namespace    Terminator.Scripts
// @version      0.3.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/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

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

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

    if (window.location.href.startsWith("https://scripts.cs2resellers.com/ads/")) {
        setTimeout(() => {
            window.location.href = "https://knolix.com/";
        }, 60000 * 2)
    } else if (window.location.href.startsWith("https://knolix.com/harvest.php?reward_token=")) {
        window.location.href = "https://scripts.cs2resellers.com/ads/";
    } else if (window.location.href.startsWith('https://knolix.com/')) {
        setInterval(() => {
            clickBtctree();
        }, 60000 * 0.5);
    } else if (window.location.href.startsWith("https://ads.knolix.com/int/")) {
        setInterval(() => {
            clickSkipButton();
        }, 60000 * 0.5);
    } else {
        window.location.href = "https://knolix.com/";
    }

})();