Skip to content

Commit

Permalink
Merge pull request #75 from festoney8/dev
Browse files Browse the repository at this point in the history
merge dev to main, v3.6.1
  • Loading branch information
festoney8 authored May 24, 2024
2 parents 3f1d88c + 0171434 commit f0bc1c0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 14 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## 3.6.1

- 新增:动态页隐藏头像框
- 新增:动态页隐藏头像徽章
- 新增:动态页视频过滤
- 移除:动态页隐藏新版反馈,适配网页变动
- 更新:Readme

## 3.6.0

- 新增:动态页评论区过滤
Expand Down Expand Up @@ -118,7 +126,7 @@
- 新增:播放页隐藏接下来播放
- 更新:净化分享适配新版标题
- 优化:一些页面净化功能细节
- 优化:对稍后再看和页的支持页 交换播放器和视频信息位置bug
- 优化:对播放列表页的支持
- 修复:一些bug

## 3.2.1
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
> - **重要:下列页面均有独立菜单,不同页面菜单不同**,按下图打开菜单进行设置,实时生效
> - **页面净化:「首页、播放页、影视番剧播放页、直播间、搜索页、动态页、热门页、频道页」**
> - **视频过滤:「首页、播放页、搜索页、热门页、频道页、空间页」**
> - **评论过滤:「播放页、影视番剧播放页」**
> - **评论过滤:「播放页、影视番剧播放页、动态页**
![](images/usage.png)

Expand Down Expand Up @@ -100,9 +100,9 @@

## 浏览器适配

### Chrome / Edge
### Chrome / Edge / 其他 Chromium 内核浏览器

- **要求 Chrome 内核版本 >= 105**浏览器内核版本过低会导致部分功能失效,如:无法净化顶栏
- **要求 Chromium 内核版本 >= 105**内核版本过低会导致部分功能失效,如:无法净化顶栏

> 鉴于 Google 在推行 [Manifest V3](https://developer.chrome.com/docs/extensions/migrating/checklist),未来会影响油猴插件,参考[Tampermonkey changelog](https://www.tampermonkey.net/changelog.php#v5.0.0)
> 可考虑启用浏览器开发者模式,Chrome 和 Edge 均可在插件管理页找到开关。
Expand Down
35 changes: 26 additions & 9 deletions src/rules/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,22 @@ if (isPageDynamic()) {
description: '隐藏 动态分类Tab bar',
itemCSS: `.bili-dyn-list-tabs {display: none !important;}`,
}),
// 隐藏 头像框
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-avatar-pendent',
description: '隐藏 头像框',
itemCSS: `
.b-avatar__layer.center {width: 48px !important; height: 48px !important;}
.b-avatar__layers .b-avatar__layer.center:nth-child(2) picture {display: none !important;}
.b-avatar__layers:has(.b-avatar__layer__res[style^="background"]) {display: none !important;}
`,
}),
// 隐藏 头像徽章
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-avatar-icon',
description: '隐藏 头像徽章',
itemCSS: `.b-avatar__layers .b-avatar__layer:last-child:not(.center) {display: none !important;}`,
}),
// 隐藏 动态右侧饰品
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-ornament',
Expand Down Expand Up @@ -257,6 +273,14 @@ if (isPageDynamic()) {
display: none !important;
}`,
}),
// 隐藏 全部充电视频(含已充电)
new CheckboxItem({
itemID: 'hide-dynamic-page-bili-dyn-charge-video',
description: '隐藏 全部充电视频(含已充电)',
itemCSS: `.bili-dyn-list__item:has(.bili-dyn-card-video__badge [src*="qcRJ6sJU91"]) {
display: none !important;
}`,
}),
// 自动展开 相同UP主被折叠的动态
new CheckboxItem({
itemID: 'dynamic-page-unfold-dynamic',
Expand Down Expand Up @@ -560,25 +584,18 @@ if (isPageDynamic()) {

// 右下角
const sidebarItems = [
// 隐藏 新版反馈, 默认开启
new CheckboxItem({
itemID: 'hide-dynamic-page-sidebar-feedback',
description: '隐藏 新版反馈',
defaultStatus: true,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:nth-child(1) {visibility: hidden !important;}`,
}),
// 隐藏 回到旧版, 默认开启
new CheckboxItem({
itemID: 'hide-dynamic-page-sidebar-old-version',
description: '隐藏 回到旧版',
defaultStatus: true,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:nth-child(2) {visibility: hidden !important;}`,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:first-child {visibility: hidden !important;}`,
}),
// 隐藏 回顶部
new CheckboxItem({
itemID: 'hide-dynamic-page-sidebar-back-to-top',
description: '隐藏 回顶部',
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:nth-child(3) {visibility: hidden !important;}`,
itemCSS: `.bili-dyn-sidebar .bili-dyn-sidebar__btn:last-child {visibility: hidden !important;}`,
}),
]
dynamicGroupList.push(new Group('dynamic-sidebar', '页面右下角 小按钮', sidebarItems))
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.6.0',
version: '3.6.1',
description:
'净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站',
author: 'festoney8',
Expand Down

0 comments on commit f0bc1c0

Please sign in to comment.