您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
尝试关闭uview-plus网站上的广告
当前为
// ==UserScript== // @name uview-plus强制关闭广告 // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description 尝试关闭uview-plus网站上的广告 // @author You // @match https://uview-plus.jiangruyi.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function removeAds() { console.log('开始删除广告'); const noAdTip = document.querySelector('.fc-ab-root'); if (noAdTip) { noAdTip.remove(); console.log('noAdTip removed'); } else { console.log('noAdTip not found'); } const noSeeAdTip = document.querySelector('.el-dialog__wrapper'); if (noSeeAdTip) { noSeeAdTip.remove(); console.log('noSeeAdTip removed'); } else { console.log('noSeeAdTip not found'); } const modalMask = document.querySelector('.v-modal'); if (modalMask) { modalMask.remove(); console.log('modalMask removed'); } else { console.log('modalMask not found'); } } document.addEventListener('DOMContentLoaded', function() { console.log('DOM fully loaded and parsed, 开始删除广告'); removeAds(); }); // 如果广告是动态加载的,使用 MutationObserver 监听 DOM 变化 const observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (mutation.type === 'childList') { removeAds(); } }); }); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址