洛谷系统维护主页显示

主页显示

// ==UserScript==
// @name         洛谷系统维护主页显示
// @version      0.3
// @description  主页显示
// @match        https://www.luogu.com.cn/user*
// @author       MlkMathew
// @license      MIT
// @grant        none
// @namespace    https://greasyfork.org/users/1068192
// ==/UserScript==

(function() {
    'use strict';
    function work(){
        var s=document.querySelector("#app > div.main-container > main > div > div.full-container > section.main > div > div.introduction.marked");
        if(s&&s.style.display=='none'){
            document.querySelector("#app > div.main-container > main > div > div.full-container > section.main > div > div:nth-child(2)").remove();
            document.querySelector("#app > div.main-container > main > div > div.full-container > section.main > div > div.introduction.marked").style="";
        }
    }
    window.addEventListener('load',function(){
        document.querySelector("#app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu").addEventListener("click",work);
        work();
    },false);
    document.querySelector("#app > div.main-container > main > div > div.card.user-header-container.padding-0 > div.user-header-bottom > div.menu").addEventListener("click",work);
    work();
})();