diff --git a/.github-json/data/workflows/build.json b/.github-json/data/workflows/build.json
index 595e66302e..23ffd24fbb 100644
--- a/.github-json/data/workflows/build.json
+++ b/.github-json/data/workflows/build.json
@@ -28,7 +28,7 @@
"name": "Install dependencies",
"uses": "pnpm/action-setup@v2.2.4",
"with": {
- "version": "latest",
+ "version": "8.9.0",
"run_install": true
}
},
diff --git a/.github-json/data/workflows/pull-request-check.json b/.github-json/data/workflows/pull-request-check.json
index 056381e9a9..54fcdff6dd 100644
--- a/.github-json/data/workflows/pull-request-check.json
+++ b/.github-json/data/workflows/pull-request-check.json
@@ -17,7 +17,7 @@
"name": "Install dependencies",
"uses": "pnpm/action-setup@v2.2.4",
"with": {
- "version": "latest",
+ "version": "8.9.0",
"run_install": true
}
},
diff --git a/.github/workflows/pull-request-check.yml b/.github/workflows/pull-request-check.yml
index 4fcb87095e..143fb43fed 100644
--- a/.github/workflows/pull-request-check.yml
+++ b/.github/workflows/pull-request-check.yml
@@ -11,7 +11,7 @@ jobs:
- name: Install dependencies
uses: pnpm/action-setup@v2.2.4
with:
- version: latest
+ version: 8.6.12
run_install: true
- name: Type check
run: pnpm run type
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 7e00b24308..70123a0dd6 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -100,6 +100,7 @@
"Vuex",
"Wasm",
"watchlater",
+ "webfullscreen",
"woff",
"xmlhttp"
],
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fec5fc5d15..e50e45a33f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,49 @@
+
# 更新日志
+## v2.8.6-preview
+`2023-11-22`
+
+✨新增
+- 新增插件 `下载视频 - MPV 输出支持加强版`. (PR #4448 by [weapon!](https://github.com/Asukaaaaaa))
+> 同时支持单文件和多文件, 不需要额外下载程序处理 mpv 协议, 配置方式请参考 [README](https://github.com/Asukaaaaaa/tricks/blob/main/Bilibili-Evolved%20mpv-ex%20%E6%8F%92%E4%BB%B6.md)
+
+- `查看封面` 组件安装后可为 `下载视频` 提供下载封面支持. (#889, PR #4473 by [Oxygenくん](https://github.com/oxygenkun))
+- 新增插件 `下载视频 - WASM 混流输出`. (PR #4521 by [WakelessSloth56](https://github.com/WakelessSloth56))
+> 使用 WASM 在浏览器中下载并合并音视频,运行过程中请勿关闭页面,初次使用或清除缓存后需要加载约 30 MB 的 WASM 文件
+
+- 使用流量计费网络时, 不再触发本体和功能的更新检查. (仅 Chrome) (#4477)
+- `快捷键扩展` 的音量调整支持自定义幅度. (#2594)
+- `自定义字体` 改善了组件代码和功能. (PR #4485 by [Tinhone](https://github.com/Tinhone))
+
+☕开发者相关
+- PlayerAgent API 重构为调用 `window.player` 和 `window.nano` API, 可以解决 #2544 的问题, 感谢 [timongh](https://github.com/timongh) 和 [WakelessSloth56](https://github.com/WakelessSloth56) 的发现. (#4330, #4341)
+
+## v2.8.6
+`2023-11-22`
+✨新增
+- `清爽首页` / `极简首页` 现在可以正确重定向 "悬浮视频". (#4404)
+- `网址参数清理` 增加 `spmid` 参数. (#4512)
+- `快捷键扩展` 默认不再启用前进/后退的快捷键 (默认使用 b 站的前进/后退). (#4501)
+- `展开动态内容` 现在不会展开专栏类型的动态, 并保留原来的 "全文" 按钮. (#4475)
+
+🐛修复
+- 修复了首页的正式版安装链接 CDN 不正确. (#4460)
+- 修复 `极简首页` 在特定情况下无法触发加载的问题. (#4302, PR #4430 by [Tinhone](https://github.com/Tinhone))
+- 调整了 `简化评论区` 和 `删除广告` 对评论区附近的活动横幅和小喇叭横幅的说明, 关于这两种元素的具体区别以及分配至的组件, 可以参考 #4444 中的讨论.
+- 修复 `直播信息扩充` 中的标题未处理转义的 HTML 特殊字符.
+- 修复 `BV 号转换` 复制的链接即使没有参数也会带上末尾的 `?`. (#4515)
+- 修复番剧片单页面出现报错. (#1999)
+- 修复 `自定义顶栏` 历史面板无法正确跳转课程. (#4484)
+- 修复 `自定义顶栏` 在历史记录页面产生的布局错位. (#4459)
+- 修复 `网址参数清理` 处理相对路径 URL 时产生了错误的结果. (#4471)
+- 修复 `自定义顶栏` 在专栏页面挡住了作者信息顶栏.
+
+☕开发者相关
+- 锁定了 PR Check 中的 pnpm 版本, 避免 pnpm 更新后出现不兼容 lockfile 导致 PR Check 失败.
+- `夜间模式` 增加了一篇详细的[开发文档](./registry/lib/components/style/dark-mode/README.md).
+- Microsoft Edge 不再作为首要兼容的浏览器. (和 Chrome 相同内核, 理论上兼容性不会有太大差别)
+
## v2.8.5 / v2.8.5-preview
`2023-09-24`
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f4a832a883..d055e859fe 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -7,7 +7,7 @@ Bilibili Evolved 是一个基于 Web 前端技术构建的油猴脚本, 贡献
## 搭建开发环境
-- 需要安装 [Node.js](https://nodejs.org/en/download/) (>= 14.0), [Visual Studio Code](https://code.visualstudio.com/) 和 [pnpm](https://pnpm.io/installation) (>= 8.1.0).
+- 需要安装 [Node.js](https://nodejs.org/en/download/) (>= 14.0), [Visual Studio Code](https://code.visualstudio.com/) 和 [pnpm](https://pnpm.io/installation) (>= 8.9.0).
- 将项目 Fork 至自己账户后, 克隆至本地
- 分支视情况切换或新建, 新功能以 `preview-features` 为基础分支, 功能修复以 `preview-fixes` 为基础分支.
- 安装依赖:
diff --git a/README.md b/README.md
index c12c8522a8..c97fc8e937 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+
+
@@ -30,9 +32,8 @@
**注意事项**
- **⚠ 使用正式版 (GitHub 源) 和预览版须翻墙.**
-- 默认不带任何具体功能, 需要在按[设置](#设置)中的说明添加感兴趣的功能.
+- 默认不预装任何组件, 需要在按[设置](#设置)中的说明添加感兴趣的功能.
- 这个是一个综合性的脚本, 如果只是想下载视频建议去 [GreasyFork](https://greasyfork.org/zh-CN/scripts/by-site/bilibili.com) 找个更专业的.
-- 可能不能使用弹幕点赞和举报.
- 全景视频不能用鼠标拖拽视角(只能用键盘操作).
- 默认屏蔽双击全屏, 如有需要可以安装 `双击全屏` 组件来恢复.
- 对性能有较大影响.
@@ -43,7 +44,7 @@
| 正式版 (jsDelivr 源) | 正式版 (GitHub 源) | 预览版 |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
-| [安装](https://fastly.jsdelivr.net/gh/the1812/Bilibili-Evolved@master-cdn/dist/bilibili-evolved.user.js) | [安装](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/dist/bilibili-evolved.user.js) | [安装](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/dist/bilibili-evolved.preview.user.js) |
+| [安装](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master-cdn/dist/bilibili-evolved.user.js) | [安装](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/dist/bilibili-evolved.user.js) | [安装](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/dist/bilibili-evolved.preview.user.js) |
> 如果处于某种原因只能停在旧版, 可以参考[旧版本回退指南](./doc/rollback.md).
@@ -73,9 +74,9 @@
# 推荐配置
-- 操作系统: 64-bit Windows 10 / macOS Ventura
+- 操作系统: 64-bit Windows 10 / macOS Sonoma
- 分辨率: 3840x2160 / 192ppi
-- 浏览器: Chrome 100+ / Firefox 103+ / Edge 100+ / Safari 15.4+
+- 浏览器: Chrome 100+ / Firefox 103+ / Safari 15.4+ (仅理论上能运行, 没测试过)
- 处理器: Intel Core i7-9750H / AMD Ryzen 5 5600H
- 内存: 8GB
- 脚本管理器: Tampermonkey 4.14 / Violentmonkey 2.13
diff --git a/doc/donate.md b/doc/donate.md
index a33f4478f9..fc692bcc7b 100644
--- a/doc/donate.md
+++ b/doc/donate.md
@@ -1,3 +1,4 @@
+
# 投喂区
如果您很喜欢这个项目, 欢迎打赏, 金额随意. 您的支持是我们的动力(=・ω・=)
@@ -28,6 +29,12 @@ https://afdian.net/@the1812?tab=sponsor
| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | --------------------- | --------- | ------- |
+| 2023.11.22 15:55:16 | *楠 | 2917 | ¥30.00 |
+| 2023.10.30 11:02:52 | *分 | 9485 | ¥3.00 |
+| 2023.10.17 09:38:26 | f*t | 0728 | ¥10.00 |
+| 2023.10.06 10:59:23 | *耀 | 8587 | ¥20.00 |
+| 2023.10.03 00:23:58 | 匿名 | 6222 | ¥2.33 |
+| 2023.09.29 20:35:08 | 匿名 | 5666 | ¥10.00 |
| 2023.09.22 04:41:59 | S*y | 7595 | ¥2.00 |
| 2023.08.29 12:38:40 | 匿名 | 3584 | ¥2.33 |
| 2023.08.27 05:41:58 | 匿名 | 3000 | ¥20.00 |
diff --git a/doc/features/features.json b/doc/features/features.json
index d4e3dfcbe9..920995a43d 100644
--- a/doc/features/features.json
+++ b/doc/features/features.json
@@ -51,7 +51,7 @@
"type": "component",
"name": "fullFeedsContent",
"displayName": "展开动态内容",
- "description": "不管内容多长, 总是完全展开动态的内容.",
+ "description": "不管内容多长, 总是完全展开动态的内容. (专栏不算)\r\n",
"fullRelativePath": "../../registry/dist/components/feeds/full-content.js",
"fullAbsolutePath": "registry/dist/components/feeds/full-content.js"
},
@@ -323,7 +323,7 @@
"type": "component",
"name": "freshHome",
"displayName": "清爽首页",
- "description": "使用重新设计的清爽风格首页替换原本的首页.\r\n\r\n请注意, 此功能与 `极简首页` 互斥, 请勿同时使用.\r\n\r\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频\r\n- 启用横向滚动: 在可以横向滚动的列表中, 使鼠标滚轮可以做出横向滚动的效果, 请注意这会禁用卡片的边缘吸附效果.\r\n",
+ "description": "使用重新设计的清爽风格首页替换原本的首页.\r\n\r\n请注意:\r\n- 此功能与 `极简首页` 互斥, 请勿同时使用.\r\n- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.\r\n\r\n选项说明:\r\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频.\r\n- 启用横向滚动: 在可以横向滚动的列表中, 使鼠标滚轮可以做出横向滚动的效果, 请注意这会禁用卡片的边缘吸附效果.\r\n",
"fullRelativePath": "../../registry/dist/components/style/home-redesign/fresh.js",
"fullAbsolutePath": "registry/dist/components/style/home-redesign/fresh.js"
},
@@ -331,7 +331,7 @@
"type": "component",
"name": "minimalHome",
"displayName": "极简首页",
- "description": "使用重新设计的极简首页替换原本的首页.\r\n\r\n请注意, 此功能与 `清爽首页` 互斥, 请勿同时使用.\r\n\r\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频\r\n- 自定义列数: 为 `0` 时根据视图宽度推断, 大于 `0` 的值将作为固定的列数",
+ "description": "使用重新设计的极简首页替换原本的首页.\r\n\r\n请注意:\r\n- 此功能与 `清爽首页` 互斥, 请勿同时使用.\r\n- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.\r\n\r\n选项说明:\r\n- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频\r\n- 自定义列数: 为 `0` 时根据视图宽度推断, 大于 `0` 的值将作为固定的列数",
"fullRelativePath": "../../registry/dist/components/style/home-redesign/minimal.js",
"fullAbsolutePath": "registry/dist/components/style/home-redesign/minimal.js"
},
@@ -379,7 +379,7 @@
"type": "component",
"name": "simplifyComments",
"displayName": "简化评论区",
- "description": "去除或优化评论区内的元素, 可配置以下选项 (描述的是勾选时的效果):\r\n\r\n> 配置项仅对新版评论区有效\r\n\r\n- `用户等级`: 隐藏用户等级标识. (隐藏后, 可以通过鼠标停留在头像上, 在弹出的资料卡小窗中查看)\r\n- `装扮 & 时间`: 隐藏装扮图片, 并把发送时间移动到装扮的位置.\r\n- `头像框`: 隐藏头像框.\r\n- `回复换行`:\r\n - 楼中楼回复也另起一行显示, 和一级回复保持一致.\r\n - `热评`, `UP 主点赞` 等标记和点赞栏放在同一行.\r\n- `编辑框`: 将提示文本居上, 符合用户实际输入文字的位置, 并将发布按钮的字号略微调小.\r\n- `粉丝勋章`: 隐藏用户的粉丝勋章.\r\n- `活动横幅`: 隐藏评论区顶部的活动横幅\r\n",
+ "description": "去除或优化评论区内的元素, 可配置以下选项 (描述的是勾选时的效果):\r\n\r\n> 配置项仅对新版评论区有效\r\n\r\n- `用户等级`: 隐藏用户等级标识. (隐藏后, 可以通过鼠标停留在头像上, 在弹出的资料卡小窗中查看)\r\n- `装扮 & 时间`: 隐藏装扮图片, 并把发送时间移动到装扮的位置.\r\n- `头像框`: 隐藏头像框.\r\n- `回复换行`:\r\n - 楼中楼回复也另起一行显示, 和一级回复保持一致.\r\n - `热评`, `UP 主点赞` 等标记和点赞栏放在同一行.\r\n- `编辑框`: 将提示文本居上, 符合用户实际输入文字的位置, 并将发布按钮的字号略微调小.\r\n- `粉丝勋章`: 隐藏用户的粉丝勋章.\r\n- `小喇叭横幅`: 隐藏评论区顶部的小喇叭横幅\r\n",
"fullRelativePath": "../../registry/dist/components/style/simplify/comments.js",
"fullAbsolutePath": "registry/dist/components/style/simplify/comments.js"
},
@@ -579,7 +579,7 @@
"type": "component",
"name": "removePromotions",
"displayName": "删除广告",
- "description": "删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 `占位文本` 选项.\n\n- `占位文本`: 删除首页推广模块的广告后显示\"🚫已屏蔽广告\"来替代空白区域.\n- `保留活动横幅`: 保留视频页面的活动横幅.\n- `保留小喇叭`: 保留视频页面的活动横幅下方评论区上方的黄色小喇叭通知以及动态的黄色小喇叭.",
+ "description": "删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 \\`占位文本\\` 选项.\r\n\r\n- \\`占位文本\\`: 删除首页推广模块的广告后显示\"🚫已屏蔽广告\"来替代空白区域.\r\n- \\`保留活动横幅\\`: 保留视频页面的活动横幅.\r\n",
"fullRelativePath": "../../registry/dist/components/utils/remove-promotions.js",
"fullAbsolutePath": "registry/dist/components/utils/remove-promotions.js"
},
diff --git a/doc/features/features.md b/doc/features/features.md
index 072f9af9df..0006ebc815 100644
--- a/doc/features/features.md
+++ b/doc/features/features.md
@@ -63,7 +63,7 @@
**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/feeds/full-content.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/feeds/full-content.js)
-不管内容多长, 总是完全展开动态的内容.
+不管内容多长, 总是完全展开动态的内容. (专栏不算)
### [展开动态标题](../../registry/dist/components/feeds/full-title.js)
`fullFeedsTitle`
@@ -411,9 +411,12 @@ by [@WakelessSloth56](https://github.com/WakelessSloth56)
使用重新设计的清爽风格首页替换原本的首页.
-请注意, 此功能与 `极简首页` 互斥, 请勿同时使用.
+请注意:
+- 此功能与 `极简首页` 互斥, 请勿同时使用.
+- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.
-- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频
+选项说明:
+- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频.
- 启用横向滚动: 在可以横向滚动的列表中, 使鼠标滚轮可以做出横向滚动的效果, 请注意这会禁用卡片的边缘吸附效果.
### [极简首页](../../registry/dist/components/style/home-redesign/minimal.js)
@@ -425,8 +428,11 @@ by [@WakelessSloth56](https://github.com/WakelessSloth56)
使用重新设计的极简首页替换原本的首页.
-请注意, 此功能与 `清爽首页` 互斥, 请勿同时使用.
+请注意:
+- 此功能与 `清爽首页` 互斥, 请勿同时使用.
+- 此功能会禁用首页的[悬浮视频](https://github.com/the1812/Bilibili-Evolved/discussions/4404), 变为直接跳转到视频页面.
+选项说明:
- 个性化推荐: 启用时展示推荐视频, 禁用时展示热门视频
- 自定义列数: 为 `0` 时根据视图宽度推断, 大于 `0` 的值将作为固定的列数
@@ -496,7 +502,7 @@ by [@RieN7](https://github.com/rien7),[@ZiuChen](https://github.com/ZiuChen),[@L
- `热评`, `UP 主点赞` 等标记和点赞栏放在同一行.
- `编辑框`: 将提示文本居上, 符合用户实际输入文字的位置, 并将发布按钮的字号略微调小.
- `粉丝勋章`: 隐藏用户的粉丝勋章.
-- `活动横幅`: 隐藏评论区顶部的活动横幅
+- `小喇叭横幅`: 隐藏评论区顶部的小喇叭横幅
### [简化首页](../../registry/dist/components/style/simplify/home.js)
`simplifyHome`
@@ -764,11 +770,10 @@ by [@Light_Quanta](https://github.com/LightQuanta)
**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/utils/remove-promotions.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/utils/remove-promotions.js)
-删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 `占位文本` 选项.
+删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 \`占位文本\` 选项.
-- `占位文本`: 删除首页推广模块的广告后显示"🚫已屏蔽广告"来替代空白区域.
-- `保留活动横幅`: 保留视频页面的活动横幅.
-- `保留小喇叭`: 保留视频页面的活动横幅下方评论区上方的黄色小喇叭通知以及动态的黄色小喇叭.
+- \`占位文本\`: 删除首页推广模块的广告后显示"🚫已屏蔽广告"来替代空白区域.
+- \`保留活动横幅\`: 保留视频页面的活动横幅.
### [关注时间显示](../../registry/dist/components/utils/subscribe-time-show.js)
`subscribeTimeShow`
diff --git a/doc/features/pack/pack.json b/doc/features/pack/pack.json
index e40eeb61b8..aec2044bf6 100644
--- a/doc/features/pack/pack.json
+++ b/doc/features/pack/pack.json
@@ -21,7 +21,7 @@
"type": "component",
"name": "removePromotions",
"displayName": "删除广告",
- "description": "删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 `占位文本` 选项.\n\n- `占位文本`: 删除首页推广模块的广告后显示\"🚫已屏蔽广告\"来替代空白区域.\n- `保留活动横幅`: 保留视频页面的活动横幅.\n- `保留小喇叭`: 保留视频页面的活动横幅下方评论区上方的黄色小喇叭通知以及动态的黄色小喇叭.",
+ "description": "删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 \\`占位文本\\` 选项.\r\n\r\n- \\`占位文本\\`: 删除首页推广模块的广告后显示\"🚫已屏蔽广告\"来替代空白区域.\r\n- \\`保留活动横幅\\`: 保留视频页面的活动横幅.\r\n",
"fullRelativePath": "../../registry/dist/components/utils/remove-promotions.js",
"fullAbsolutePath": "registry/dist/components/utils/remove-promotions.js"
},
@@ -53,7 +53,7 @@
"type": "component",
"name": "simplifyComments",
"displayName": "简化评论区",
- "description": "去除或优化评论区内的元素, 可配置以下选项 (描述的是勾选时的效果):\r\n\r\n> 配置项仅对新版评论区有效\r\n\r\n- `用户等级`: 隐藏用户等级标识. (隐藏后, 可以通过鼠标停留在头像上, 在弹出的资料卡小窗中查看)\r\n- `装扮 & 时间`: 隐藏装扮图片, 并把发送时间移动到装扮的位置.\r\n- `头像框`: 隐藏头像框.\r\n- `回复换行`:\r\n - 楼中楼回复也另起一行显示, 和一级回复保持一致.\r\n - `热评`, `UP 主点赞` 等标记和点赞栏放在同一行.\r\n- `编辑框`: 将提示文本居上, 符合用户实际输入文字的位置, 并将发布按钮的字号略微调小.\r\n- `粉丝勋章`: 隐藏用户的粉丝勋章.\r\n- `活动横幅`: 隐藏评论区顶部的活动横幅\r\n",
+ "description": "去除或优化评论区内的元素, 可配置以下选项 (描述的是勾选时的效果):\r\n\r\n> 配置项仅对新版评论区有效\r\n\r\n- `用户等级`: 隐藏用户等级标识. (隐藏后, 可以通过鼠标停留在头像上, 在弹出的资料卡小窗中查看)\r\n- `装扮 & 时间`: 隐藏装扮图片, 并把发送时间移动到装扮的位置.\r\n- `头像框`: 隐藏头像框.\r\n- `回复换行`:\r\n - 楼中楼回复也另起一行显示, 和一级回复保持一致.\r\n - `热评`, `UP 主点赞` 等标记和点赞栏放在同一行.\r\n- `编辑框`: 将提示文本居上, 符合用户实际输入文字的位置, 并将发布按钮的字号略微调小.\r\n- `粉丝勋章`: 隐藏用户的粉丝勋章.\r\n- `小喇叭横幅`: 隐藏评论区顶部的小喇叭横幅\r\n",
"fullRelativePath": "../../registry/dist/components/style/simplify/comments.js",
"fullAbsolutePath": "registry/dist/components/style/simplify/comments.js"
},
@@ -200,7 +200,7 @@
"type": "component",
"name": "removePromotions",
"displayName": "删除广告",
- "description": "删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 `占位文本` 选项.\n\n- `占位文本`: 删除首页推广模块的广告后显示\"🚫已屏蔽广告\"来替代空白区域.\n- `保留活动横幅`: 保留视频页面的活动横幅.\n- `保留小喇叭`: 保留视频页面的活动横幅下方评论区上方的黄色小喇叭通知以及动态的黄色小喇叭.",
+ "description": "删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 \\`占位文本\\` 选项.\r\n\r\n- \\`占位文本\\`: 删除首页推广模块的广告后显示\"🚫已屏蔽广告\"来替代空白区域.\r\n- \\`保留活动横幅\\`: 保留视频页面的活动横幅.\r\n",
"fullRelativePath": "../../registry/dist/components/utils/remove-promotions.js",
"fullAbsolutePath": "registry/dist/components/utils/remove-promotions.js"
},
@@ -272,7 +272,7 @@
"type": "component",
"name": "fullFeedsContent",
"displayName": "展开动态内容",
- "description": "不管内容多长, 总是完全展开动态的内容.",
+ "description": "不管内容多长, 总是完全展开动态的内容. (专栏不算)\r\n",
"fullRelativePath": "../../registry/dist/components/feeds/full-content.js",
"fullAbsolutePath": "registry/dist/components/feeds/full-content.js"
},
diff --git a/package.json b/package.json
index 66c9c80026..488ca7b7dc 100644
--- a/package.json
+++ b/package.json
@@ -82,7 +82,7 @@
},
"pnpm": {
"overrides": {
- "caniuse-lite": "^1.0.30001481",
+ "caniuse-lite": "1.0.30001547",
"consolidate": "1.0.1"
}
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3d329dad3d..faf430a43a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -5,7 +5,7 @@ settings:
excludeLinksFromLockfile: false
overrides:
- caniuse-lite: ^1.0.30001481
+ caniuse-lite: 1.0.30001547
consolidate: 1.0.1
dependencies:
@@ -1136,7 +1136,7 @@ packages:
postcss: ^8.1.0
dependencies:
browserslist: 4.21.4
- caniuse-lite: 1.0.30001481
+ caniuse-lite: registry.npmmirror.com/caniuse-lite@1.0.30001547
fraction.js: 4.2.0
normalize-range: 0.1.2
picocolors: 1.0.0
@@ -1200,7 +1200,7 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
- caniuse-lite: 1.0.30001481
+ caniuse-lite: registry.npmmirror.com/caniuse-lite@1.0.30001547
electron-to-chromium: 1.4.284
node-releases: 2.0.6
update-browserslist-db: 1.0.10(browserslist@4.21.4)
@@ -1232,10 +1232,6 @@ packages:
engines: {node: '>=10'}
dev: true
- /caniuse-lite@1.0.30001481:
- resolution: {integrity: sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ==}
- dev: true
-
/chalk@2.4.1:
resolution: {integrity: sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==}
engines: {node: '>=4'}
@@ -6359,16 +6355,16 @@ packages:
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
dependencies:
- caniuse-lite: registry.npmmirror.com/caniuse-lite@1.0.30001481
+ caniuse-lite: registry.npmmirror.com/caniuse-lite@1.0.30001547
electron-to-chromium: registry.npmmirror.com/electron-to-chromium@1.4.487
node-releases: registry.npmmirror.com/node-releases@2.0.13
update-browserslist-db: registry.npmmirror.com/update-browserslist-db@1.0.11(browserslist@4.21.10)
dev: true
- registry.npmmirror.com/caniuse-lite@1.0.30001481:
- resolution: {integrity: sha512-KCqHwRnaa1InZBtqXzP98LPg0ajCVujMKjqKDhZEthIpAsJl/YEIa3YvXjGXPVqzZVguccuu7ga9KOE1J9rKPQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001481.tgz}
+ registry.npmmirror.com/caniuse-lite@1.0.30001547:
+ resolution: {integrity: sha512-W7CrtIModMAxobGhz8iXmDfuJiiKg1WADMO/9x7/CLNin5cpSbuBjooyoIUVB5eyCc36QuTVlkVa1iB2S5+/eA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001547.tgz}
name: caniuse-lite
- version: 1.0.30001481
+ version: 1.0.30001547
dev: true
registry.npmmirror.com/chalk@1.1.3:
diff --git a/registry/lib/components/feeds/extend-live/LiveList.vue b/registry/lib/components/feeds/extend-live/LiveList.vue
index f60cb23253..3895f33423 100644
--- a/registry/lib/components/feeds/extend-live/LiveList.vue
+++ b/registry/lib/components/feeds/extend-live/LiveList.vue
@@ -38,7 +38,7 @@
- {{ item.title }}
+ {{ decodeTitle(item.title) }}
{{ item.uname }}
@@ -52,6 +52,12 @@
import { VIcon, TextBox, DpiImage, VEmpty, VLoading } from '@/ui'
import { getJsonWithCredentials, responsiveGetPages } from '@/core/ajax'
+const decodeTitle = (title: string) => {
+ const textArea = document.createElement('textarea')
+ textArea.innerHTML = title
+ return textArea.value
+}
+
interface LiveInfo {
cover: string
face: string
@@ -98,6 +104,7 @@ export default Vue.extend({
this.refresh()
},
methods: {
+ decodeTitle,
async refresh() {
try {
this.items = []
diff --git a/registry/lib/components/feeds/full-content/full-content.scss b/registry/lib/components/feeds/full-content/full-content.scss
index 000c8a17ae..23a8861c44 100644
--- a/registry/lib/components/feeds/full-content/full-content.scss
+++ b/registry/lib/components/feeds/full-content/full-content.scss
@@ -1,4 +1,4 @@
-.bili-dyn-content,
+.dyn-card-opus__summary:first-child,
.card .main-content {
.bili-rich-text__action,
.expand-btn,
diff --git a/registry/lib/components/feeds/full-content/index.md b/registry/lib/components/feeds/full-content/index.md
new file mode 100644
index 0000000000..3668c6a84d
--- /dev/null
+++ b/registry/lib/components/feeds/full-content/index.md
@@ -0,0 +1 @@
+不管内容多长, 总是完全展开动态的内容. (专栏不算)
diff --git a/registry/lib/components/feeds/full-content/index.ts b/registry/lib/components/feeds/full-content/index.ts
index 2aae4dc58e..98cb7cc831 100644
--- a/registry/lib/components/feeds/full-content/index.ts
+++ b/registry/lib/components/feeds/full-content/index.ts
@@ -1,13 +1,16 @@
import { defineComponentMetadata } from '@/components/define'
-import { toggleStyle } from '@/components/styled-component'
import { feedsUrlsWithoutDetail } from '@/core/utils/urls'
export const component = defineComponentMetadata({
- ...toggleStyle('fullFeedsContent', () => import('./full-content.scss')),
+ name: 'fullFeedsContent',
+ instantStyles: [
+ {
+ name: 'full-feeds-content',
+ style: () => import('./full-content.scss'),
+ },
+ ],
displayName: '展开动态内容',
- description: {
- 'zh-CN': '不管内容多长, 总是完全展开动态的内容.',
- },
tags: [componentsTags.style, componentsTags.feeds],
urlInclude: feedsUrlsWithoutDetail,
+ entry: none,
})
diff --git a/registry/lib/components/style/custom-navbar/entry.ts b/registry/lib/components/style/custom-navbar/entry.ts
index d6dc4fa102..3646458d0c 100644
--- a/registry/lib/components/style/custom-navbar/entry.ts
+++ b/registry/lib/components/style/custom-navbar/entry.ts
@@ -43,6 +43,10 @@ export const entry: ComponentEntry = async ({ metadata: { name } }) => {
true,
)
}
+ // https://github.com/the1812/Bilibili-Evolved/issues/4459
+ if (matchUrlPattern('https://www.bilibili.com/account/history')) {
+ document.body.classList.add('history-page')
+ }
const CustomNavbar = await import('./CustomNavbar.vue')
const customNavbar: Vue & {
styles: string[]
diff --git a/registry/lib/components/style/custom-navbar/hide-original.scss b/registry/lib/components/style/custom-navbar/hide-original.scss
index 66522684ca..1371e72a0a 100644
--- a/registry/lib/components/style/custom-navbar/hide-original.scss
+++ b/registry/lib/components/style/custom-navbar/hide-original.scss
@@ -32,11 +32,15 @@ li.nav-item[report-id="playpage_dynamic"] .i-frame,
height: var(--navbar-height) !important;
}
#message-navbar,
-#biliMainHeader:not(.z-top-container),
+body:not(.history-page) #biliMainHeader:not(.z-top-container),
.z-top-container:not(#biliMainHeader) {
max-height: var(--navbar-height) !important;
}
-.link-top-container#tab-container {
+body.history-page #biliMainHeader:not(.z-top-container) {
+ height: auto;
+}
+.link-top-container#tab-container,
+.fixed-author-header {
top: var(--navbar-height) !important;
}
.bili-feed4 .header-channel{
diff --git a/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue b/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue
index c2042fb00b..a2c2afcbcc 100644
--- a/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue
+++ b/registry/lib/components/style/custom-navbar/history/NavbarHistory.vue
@@ -106,7 +106,7 @@