Skip to content

Bilibili Blocker by 657KB

Details

Author657KB

LicenseMIT

Categorybilibili.com

Created

Updated

Size837 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Block ads on bilibili.com and remove upload button on top bar.
屏蔽首页广告并以虚线框形式占位显示,移除顶栏的上传稿件按钮。

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name       Bilibili Blocker
@version    20241106.04.01
@namespace  ?
==/UserStyle== */

@-moz-document domain("bilibili.com") {
.right-entry-item--upload,
.download-entry,
.btn-ad {
    display: none !important;
}

div.bili-video-card:has(svg.bili-video-card__info--ad) *,
div.feed-card:has(svg.bili-video-card__info--ad) * {
    visibility: hidden;
}
div.bili-video-card:has(svg.bili-video-card__info--ad),
div.feed-card:has(svg.bili-video-card__info--ad) {
    position: relative;
    border-radius: 8px;
    border: 2px dashed rgba(0, 0, 0, .1);
}

div.bili-video-card:has(svg.bili-video-card__info--ad):after,
div.feed-card:has(svg.bili-video-card__info--ad):after {
    position: absolute;
    content: 'Blocked';
    color: rgba(0, 0, 0, .4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
}

Reviews

No reviews yet.