您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2025/8/1 13:33:00
// ==UserScript== // @name 路由器显示隐藏设置 // @namespace Violentmonkey Scripts // @match http://192.168.*.*/* // @grant none // @version 1.0 // @author lqs1848 // @run-at document-end. // @description 2025/8/1 13:33:00 // @supportURL https://blog.lqs1848.top/ // @license MIT // ==/UserScript== 'use strict'; function removeDisplayNone(){ const allElements = document.querySelectorAll('tr'); allElements.forEach(element => { const computedStyle = window.getComputedStyle(element); if (computedStyle.display === 'none') { element.style.display = ''; } }); } const targetNode = document; const config = { attributes: true, childList: true, subtree: true}; const callback = function(mutationsList, observer) { removeDisplayNone(); }; const observer = new MutationObserver(callback); observer.observe(targetNode, config);