您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
密
// ==UserScript== // @name huang广 // @namespace http://sonothing.top/ // @version 2.0 // @description 密 // @author 林 // @match https://www.mado17.xyz/ // @match https://www.mado17.xyz/* // @icon https://www.mado17.xyz/favicon.ico // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; function removeFirstSectionDiv() { const firstSection = document.querySelector('section'); if (firstSection) { const firstDiv = firstSection.querySelector('div'); if (firstDiv) { firstDiv.remove(); } } } function removeElementsByClassName(classNames) { classNames.forEach(className => { const element = document.getElementsByClassName(className)[0]; if (element) { element.remove(); } }); } // 提取要移除的类名列表 const classNamesToRemove = ['topic', 'lfimg', 'rtimg', 'bdpic']; // 确保URL的完整比较 const hostname = new URL(window.location.href).hostname; if (hostname === 'www.mado17.xyz') { // 移除指定类名的元素 removeElementsByClassName(classNamesToRemove); // 移除第一个section内的div removeFirstSectionDiv(); } else { // 在其他情况下,也移除第一个section内的div removeFirstSectionDiv(); // 这里可以添加其他特定逻辑,如果需要的话 } })();