您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
1
// ==UserScript== // @name (更丝滑的)洛谷个人主页可见化 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 1 // @author Lawsonwang // @match https://www.luogu.com.cn/user/* // @icon https://www.google.com/s2/favicons?sz=64&domain=luogu.com.cn // @grant none // ==/UserScript== (function() { 'use strict'; let rt = document.querySelector("#app"); const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.type === 'childList') { let sb = document.querySelector(".introduction"); if (sb.style === null || sb.style.display == "block") return; sb.style.display = "block"; } }); }); const config = { subtree: true, childList: true }; observer.observe(rt, config); })();