您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the advert overlay, premium card, subscription prompts, and additional ads automatically when the page loads.
// ==UserScript== // @name Asura - Advert Remover // @namespace https://gf.qytechs.cn/en/users/1427435-fevnax // @version 1.2 // @description Removes the advert overlay, premium card, subscription prompts, and additional ads automatically when the page loads. // @author Harsh P // @match https://asuracomic.net/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function removeAdvert() { var advert = document.querySelector('.fixed.inset-0.bg-gray-900.bg-opacity-75.flex.items-center.justify-center.z-50.p-4'); if (advert) { advert.remove(); console.log("Advert removed."); } } removeAdvert(); var observer = new MutationObserver(removeAdvert); observer.observe(document.body, { childList: true, subtree: true }); setTimeout(() => { const interval = setInterval(() => { try { const subHeader = document.querySelector('.bg-gradient-to-br.from-indigo-900.via-purple-900.to-indigo-800.text-white.py-8.px-4.md\\:py-12.md\\:px-10.shadow-lg.relative.overflow-hidden'); const sub = document.querySelector('.w-full.flex.justify-center'); console.log('Subscriber Header found:', subHeader); console.log('Subscribe Button found:', sub); if (subHeader) { subHeader.remove(); console.log('Subscriber Header successfully removed.'); } if (sub) { sub.remove(); console.log('Subscribe Button successfully removed.'); } if (!subHeader && !sub) { clearInterval(interval); console.log('All targeted elements removed. Stopping script.'); } } catch (error) { console.error("Error encountered while removing elements:", error); } }, 500); setTimeout(() => { clearInterval(interval); console.log('Timeout reached. Stopping script.'); }, 5000); }, 10); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址