Skip to content

Commit

Permalink
update: homepage homepage-hide-ad-card
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed May 14, 2024
1 parent 191f651 commit 432e72d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.5.4

- 更新:首页净化适配页面变化

## 3.5.3

- 新增:首页隐藏稍后再看提示语
Expand Down
5 changes: 3 additions & 2 deletions src/rules/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,11 @@ if (isPageHomepage()) {
itemID: 'homepage-hide-ad-card',
description: '隐藏 广告',
defaultStatus: true,
itemCSS: `.feed-card:has(.bili-video-card__info--ad, [href*="cm.bilibili.com"]) {
itemCSS: `
:is(.feed-card, .bili-video-card.is-rcmd):has(.bili-video-card__info--ad, [href*="cm.bilibili.com"]) {
display: none !important;
}
.bili-video-card.is-rcmd:has(.bili-video-card__info--ad, [href*="cm.bilibili.com"]) {
:is(.feed-card, .bili-video-card.is-rcmd):not(:has(.bili-video-card__wrap, .bili-video-card__skeleton)) {
display: none !important;
}
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
userscript: {
name: 'bilibili 页面净化大师',
namespace: 'http://tampermonkey.net/',
version: '3.5.3',
version: '3.5.4',
description:
'净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站',
author: 'festoney8',
Expand Down

0 comments on commit 432e72d

Please sign in to comment.