您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
"app.kuaijing" free. Automatically remove elements with class "ant-modal-root"
// ==UserScript== // @name "app.kuaijing" free // @namespace http://tampermonkey.net/ // @version 2025-01-07T11:44 // @description "app.kuaijing" free. Automatically remove elements with class "ant-modal-root" // @author Sufjan // @match *://app.kuaijingai.com/* // @grant none // @license Sufjan // ==/UserScript== (function() { 'use strict'; console.log("\"app.kuaijing\" free"); // 定义一个函数,用于删除 class="ant-modal-root" 的整个元素 function removeAntModalRootElements() { const elements = document.querySelectorAll('.ant-modal-root'); elements.forEach(element => { if(element.innerHTML.indexOf('到期提醒') !== -1) element.remove(); }); console.log(`Removed ${elements.length} ant-modal-root element(s).`); } removeAntModalRootElements(); setInterval(() => { console.log("Executing periodic check..."); removeAntModalRootElements(); }, 2000); })();