您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides MAL-Sync popups that contain "Chapter: X/X" so they don't appear after finishing a chapter.
当前为
// ==UserScript== // @name Hide MAL-Sync Chapter Popups // @namespace http://tampermonkey.net/ // @version 1.0 // @description Hides MAL-Sync popups that contain "Chapter: X/X" so they don't appear after finishing a chapter. // @author YourName // @match (Insert your urls here) // @run-at document-end // @grant none // @license MIT // ==/UserScript== (function() { const hideChapterFlash = () => { document.querySelectorAll('.flash.flashinfo').forEach(el => { const txt = el.textContent || ''; if (/Chapter:\s*\d+\s*\/\s*\d+/i.test(txt)) { el.style.display = 'none'; el.style.visibility = 'hidden'; el.style.pointerEvents = 'none'; } }); }; new MutationObserver(hideChapterFlash).observe(document.documentElement, { childList: true, subtree: true }); hideChapterFlash(); })();