/* ==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
@downloadURL https://update.greasyfork.org/scripts/547994/Aternos%20%E9%9A%90%E8%97%8F%E5%B9%BF%E5%91%8A.user.css
@updateURL https://update.greasyfork.org/scripts/547994/Aternos%20%E9%9A%90%E8%97%8F%E5%B9%BF%E5%91%8A.meta.css
==/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;
        }
    }
}