您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the tracking site warning banner from comick.dev
// ==UserScript== // @name Comick Tracking Site Banner Remover // @namespace https://github.com/GooglyBlox // @version 1.0 // @description Removes the tracking site warning banner from comick.dev // @author GooglyBlox // @match https://comick.dev/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function removeBanner() { const banner = document.querySelector('div.rounded.p-2.flex.border-l-8.shadow.items-center[class*="border-red-400"][class*="bg-red-100"]'); if (banner) { const textContent = banner.textContent; if (textContent.includes('Comick is becoming a tracking site') && textContent.includes('Read First')) { banner.remove(); } } } function observeAndRemove() { removeBanner(); const observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (mutation.addedNodes.length > 0) { removeBanner(); } }); }); observer.observe(document.body, { childList: true, subtree: true }); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', observeAndRemove); } else { observeAndRemove(); } })();