您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Remove the ad card and overlay automatically when the page loads.
当前为
// ==UserScript== // @name Remove Ad Card and Overlay // @namespace http://greasyfork.icu/en/users/1427435-fevnax // @version 1 // @description Remove the ad card and overlay automatically when the page loads. // @author Harsh P // @match https://asuracomic.net/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; const interval = setInterval(() => { const adCard = document.querySelector('.bg-gradient-to-br.from-indigo-900.via-purple-900.to-indigo-800.p-6'); const overlay = document.querySelector('.fixed.inset-0.bg-gray-900.bg-opacity-75.flex.items-center.justify-center.z-50.p-4'); if (adCard) { adCard.remove(); console.log('Ad card successfully removed.'); } if (overlay) { overlay.remove(); console.log('Overlay successfully removed.'); } if (adCard && overlay) { clearInterval(interval); } }, 500); setTimeout(() => clearInterval(interval), 10000); })();