/* ==UserStyle== @name Bilibili Lite @namespace github.com/openstyles/stylus @version 0.9.0 @description Bilibili 移除部分广告,以及禁用部分视图 @author zhaonan @preprocessor stylus @updateURL https://invalidunit.github.io/css_stylus/bilibili_lite.user.css @advanced checkbox hide-watch-later "隐藏添加至稍后再看" 0 @advanced checkbox hide-charge "隐藏充电按钮" 1 @advanced checkbox hide-video-cmd "隐藏播放视频中三连" 1 @advanced checkbox hide-video-follow "隐藏播放视频中左上角关注" 1 @advanced checkbox hide-live-status "隐藏 up 直播中标记" 1 @advanced checkbox hide-video-ads "隐藏播放视频页广告" 1 @advanced checkbox hide-barrage-list "隐藏播放视频右侧弹幕列表" 1 @advanced checkbox front-page-load-more "首页预加载更多视频卡" 1 @advanced checkbox hide-front-page-grid "隐藏首页顶部滚动推荐" 1 @advanced checkbox hide-front-page-ads "隐藏首页视频中插入的广告" 1 @advanced checkbox hide-front-page-multi-tab-video "隐藏首页多选项卡视频" 1 @advanced checkbox hide-desktop-download "隐藏首页右下角下载桌面端" 1 @advanced checkbox hide-home-right-down-ads "隐藏首页右下角广告" 1 @advanced checkbox hide-home-watchlater "隐藏首页右下稍后再看" 0 @advanced checkbox hide-home-refresh "隐藏首页右下刷新内容" 0 @advanced checkbox hide-home-feedback "隐藏首页右下反馈" 1 @advanced checkbox hide-home-back-to-top "隐藏首页右下返回顶部" 0 @advanced checkbox hide-search-results-ads "隐藏搜索结果顶部广告" 1 @advanced checkbox hide-search-page-ads "隐藏搜索页广告卡" 1 @advanced checkbox hide-user-pendant "隐藏头像挂件" 1 @advanced checkbox hide-ai-title "隐藏视频下方 AI 总结测试标题" 1 @advanced checkbox hide-ai-in-unsupport "若不支持,则隐藏视频下方 AI" 1 @advanced checkbox hide-video-notes "隐藏视频下方笔记" 1 @advanced checkbox hide-feedback "隐藏右下反馈" 1 @advanced checkbox hide-vip "隐藏大会员痕迹" 1 @advanced checkbox hide-verify "隐藏认证标识" 1 @advanced checkbox show-video-desc "强制展开视频介绍" 1 @advanced checkbox hide-community "隐藏动态右侧的社区中心" 1 @advanced checkbox hide-recommend "隐藏动态中相关应用推荐" 1 @advanced checkbox hide-user-home-auth "隐藏用户主页认证" 1 @advanced checkbox hide-user-home-upload "隐藏用户主页创作中心" 1 @advanced checkbox hide-user-home-charge "隐藏用户主页充电" 1 @advanced checkbox hide-user-home-notice "隐藏用户主页公告" 0 @advanced checkbox hide-user-home-live-streaming "隐藏用户主页直播间" 1 @advanced checkbox hide-user-home-game "隐藏用户主页游戏" 1 @advanced checkbox hide-user-home-user-info "隐藏用户主页个人资料" 0 @advanced checkbox hide-top-right-user-vip "隐藏导航栏个人菜单中的大会员广告" 1 @advanced checkbox hide-top-left-01 "隐藏导航栏左侧 01" 0 @advanced checkbox hide-top-left-02 "隐藏导航栏左侧 02" 0 @advanced checkbox hide-top-left-03 "隐藏导航栏左侧 03" 0 @advanced checkbox hide-top-left-04 "隐藏导航栏左侧 04" 0 @advanced checkbox hide-top-left-05 "隐藏导航栏左侧 05" 1 @advanced checkbox hide-top-left-06 "隐藏导航栏左侧 06" 0 @advanced checkbox hide-top-left-07 "隐藏导航栏左侧 07" 1 @advanced checkbox hide-top-left-08 "隐藏导航栏左侧 08" 1 @advanced checkbox hide-top-left-09 "隐藏导航栏左侧 09" 1 @advanced checkbox hide-top-left-10 "隐藏导航栏左侧 10" 1 @advanced checkbox hide-top-right-01 "隐藏导航栏右侧 01" 0 @advanced checkbox hide-top-right-02 "隐藏导航栏右侧 02" 1 @advanced checkbox hide-top-right-03 "隐藏导航栏右侧 03" 0 @advanced checkbox hide-top-right-04 "隐藏导航栏右侧 04" 0 @advanced checkbox hide-top-right-05 "隐藏导航栏右侧 05" 0 @advanced checkbox hide-top-right-06 "隐藏导航栏右侧 06" 0 @advanced checkbox hide-top-right-07 "隐藏导航栏右侧 07" 1 @advanced checkbox hide-top-right-08 "隐藏导航栏右侧 08" 1 @advanced number custom-window-offset-right "自定义导航栏右侧悬浮窗口偏移" -340 @advanced checkbox hide-bottom "隐藏底部" 1 ==/UserStyle== */ @-moz-document domain("bilibili.com") { /* 全局 */ /* .logout-item::after{ content: 'Bilibili Lite(0.9.0) by zhaonan'; font-size: 8px; opacity: 0.15; position: absolute; transform: translateY(15px); } */ :root{ --BL-text-color-1: #000000; --BL-text-color-2: #FFFFFF; } html.bili_dark{ --BL-text-color-1: #FFFFFF; } html.night-mode{ --BL-text-color-1: #FFFFFF; } /* 修复导航栏搜索框不居中问题,这应该会绝对居中 */ .center-search-container{ position: absolute !important; transform: translate(-50%, -50%) !important; left: 50%; top: 50%; width: 30%; } /* 修复导航栏右侧悬浮窗口过于偏移出屏幕右边的问题 */ .right-entry__main .right-entry__item:nth-child(n+4) .v-popover{ margin-left: custom-window-offset-right * 1% !important; } /* 隐藏 Bilibili 顶部检测到去广告插件的提示横幅 */ .adblock-tips{ display: none !important; } /* 隐藏弹幕发送框内多余的东西 */ .bpx-player-video-inputbar .bpx-player-dm-hint{ display: none !important; } /* “未经作者授权,禁止转载” 文字透明度调整 */ .copyright div.copyright-text{ opacity: 0.4 !important; pointer-events: none; } /* 隐藏视频右侧播放列表的 UP 图标 */ .upname svg{ display: none !important; } if front-page-load-more { /* 将 .load-more-anchor 往上偏移 1000px 来达到加载更多视频卡的目的 */ .load-more-anchor{ transform: translateY(-1000px) !important; } } if hide-front-page-grid { /* 首页视频左上方滚动推荐 */ .recommended-swipe{ display: none !important; } /* 修复首页前两行视频与接下来视频卡大小不一致的问题 */ .recommended-container_floor-aside .container>* { margin-top: 0px !important; } .recommended-container_floor-aside .container { grid-gap: 36px 20px !important; } } if hide-front-page-ads { /* 首页视频中偶尔插入一两个广告隐藏 */ .feed-card:has(div.bili-feed-card>div.bili-video-card.is-rcmd:not(.enable-no-interest)){ display: none !important; } .bili-feed-card:has(.bili-video-card.is-rcmd:not(.enable-no-interest)){ display: none !important; } } if hide-front-page-multi-tab-video { /* 首页隐藏多选项卡视频(直播,番剧,国创,综艺。。。) */ .floor-single-card{ display: none !important; } } if hide-desktop-download { /* 首页右下角会出现下载桌面端广告,概率出现? */ .desktop-download-tip{ display: none !important; } } if hide-home-right-down-ads { /* 首页右下角广告 */ .adcard{ display: none !important; } .btn-ad{ display: none !important; } } if hide-watch-later { /* 隐藏视频图片右上角稍后再看按钮 */ .bili-watch-later{ visibility: hidden !important; } .watch-later-video{ visibility: hidden !important; } } if hide-charge { /* 隐藏作者下方充电按钮 */ .old-charge-btn,.new-charge-btn{ display: none !important; } /* 隐藏视频播放结束时的充电按钮 */ .bpx-player-ending-functions-electric{ display: none !important; } /* 强制修正充电旁边关注按钮位置,使其看起来左对齐 */ .bpx-player-ending-functions-follow{ margin-left: 0px !important; } /* 隐藏主页内的充电按钮 */ .col-2 .section.elec{ display: none !important; } } if hide-video-cmd { /* 隐藏视频播放时,播放窗口中间会出现的三连框 */ .bpx-player-video-area .bpx-player-cmd-dm-wrap{ display: none !important; } } if hide-video-follow { /* 隐藏视频播放时,左上角关注按钮 */ .bpx-player-top-left-follow{ display: none !important; } } if hide-live-status { /* 隐藏 up 主正在直播中标记 */ /* 用户主页中隐藏 up 主正在直播中标记 */ .live-ani{ display: none !important; } /* 视频播放右上角作者信息“直播中” */ .live-mask{ display: none !important; } /* 视频播放右上角作者信息直播水波动画 */ .live-cycle{ display: none !important; } /* 动态页左侧直播中 */ .bili-dyn-live-users__item__living{ display: none !important; } } if hide-video-ads { /* 视频播放页 */ /* 视频右边,接下来播放上方出现的广告 */ .video-card-ad-small{ display: none !important; } #slide_ad, .slide-ad-exp{ display: none !important; } /* 番剧右边,弹幕列表上方出现的广告 */ .plp-r .paybar_container__WApBR{ display: none !important; } /* 视频右边,接下来播放下方出现的广告,例如视频与“我的世界”有关这里将会显示我的世界 B 站版下载 */ .video-page-game-card-small{ display: none !important; } /* 视频右边,列表最下方的广告,概率出现? */ #right-bottom-banner, .right-bottom-banner{ display: none !important; } /* 视频右边,列表最下方的广告下方“大家围观的直播”,概率出现? */ .pop-live-small-mode{ display: none !important; } /* 视频右边,接下来播放下方推荐视频中插入的广告,第一条或者第二条 */ .video-page-special-card-small{ display: none !important; } /* 评论区上方广告横幅 */ #bannerAd{ display: none !important; } .comment-container .reply-header div .reply-notice{ display: none !important; } #activity_vote{ display: none !important; } .left-container .activity-m-v1:has(.inside-wrp){ display: none !important; } .ad-report, .ad-floor-exp{ display: none !important; } /* 视频下方评论区使用 bili-comments,感觉整个评论区应该都搞不了了 */ } if hide-barrage-list { /* 视频右边,弹幕列表 */ .danmaku-box{ display: none !important; } } if hide-user-pendant { /* 个人主页头像挂件 */ .b-avatar__layers div:nth-child(2){ display: none !important; } /* 动态页详情作者头像挂件 */ .b-avatar__layers .b-avatar__layer[data-layer-tag="PENDENT_LAYER"]{ display: none !important; } .b-avatar__layers .b-avatar__layer[data-layer-tag="ICON_LAYER"]{ display: none !important; } /* 动态页头像大小修复(强制指定新大小) */ .b-avatar__layers .b-avatar__layer[data-layer-tag="AVATAR_LAYER"]{ width: 50px !important; height: 50px !important; } /* 播放页右上角作者头像挂件 */ .bili-avatar-pendent-dom{ display: none !important; } /* 播放视频作者头像带挂件修复 */ .up-avatar-wrap .up-avatar .bili-avatar{ width: 48px !important; height: 48px !important; transform: translate(0px, 0px) !important; } /* 头像上 NFT 挂件 */ .bili-avatar-nft-icon{ display: none !important; } } if hide-ai-title { /* 视频下方 AI 总结上方的测试版文字隐藏 */ .video-ai-assistant-bg span{ display: none !important; } /* 视频下方 AI 总结旁边文字 */ .video-ai-assistant svg.video-ai-assistant-icon{ margin-right: -0px !important; } .video-ai-assistant-info{ text-indent: -9999px !important; } } if hide-ai-in-unsupport { /* 若视频不支持使用 AI 总结,则直接隐藏整个 AI 总结图标 */ .toolbar-right-ai.disabled{ display: none !important; } } if hide-video-notes { /* 隐藏视频下方笔记 */ .video-note{ display: none !important; } } if hide-home-watchlater { /* 主页右下角稍后播放按钮 */ .palette-button-wrap .watchlater-pip-button{ display: none !important; } } if hide-home-refresh { /* 主页右下角刷新内容按钮 */ .palette-button-wrap .flexible-roll-btn{ display: none !important; } } if hide-home-feedback { /* 主页右下角反馈按钮 */ .palette-button-wrap .storage-box{ display: none !important; } } if hide-home-back-to-top { /* 主页右下角返回顶部按钮 */ .palette-button-wrap .top-btn-wrap{ display: none !important; } } if hide-search-results-ads { /* 隐藏搜索结果顶部广告 */ .search-all-list.activity-game-list{ display: none !important; } } if hide-search-page-ads { /* 隐藏搜索页广告卡 */ .video-list>div:has(a[href*="cm.bilibili.com"]) { display: none !important; } } if hide-feedback { /* 主页右下角反馈按钮 */ .navTools_floatNavExp__iNll7{ display: none !important; } } if hide-vip { /* 顶部导航栏个人资料处修正大会员红色字体为黑色 */ .avatar-panel-popover .nickname-item{ color: var(--BL-text-color-1) !important; } .avatar-panel-popover .nickname-item.dark{ color: var(--BL-text-color-2) !important; } /* 顶部导航栏个人名称下方的狗牌 */ .avatar-panel-popover .vip-item{ display: none !important; } /* 顶部导航栏个人头像旁边的“大”字,以及个人主页头像旁边的“大”字 */ .bili-avatar-icon-big-vip{ display: none !important; } /* 用户主页中的年度大会员狗牌 */ .h-viplabel{ display: none !important; } .h-vipType{ display: none !important; } /* 动态首页中的年度大会员狗牌 */ .bili-dyn-my-info__header .info .info__icon span:nth-child(1){ display: none !important; } .bili-dyn-my-info__header .info .info__icon span:nth-child(2){ margin-left: -1px !important; } .upinfo-detail__top .vip{ display: none !important; } /* 隐藏播放器中分辨率旁的大会员标识,当然依然买了才能用 */ .bpx-player-ctrl-quality-badge-bigvip{ display: none !important; } .bili-pay-box-wrapper div:nth-child(2){ display: none !important; } .bili-pay-box-wrapper{ height: 97px !important; } /* 新番中大量与大会员相关的元素 */ /* 视频左下角,成为大会员按钮 */ .promptBar_remindActionWrap___CcG1{ display: none !important; } /* 视频左下角,“本片是大会员专享内容”文本 */ .promptBar_title__PKo6n{ display: none !important; } /* 视频右上角,“开通大会员 热播内容看不停” */ .vipPaybar_container__p_lv5{ display: none !important; } /* 番剧清晰度,1080p 下方开通大会员提示 */ .bpx-player-ctrl-quality-text.bpx-player-ctrl-quality-text-vip-trial div:nth-child(2){ display: none !important; } /* 番剧清晰度,免费体验大会员清晰度隐藏 */ .bpx-player-ctrl-quality-menu-feedback{ display: none !important; } /* 隐藏成为大会员全屏弹窗 */ .dialog1080p_popup_1080p_wrapper__8XOGL{ display: none !important; } /* 视频右上方作者处,资料展示的大会员狗牌 */ .user-label{ display: none !important; } /* 视频右上方作者处,资料展示的用户名修正为黑色 */ .up-name{ color: var(--BL-text-color-1) !important; } .user .name{ color: var(--BL-text-color-1) !important; } /* 视频评论区大会员名字修正为黑色 */ .user-name,.sub-user-name{ color: var(--BL-text-color-1) !important; } /* 视频评论区大会员名片中名字修正为黑色 */ .card-user-name{ color: var(--BL-text-color-1) !important; } /* 视频评论区大会员名片中狗牌隐藏 */ .card-user-vip{ display: none !important; } /* 动态页点进去查看详情后作者名称修正为黑色 */ .opus-module-author__name{ color: var(--BL-text-color-1) !important; } /* 动态首页,左上个人用户名 */ .info .info__name{ color: var(--BL-text-color-1) !important; } /* 动态页其他用户名字修正名称为黑色 */ span.bili-dyn-title__text{ color: var(--BL-text-color-1) !important; } /* 动态页其他用户身份卡名字修正名称为黑色 */ a.bili-user-profile-view__info__uname{ color: var(--BL-text-color-1) !important; } /* 动态页其他用户消息页头像展开后狗牌 */ .bili-user-profile-view__info__viplabel{ display: none !important; } } if hide-verify { /* 头像下方认证标识 */ .b-avatar__layers div:nth-child(3){ display: none !important; } /* 用户卡内头像下方认证标识 */ .bili-user-profile-view__avatar__icon{ display: none !important; } /* 用户卡内下方认证标识及其说明 */ .bili-user-profile-view__info__officialverify{ display: none !important; } .user-info-wrapper .info .official-wrapper{ display: none !important; } /* 动态页评论区内头像下方认证标识 */ .bili-avatar-icon{ display: none !important; } /* 动态页评论区内身份卡下方认证标识 */ .card-verify-info{ display: none !important; } /* 动态页评论区内身份卡下方 NFT 标识 */ .b-avatar__layers div:nth-child(4){ display: none !important; } /* 视频下方评论区,NFT 标识 */ .bili-avatar-nft-icon1{ display: none !important; } } if show-video-desc { /* 强制展开视频介绍 */ .video-desc-container .basic-desc-info{ height: 100% !important; } .video-desc-container .toggle-btn{ display: none !important; } } if hide-recommend { /* 动态卡片的内容下方点赞上方的推荐应用,例如第五人格的动态下方会推荐第五人格游戏下载 */ .bili-dyn-content__orig__additional{ display: none !important; } } if hide-user-home-auth { /* 用户主页认证 */ .space-home .aside .home-aside-section:has(.auth-section){ display: none !important; } /* 其他用户主页认证 */ .space-dynamic .space-dynamic__right .dynamic-aside-section:has(.auth-section){ display: none !important; } } if hide-user-home-upload { /* 用户主页创作中心 */ .space-home .aside .home-aside-section:has(.upload-section){ display: none !important; } /* 其他用户主页创作中心 */ .space-dynamic .space-dynamic__right .dynamic-aside-section:has(.upload-section){ display: none !important; } } if hide-user-home-charge { /* 用户主页充电 */ .space-home .aside .home-aside-section:has(.elec-section){ display: none !important; } /* 其他用户主页充电 */ .space-dynamic .space-dynamic__right .dynamic-aside-section:has(.elec-section){ display: none !important; } } if hide-user-home-notice { /* 用户主页公告 */ .space-home .aside .home-aside-section:has(.ann-section){ display: none !important; } /* 其他用户主页公告 */ .space-dynamic .space-dynamic__right .dynamic-aside-section:has(.ann-section){ display: none !important; } } if hide-user-home-live-streaming { /* 用户主页直播间 */ .space-home .aside .home-aside-section:has(.aside-card){ display: none !important; } /* 其他用户主页直播间 */ .space-dynamic .space-dynamic__right .dynamic-aside-section:has(.aside-card){ display: none !important; } } if hide-user-home-game { /* 用户主页游戏 */ .space-home .aside .home-aside-section:has(.game-section){ display: none !important; } /* 其他用户主页游戏 */ .space-dynamic .space-dynamic__right .dynamic-aside-section:has(.game-section){ display: none !important; } } if hide-user-home-user-info { /* 用户主页个人资料 */ .space-home .aside .home-aside-section:has(.info-section){ display: none !important; } /* 其他用户主页个人资料 */ .space-dynamic .space-dynamic__right .dynamic-aside-section:has(.info-section){ display: none !important; } } if hide-top-right-user-vip { /* 顶部导航栏个人中的大会员广告 */ .avatar-panel-popover .vip-entry-containter{ display: none !important; } } if hide-top-left-01 { /* 顶部导航栏左侧第 01 个 */ .left-entry div:nth-child(1){ display: none !important; } } if hide-top-left-02 { /* 顶部导航栏左侧第 02 个 */ .left-entry div:nth-child(2){ display: none !important; } } if hide-top-left-03 { /* 顶部导航栏左侧第 03 个 */ .left-entry div:nth-child(3){ display: none !important; } } if hide-top-left-04 { /* 顶部导航栏左侧第 04 个 */ .left-entry div:nth-child(4){ display: none !important; } } if hide-top-left-05 { /* 顶部导航栏左侧第 05 个, 当前为“会员购” */ .left-entry div:nth-child(5){ display: none !important; } } if hide-top-left-06 { /* 顶部导航栏左侧第 06 个 */ .left-entry div:nth-child(6){ display: none !important; } } if hide-top-left-07 { /* 顶部导航栏左侧第 07 个, 当前为“赛事” */ .left-entry div:nth-child(7){ display: none !important; } } if hide-top-left-08 { /* 顶部导航栏左侧第 08 个, 当前为“下载客户端” */ .left-entry div:nth-child(8){ display: none !important; } } if hide-top-left-09 { /* 顶部导航栏左侧第 09 个, 啥都没有,先预留 */ .left-entry div:nth-child(9){ display: none !important; } } if hide-top-left-10 { /* 顶部导航栏左侧第 10 个, 啥都没有,先预留 */ .left-entry div:nth-child(10){ display: none !important; } } if hide-top-right-01 { /* 顶部导航栏右侧第 01 个 */ .right-entry .right-entry__main .right-entry__item:nth-child(1){ display: none !important; } } if hide-top-right-02 { /* 顶部导航栏右侧第 02 个, 当前为“大会员” */ .right-entry .right-entry__main .right-entry__item:nth-child(2){ display: none !important; } } if hide-top-right-03 { /* 顶部导航栏右侧第 03 个 */ .right-entry .right-entry__main .right-entry__item:nth-child(3){ display: none !important; } } if hide-top-right-04 { /* 顶部导航栏右侧第 04 个 */ .right-entry .right-entry__main .right-entry__item:nth-child(4){ display: none !important; } } if hide-top-right-05 { /* 顶部导航栏右侧第 05 个 */ .right-entry .right-entry__main .right-entry__item:nth-child(5){ display: none !important; } } if hide-top-right-06 { /* 顶部导航栏右侧第 06 个 */ .right-entry .right-entry__main .right-entry__item:nth-child(6){ display: none !important; } } if hide-top-right-07 { /* 顶部导航栏右侧第 07 个, 当前为“创作中心” */ .right-entry .right-entry__main .right-entry__item:nth-child(7){ display: none !important; } } if hide-top-right-08 { /* 顶部导航栏右侧第 08 个, 当前为“投稿” */ .right-entry .right-entry__main .right-entry__item:nth-child(8){ display: none !important; } } if hide-bottom { /* 整个底部栏隐藏 */ .bili-footer{ display: none !important; } /* 直播 */ #link-footer-vm{ display: none !important; } } } @-moz-document domain("t.bilibili.com") { /* 动态首页 */ /* 社区中心下方广告卡 */ .right section:has(.bili-dyn-ads){ display: none !important; } if hide-community { /* 动态首页右侧上方社区中心 */ .right section:has(.bili-dyn-banner){ display: none !important; } } }