Logs Check

try to take over the world!

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Logs Check
// @namespace    http://tampermonkey.net/
// @version      2024-02-06
// @description  try to take over the world!
// @author       Artem_Tankov
// @match        https://logs.blackrussia.online/gslogs/*
// @icon         https://icons.iconarchive.com/icons/hopstarter/adobe-cs4/256/File-Adobe-Dreamweaver-XML-01-icon.png
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

        const LoadingDocument = document.getElementById("loading-overlay")
        const LoadTable = document.getElementById("loading-overlay-container")
        const a = document.getElementById("next-page-btn")
        const ButtonNextPage = window.getComputedStyle(a);
        const LoadDocOff = window.getComputedStyle(LoadingDocument)
        const i = document.querySelector(".collapse.navbar-collapse")
        const AllLogsButton = document.createElement("button")
        const OffAllLogsButton = document.createElement("button")
        var lol = 1;

        AllLogsButton.style.marginRight = "70px"
        AllLogsButton.style.borderRadius = "10px"

        OffAllLogsButton.style.position = "fixed"
        OffAllLogsButton.style.top = "550px"
        OffAllLogsButton.style.borderRadius = "10px"

        AllLogsButton.textContent = "Все логи";
        OffAllLogsButton.textContent = "Остановить";

        i.prepend(AllLogsButton);
        LoadTable.prepend(OffAllLogsButton);

        function AllLogs() {
            if (ButtonNextPage.display == "block" && lol == 1) {
                setTimeout(function() {
                    console.log("Нажал");
                    a.click();
                    AllLogs();
                }, 3000);
            }
        }

        function OffAllLogs() {
            lol = 0
            setTimeout(function() {
                lol = 1
         }, 4000);
            console.log("Остановись")
      }

        AllLogsButton.addEventListener('click', () => {
            AllLogs()
            AllLogsButton.style.background = "#d0db02"
                                                      })
        OffAllLogsButton.addEventListener("click", () => {
            AllLogsButton.style.background = "#fff"
            OffAllLogs()
                                                      })
})();