您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
主页显示
// ==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(); })();