Greasy Fork

Greasy Fork is available in English.

AGE动漫 CSS重构

移除广告、优化显示内容

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         AGE动漫 CSS重构
// @icon         https://acgwy.cc/wp-content/uploads/2023/01/1c5a0-www.agemys.net.png
// @namespace    https://github.com/Emokui
// @version      1.32
// @description  移除广告、优化显示内容
// @author       𝙁𝙖𝙩𝙖𝙡𝙚𝙫𝙚𝙡
// @match        https://www.agedm.org/*
// @match        https://web.agespa-01.com:8443/*
// @grant        GM_addStyle
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    // 注入 CSS 来隐藏广告和不需要的元素
    GM_addStyle(`
        /* 隐藏通知和广告相关的元素 */
        div.global_notice_box,
        div.global_notice_wrapper,
        a.nav-download-link[href="https://www.agedm.app?ref=www.agedm.org"],
        div.container.xcontainer.py-2,
        div.text_list_box.links,
        div.foot_content_wrapper.pb-3,
        div.van-cell__title,
        div.bd.van-hairline--bottom {
            display: none !important;
        }

        /* 隐藏包含广告的图片 */
        img[src*="xcdn.rltdxt.com"],
        img[src*="g52j7.com"],
        img[src*="p3.toutiaoimg.com"],
        img[src*="p1.bdxiguaimg.com/origin/1386b0000fc487ec8b2ec"] {
            display: none !important;
        }
    `);
})();