Logs Check

try to take over the world!

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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.

(I already have a user style manager, let me install it!)

// ==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()
                                                      })
})();