Skip to content

Commit

Permalink
Merge pull request #20 from festoney8/hotfix
Browse files Browse the repository at this point in the history
hotfix dyn page filter, support hide vote, v2.3.4
  • Loading branch information
festoney8 authored Jan 15, 2024
2 parents e0dfc30 + 26cefab commit eca112e
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2.3.4

- 优化:动态页 动态过滤、元素隐藏

## 2.3.3

- 新增:动态页 支持隐藏左栏 隐藏稍后再看
Expand Down
50 changes: 45 additions & 5 deletions src/pages/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,40 @@ if (location.host === 't.bilibili.com' || location.href.includes('bilibili.com/o
`.bili-dyn-card-video__mark {display: none !important;}`,
),
)
// 隐藏 动态内容中 话题Tag
// 隐藏 动态内容中 官方话题Tag
centerItems.push(
new CheckboxItem(
'hide-dynamic-page-bili-dyn-topic',
'隐藏 动态内容中 话题Tag',
'hide-dynamic-page-bili-dyn-official-topic',
'隐藏 动态内容中 官方话题Tag',
false,
undefined,
false,
`.bili-rich-text-topic, .bili-dyn-content__orig__topic {display: none !important;}`,
// 不得隐藏普通tag .bili-rich-text-topic
// 会造成部分动态内容要点缺失影响阅读
`.bili-dyn-content__orig__topic {display: none !important;}`,
),
)
// 动态内容中 普通Tag 去除高亮
centerItems.push(
new CheckboxItem(
'hide-dynamic-page-bili-dyn-text-topic',
'动态内容中 普通Tag 去除高亮',
false,
undefined,
false,
`.bili-rich-text-topic {color: inherit !important;}
.bili-rich-text-topic:hover {color: var(--brand_blue) !important;}`,
),
)
// 隐藏 动态精选互动 XXX赞了/XXX回复
centerItems.push(
new CheckboxItem(
'hide-dynamic-page-bili-dyn-item-interaction',
'隐藏 动态精选互动 XXX赞了/XXX回复',
false,
undefined,
false,
`.bili-dyn-item__interaction {display: none !important;}`,
),
)
// 隐藏 视频预约/直播预约动态
Expand All @@ -231,7 +256,9 @@ if (location.host === 't.bilibili.com' || location.href.includes('bilibili.com/o
false,
undefined,
false,
`.bili-dyn-list__item:has(.bili-dyn-card-goods) {
`.bili-dyn-list__item:has(.bili-dyn-card-goods),
.bili-dyn-list__item:has(.bili-rich-text-module.goods),
.bili-dyn-list__item:has([data-type="goods"]) {
visibility: hidden !important;
height: 0 !important;
margin: 0 !important;
Expand All @@ -253,6 +280,19 @@ if (location.host === 't.bilibili.com' || location.href.includes('bilibili.com/o
}`,
),
)
// 隐藏 投票动态
centerItems.push(
new CheckboxItem(
'hide-dynamic-page-bili-dyn-vote',
'隐藏 投票动态',
false,
undefined,
false,
`.bili-dyn-list__item:has(.bili-dyn-card-vote) {
display: none !important;
}`,
),
)
// 自动展开 相同UP主被折叠的动态
centerItems.push(
new CheckboxItem(
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: '2.3.3',
version: '2.3.4',
description:
'净化 B站/哔哩哔哩 页面内各种元素,去广告,BV号转AV号,净化播放器,提供300+项功能,定制自己的B站页面',
author: 'festoney8',
Expand Down

0 comments on commit eca112e

Please sign in to comment.