Inject Style to Show Hidden Element

Show the hidden paginator on the page

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Inject Style to Show Hidden Element
// @version      1.0
// @author       ArVam
// @description  Show the hidden paginator on the page
// @license      MIT
// @namespace    -
// @match        https://xx.knit.bid/article/*
// @icon         https://xx.knit.bid/static/imeizi.png
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // Log to confirm the Userscript is running
    console.log('Userscript is running!');
    // Function to create and append the style element
    function addStyleElement() {
        console.log('Adding style element');
        // Create a new <style> element
        var style = document.createElement('style');
        style.innerHTML = '.pagination-multi { display: block !important; }';
        // Append the <style> element to the <head>
        document.head.appendChild(style);
        console.log('Style element added to head');
    }
    // Check if the document is already loaded
    if (document.readyState === 'loading') {
        // If the DOM is still loading, use DOMContentLoaded
        document.addEventListener('DOMContentLoaded', function() {
            console.log('DOM fully loaded and parsed');
            addStyleElement();
        });
    } else {
        // If the DOM is already loaded, run the function immediately
        console.log('Document already loaded');
        addStyleElement();
    }
})();