diff --git a/.vscode/settings.json b/.vscode/settings.json index 4ff1db327..fcc76fc01 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -51,6 +51,7 @@ "Fullscreen", "githubusercontent", "Greasemonkey", + "guochuang", "haruna", "hdslb", "HEVC", diff --git a/CHANGELOG.md b/CHANGELOG.md index 94f0a6174..8b6bcbddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,41 @@ # 更新日志 +## v2.9.6-preview +`2024-12-28` + +包含 [v2.9.6](https://github.com/the1812/Bilibili-Evolved/releases/tag/v2.9.6) 的所有更新内容. + +- 新增插件 `自定义顶栏 - 版权内容`. (#5045) +> 为自定义顶栏扩充版权内容相关的快速入口, 包括国创 / 电影 / 电视剧 /综艺 / 纪录片 + +- 视频截图在还有截图未处理 (保存 / 丢弃) 时, 离开页面增加二次确认. (#5066) + +## v2.9.6 +`2024-12-28` + +✨新增 +- `自定义顶栏` 更新: + - (来自 v2.9.5-preview) 历史支持手动刷新. (#4948) + - 全局固定适配话题页. (#5039) + - 新歌热榜 URL 更新. (#5056) + - `订阅` 重命名为 `番剧`, 功能不变. (#4777) + - 增加 VLOG, 搞笑, 综艺, 单机游戏入口. (#1511) +- `传统连播模式` 支持番剧页面. (#5067) +- `下载视频` 增加选项 `DASH 回退编码`, 默认回退到 AVC, 可以避免 HEVC 回退到 AV1 的情况. (#5080) +- 新增功能 `隐藏首页轮播图`. (从上一版本废弃的 `简化首页` 中提取) (#5038) +- `夜间模式` 优化对动态和新版首页的适配. (#5075) + +🐛修复 +- 修复 `隐藏头像框` 对部分角标删除不完全. (#5040) +- 修复 `自定义顶栏` 删除搜索历史时失焦. (#4732) +- 修复 `自定义顶栏` 未登录时仍能通过功能面板进行排序. (#5051) +- 修复 `自定义顶栏` 收藏夹的音频链接错误. (#5069) +- 修复在搜索页的样式冲突. (#5073) +- 修复 `直播首页静音` 在关闭时仍会导致首页静音. (#5045) +- 修复 `禁止滚轮调音量` 在 Firefox 中不生效. (#5047) +- 回退 `直播信息扩充` 的 API 变更. (#4964) + ## v2.9.5-preview `2024-11-12` diff --git a/doc/donate.md b/doc/donate.md index 50d2f5cbe..9c6465c4c 100644 --- a/doc/donate.md +++ b/doc/donate.md @@ -30,6 +30,12 @@ https://afdian.com/a/the1812?tab=sponsor | 时间 | 用户名 | 单号后4位 | 金额 | | ------------------- | --------------------- | --------- | ------- | +| 2024.12.27 11:01:16 | *o | 2835 | ¥5.00 | +| 2024.12.20 18:05:09 | *言 | 6840 | ¥3.00 | +| 2024.12.17 18:30:53 | x*x | 3632 | ¥10.00 | +| 2024.12.10 12:20:10 | *吗 | 8875 | ¥5.00 | +| 2024.12.06 14:33:35 | 匿名 | 8998 | ¥5.00 | +| 2024.11.17 05:46:36 | *树 | 0442 | ¥20.00 | | 2024.10.24 19:59:56 | 匿名 | 5126 | ¥20.00 | | 2024.10.24 03:07:40 | S*a | 8703 | ¥20.00 | | 2024.10.11 11:19:52 | 匿名 | 8738 | ¥100.00 | diff --git a/doc/features/features.json b/doc/features/features.json index c32896e0d..152b05095 100644 --- a/doc/features/features.json +++ b/doc/features/features.json @@ -295,6 +295,14 @@ "fullRelativePath": "../../registry/dist/components/style/hide/banner.js", "fullAbsolutePath": "registry/dist/components/style/hide/banner.js" }, + { + "type": "component", + "name": "hideHomeCarousel", + "displayName": "隐藏首页轮播图", + "description": "隐藏首页的轮播图区域.\r\n", + "fullRelativePath": "../../registry/dist/components/style/hide/home-carousel.js", + "fullAbsolutePath": "registry/dist/components/style/hide/home-carousel.js" + }, { "type": "component", "name": "hideTrendingSearch", @@ -1048,6 +1056,14 @@ "fullRelativePath": "../../registry/dist/plugins/style/custom-navbar-dark-mode.js", "fullAbsolutePath": "registry/dist/plugins/style/custom-navbar-dark-mode.js" }, + { + "type": "plugin", + "name": "customNavbar.items.pgc", + "displayName": "自定义顶栏 - 版权内容", + "description": "为自定义顶栏扩充版权内容相关的快速入口, 包括国创 / 电影 / 电视剧 /综艺 / 纪录片", + "fullRelativePath": "../../registry/dist/plugins/style/custom-navbar-pgc.js", + "fullAbsolutePath": "registry/dist/plugins/style/custom-navbar-pgc.js" + }, { "type": "plugin", "name": "keymap.actions.darkMode", @@ -1116,7 +1132,7 @@ "type": "plugin", "name": "downloadVideo.outputs.idm", "displayName": "下载视频 - IDM 输出支持", - "description": "为下载视频增加 IDM 输出支持,建议配合 [ef2.exe](https://github.com/MotooriKashin/ef2) 以简化操作、保留文件名.", + "description": "为下载视频增加 IDM 输出支持.", "fullRelativePath": "../../registry/dist/plugins/video/download/idm-output.js", "fullAbsolutePath": "registry/dist/plugins/video/download/idm-output.js" }, diff --git a/doc/features/features.md b/doc/features/features.md index a9b2407bb..862ed2574 100644 --- a/doc/features/features.md +++ b/doc/features/features.md @@ -387,6 +387,15 @@ by [@Tinhone](https://github.com/Tinhone) 隐藏首页顶部横幅. +### [隐藏首页轮播图](../../registry/dist/components/style/hide/home-carousel.js) +`hideHomeCarousel` + +**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/style/hide/home-carousel.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/style/hide/home-carousel.js) + +**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/style/hide/home-carousel.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/style/hide/home-carousel.js) + +隐藏首页的轮播图区域. + ### [隐藏热搜](../../registry/dist/components/style/hide/trending-search.js) `hideTrendingSearch` @@ -1457,6 +1466,15 @@ by FoundTheWOUT 为自定义顶栏添加一个夜间模式开关, 方便快速切换夜间模式. +### [自定义顶栏 - 版权内容](../../registry/dist/plugins/style/custom-navbar-pgc.js) +`customNavbar.items.pgc` + +**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/plugins/style/custom-navbar-pgc.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/plugins/style/custom-navbar-pgc.js) + +**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/plugins/style/custom-navbar-pgc.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/plugins/style/custom-navbar-pgc.js) + +为自定义顶栏扩充版权内容相关的快速入口, 包括国创 / 电影 / 电视剧 /综艺 / 纪录片 + ### [快捷键扩展 - 夜间模式](../../registry/dist/plugins/utils/keymap-dark-mode.js) `keymap.actions.darkMode` @@ -1536,7 +1554,7 @@ by FoundTheWOUT **GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/plugins/video/download/idm-output.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/plugins/video/download/idm-output.js) -为下载视频增加 IDM 输出支持,建议配合 [ef2.exe](https://github.com/MotooriKashin/ef2) 以简化操作、保留文件名. +为下载视频增加 IDM 输出支持. ### [下载视频 - 手动输入](../../registry/dist/plugins/video/download/manual-input.js) `downloadVideo.inputs.manual` diff --git a/registry/lib/components/feeds/extend-live/LiveList.vue b/registry/lib/components/feeds/extend-live/LiveList.vue index 3a4412ecc..f73827ca2 100644 --- a/registry/lib/components/feeds/extend-live/LiveList.vue +++ b/registry/lib/components/feeds/extend-live/LiveList.vue @@ -50,7 +50,7 @@ diff --git a/registry/lib/components/live/home-mute/index.ts b/registry/lib/components/live/home-mute/index.ts index edd392cd7..b0b971271 100644 --- a/registry/lib/components/live/home-mute/index.ts +++ b/registry/lib/components/live/home-mute/index.ts @@ -37,6 +37,10 @@ export const component = defineComponentMetadata({ 'zh-CN': '提前执行代码以尽快静音.', }, async setup() { + const { isComponentEnabled } = await import('@/core/settings') + if (!isComponentEnabled('liveHomeMute')) { + return + } const { matchUrlPattern } = await import('@/core/utils') if (!matchUrlPattern(liveHome)) { return diff --git a/registry/lib/components/style/custom-navbar/entry.ts b/registry/lib/components/style/custom-navbar/entry.ts index 4318daa33..145420d3c 100644 --- a/registry/lib/components/style/custom-navbar/entry.ts +++ b/registry/lib/components/style/custom-navbar/entry.ts @@ -34,6 +34,7 @@ export const entry: ComponentEntry = async ({ metadata: { name } }) => { 'https://www.bilibili.com/read', 'https://www.bilibili.com/opus', 'https://www.bilibili.com/account/history', + 'https://www.bilibili.com/v/topic/detail', ] if (!globalFixedExclude.some(p => matchUrlPattern(p))) { addComponentListener( diff --git a/registry/lib/components/style/custom-navbar/favorites/NavbarFavorites.vue b/registry/lib/components/style/custom-navbar/favorites/NavbarFavorites.vue index a92531da0..7fea884f3 100644 --- a/registry/lib/components/style/custom-navbar/favorites/NavbarFavorites.vue +++ b/registry/lib/components/style/custom-navbar/favorites/NavbarFavorites.vue @@ -21,11 +21,7 @@
- + {{ card.durationText }}
{{ card.favoriteTime }}
- {{ card.title }} + {{ + card.title + }} { + type: number favoriteTimestamp: number favoriteTime: string } @@ -94,6 +87,7 @@ const favoriteItemFilter = (item: any): boolean => { return item.attr !== 9 && item.attr !== 1 // 过滤掉已失效视频 } const favoriteItemMapper = (item: any): FavoritesItemInfo => ({ + type: item.type, id: item.id, aid: item.id, bvid: item.bvid, @@ -269,6 +263,17 @@ export default Vue.extend({ this.loadNextPage() } }, + getItemPlayLink(item: FavoritesItemInfo) { + switch (item.type) { + default: + case 2: { + return `https://www.bilibili.com/video/${item.bvid}` + } + case 12: { + return `https://www.bilibili.com/audio/au${item.id}` + } + } + }, }, }) diff --git a/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue b/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue index 2500f6160..7d1c6c250 100644 --- a/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue +++ b/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue @@ -6,6 +6,11 @@
+
+ + + +
diff --git a/registry/lib/components/style/custom-navbar/settings/ExtraOptions.vue b/registry/lib/components/style/custom-navbar/settings/ExtraOptions.vue index 49fe9024b..d2722dcd2 100644 --- a/registry/lib/components/style/custom-navbar/settings/ExtraOptions.vue +++ b/registry/lib/components/style/custom-navbar/settings/ExtraOptions.vue @@ -1,17 +1,11 @@