Aternos 隐藏广告

在不使用广告拦截器的情况下隐藏Aternos网站上的广告(只是隐藏)

/* ==UserStyle==
@name           Aternos 隐藏广告
@namespace      aternos_hide_ads
@version        0.1.0
@description    在不使用广告拦截器的情况下隐藏Aternos网站上的广告(只是隐藏)
@author         lingbopro
@license        WTFPL
@preprocessor   stylus
@var checkbox hide_ads "隐藏广告" 1
@var checkbox hide_exaroton "隐藏顶部 Exaroton 推广信息" 1
@var checkbox hide_ram_boost "隐藏 RAM 升级横幅" 0
@var checkbox hide_tutor_vid "隐藏教程视频" 1
==/UserStyle== */
@-moz-document domain("aternos.org") {
    if hide_ads {
        div:has(>.ad-label-wrapper) {
            display: none;
        }

        div[id^=google_ads_iframe],
        span:has(div[id^=google_ads_iframe]) {
            display: none;
            pointer-events: none;
            opacity: 0;
        }
    }

    if hide_exaroton {
        .header-link-exaroton {
            display: none;
        }
    }

    if hide_ram_boost {
        .boost-cta-box {
            display: none;
        }
    }

    if hide_tutor_vid {
        .server-tutorials {
            display: none;
        }
    }
}