您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
贞德去广告特供版.
// ==UserScript== // @name 贞德去广告特供版 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 贞德去广告特供版. // @author 空白 // @match *://*.hvhbbs.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to remove specific elements const removeElements = () => { // Remove style elements document.querySelectorAll('div.p-body-inner.margin-add style').forEach(styleElement => styleElement.remove()); // Remove swiper-wrapper div elements document.querySelectorAll('div.swiper-wrapper').forEach(swiperElement => swiperElement.remove()); }; // Initial removal in case elements are already present removeElements(); // Create a MutationObserver to observe the document for any changes const observer = new MutationObserver(removeElements); // Start observing the document for changes in the entire tree and subtree observer.observe(document.body, { childList: true, subtree: true }); })();