Pixiv UI Compactor

Hides popular works block from Pixiv search page, removes unnecessary spaces to make the header ~2 times smaller.

Verze ze dne 06. 01. 2022. 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        Pixiv UI Compactor
// @description Hides popular works block from Pixiv search page, removes unnecessary spaces to make the header ~2 times smaller.
// @namespace   puic
// @include     https://www.pixiv.net/*
// @version     1.04
// @license     MIT
// @grant       GM_addStyle
// @grant       GM_xmlhttpRequest
// @grant       GM_registerMenuCommand
// @grant       GM_setValue
// @grant       GM_getValue
// ==/UserScript==
function changeWidth(){
        var pixiv_header_margin = document.getElementsByClassName("expahI")[0];
        pixiv_header_margin.style.height = "20px";
        
        var pixiv_tags_belt = document.getElementsByClassName("dztvKv")[0];
        pixiv_tags_belt.style.padding = "0px 0px 0px 0px";
        
        var pixiv_search_options = document.getElementsByClassName("laRMNP")[0];
        pixiv_search_options.style.margin = "0px 0px 0px 0px";
        
        var pixiv_main_container = document.getElementsByClassName("buukZm")[0];
        pixiv_main_container.style.padding = "0px 0px 0px 0px";
        
        var pixiv_popular_works = document.getElementsByClassName("ePRNko")[0];
        if (pixiv_popular_works) { element.parentNode.removeChild(element); }
}