mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Use CSS :has to hide search ads (fix #3997)
This commit is contained in:
parent
3bdd8ee4d9
commit
66307a7049
22
README.md
22
README.md
@ -40,7 +40,6 @@
|
||||
- 默认不对未登录的状态做适配.
|
||||
- 新版本一旦正式发布, 就不再对旧版本做任何技术支持.
|
||||
- 使用外部网站的链接时 (如将下载任务发送到自己的服务器 / 使用链接安装组件等) 可能会提示"脚本试图访问跨域资源", 请选择"始终允许".
|
||||
- 需要在至少 1400 x 800 以上的逻辑分辨率下使用.
|
||||
|
||||
| 正式版 (jsDelivr 源) | 正式版 (GitHub 源) | 预览版 |
|
||||
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
||||
@ -73,16 +72,27 @@
|
||||
|
||||
<img alt="about-panel" src="images/v2/about-panel.jpg" width="450">
|
||||
|
||||
# 推荐配置
|
||||
- 操作系统: 64-bit Windows 10 / macOS Sonoma
|
||||
- 分辨率: 3840x2160 / 192ppi
|
||||
- 浏览器: Chrome 100+ / Firefox 103+ / Safari 15.4+ (仅理论上能运行, 没测试过)
|
||||
# 配置
|
||||
## 最低配置
|
||||
- 操作系统: Windows 10 / macOS Big Sur
|
||||
- 分辨率: 1920x1080, 缩放 125%
|
||||
- 浏览器: Chrome 105+ / Firefox 121+ / Safari 15.4+ (仅理论上能运行, 没测试过)
|
||||
- 处理器: Intel Core i7-9750H / AMD Ryzen 5 5600H
|
||||
- 内存: 8GB
|
||||
- 脚本管理器: Tampermonkey 4.14 / Violentmonkey 2.13
|
||||
- 脚本管理器: Tampermonkey 5.0 / Violentmonkey 2.18
|
||||
- 显卡: GeForce GTX 1050 / Radeon HD 7870
|
||||
- 网络: 10MB/s
|
||||
|
||||
## 推荐配置
|
||||
- 操作系统: Windows 10 / macOS Sonoma
|
||||
- 分辨率: 3840x2160, 缩放 200%
|
||||
- 浏览器: Chrome 120+ / Firefox 121+
|
||||
- 处理器: Intel Core i7-12700H / AMD Ryzen 7 7840HS
|
||||
- 内存: 32GB
|
||||
- 脚本管理器: Tampermonkey 5.0 / Violentmonkey 2.18
|
||||
- 显卡: GeForce RTX 3060 / Radeon RX 6600XT
|
||||
- 网络: 20MB/s
|
||||
|
||||
# 兼容性
|
||||
|
||||
## 脚本管理器
|
||||
|
||||
@ -83,28 +83,6 @@ body.dark .blocked-ads.new {
|
||||
body:not(.preserve-feed-goods) .bili-dyn-content__orig__additional:has(.dyn-goods) {
|
||||
margin: 0 !important;
|
||||
}
|
||||
.bili-video-card__wrap {
|
||||
a[href*='cm.bilibili.com'] {
|
||||
pointer-events: none !important;
|
||||
cursor: default !important;
|
||||
|
||||
> * {
|
||||
visibility: hidden !important;
|
||||
}
|
||||
& ~ .bili-video-card__info {
|
||||
display: none !important;
|
||||
}
|
||||
body.promotion-show-placeholder &::before {
|
||||
content: '🚫已屏蔽广告';
|
||||
border-radius: 6px;
|
||||
@include h-center();
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
font-size: 16px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #8882;
|
||||
}
|
||||
}
|
||||
.bili-video-card__wrap:has(a[href*='cm.bilibili.com']) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user