屏蔽广告

92 阅读1分钟

屏蔽uview-plus广告步骤

步骤1. 安装使用谷歌插件adguard插件

步骤2. 安装篡改猴插件并添加脚本

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      2025-02-22
// @description  try to take over the world!
// @author       You
// @match        https://www.tampermonkey.net/index.php?version=5.3.3&ext=dhdg&updated=true
// @match        *://*.youku.com/*
// @match        *://*.iqiyi.com/*
// @match        *://*.iq.com/*
// @match        *://*.le.com/*
// @match        *://v.qq.com/*
// @match        *://m.v.qq.com/*
// @match        *://3g.v.qq.com/*
// @match        *://*.tudou.com/*
// @match        *://*.mgtv.com/*
// @match        *://tv.sohu.com/*
// @match        *://*.1905.com/*
// @match        *://film.sohu.com/*
// @match        *://*.bilibili.com/*
// @match        *://*.pptv.com/*
// @match        *://*.uiadmin.net/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        none
// ==/UserScript==

(function() {

    // 保存原始的 alert 函数
    const originalAlert = window.alert;

    // 覆盖 window.alert 函数,使其不执行任何操作
    window.alert = function() {};
    document.querySelectorAll('.el-dialog__wrapper, .v-modal').forEach(item => {item.style.position = 'relative';item.style.left = item.style.top = '-10000px';})
})();