您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
隐藏 Chiphell 网站上的用户勋章
// ==UserScript== // @name Chiphell 隐藏勋章 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 隐藏 Chiphell 网站上的用户勋章 // @author YourName // @match https://www.chiphell.com/* // @grant none // @license MIT // @run-at document-end // ==/UserScript== (function() { 'use strict'; // 使用 CSS 样式插入的方法隐藏所有 'md_ctrl' 类的元素 var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = 'p.md_ctrl { display: none; }'; document.head.appendChild(style); console.log('初始加载完成,已隐藏元素'); // 监测 DOM 变化以隐藏动态加载的元素 var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { mutation.addedNodes.forEach(function(node) { if (node.nodeType === 1 && node.matches('p.md_ctrl')) { node.style.display = 'none'; console.log('隐藏新的勋章元素'); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址