Skip to content

Commit

Permalink
Merge branch 'preview-fixes' into master-cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Jan 18, 2024
2 parents 3f1ef39 + cc0bc33 commit 3fed018
Show file tree
Hide file tree
Showing 90 changed files with 2,397 additions and 831 deletions.
2 changes: 1 addition & 1 deletion .github-json/data/workflows/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"name": "Install dependencies",
"uses": "pnpm/[email protected]",
"with": {
"version": "8.9.0",
"version": "8.12.1",
"run_install": true
}
},
Expand Down
2 changes: 1 addition & 1 deletion .github-json/data/workflows/pull-request-check.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"name": "Install dependencies",
"uses": "pnpm/[email protected]",
"with": {
"version": "8.9.0",
"version": "8.12.1",
"run_install": true
}
},
Expand Down
71 changes: 70 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,75 @@
<!-- spell-checker: disable -->
# 更新日志

## v2.8.8 / v2.8.8-preview
`2024-01-18`

<details>
<summary>正式版用户将获得 v2.8.6-preview ~ v2.8.7-preview 的所有新功能, 点击展开查看</summary>

✨新增
- 新增插件 `下载视频 - 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)

</details>

⚠ 注意
- Firefox 的最低版本要求提升至 121, 顺便更新了下配置要求, 分为了最低配置和推荐配置, CPU 统一为桌面级型号.
- 移除对旧版视频播放器的支持, 仅支持新版视频播放器 (BPX 播放器)

✨新增
- 新增插件 `动态过滤器 - 移除充电专属动态`. (#4033)
> 移除动态里的充电专属动态, 装有 `动态过滤器` 时生效.
- `删除视频弹窗` 支持屏蔽 "心动" 弹窗, `禁用特殊弹幕样式` 支持屏蔽相应的带货弹幕. (#4565)
- `删除广告` 支持屏蔽首页的桌面端弹窗广告. (#4590)
- 新增插件 `下载视频 - 空输出`. (#4581)
> 提供一个 "空" 的输出选项, 只想获取下载视频的附带产物 (弹幕, 字幕等) 时可以使用此插件.
- `下载视频` 支持下载合集. (#3240)
- 视频相关功能和快捷键扩展支持新版番剧播放器. (#4571)

🐛修复
- 修复 `评论区IP属地显示` 在小黑屋中失效的问题. (#4572, PR #4573 by [Light_Quanta](https://github.com/LightQuanta))
- `自定义字体` 改进: (PR #4585 by [Tinhone](https://github.com/Tinhone))
- 修复 `自定义字体` 导致快速收藏图标消失. (#4566)
-`覆盖选项` 迁移到了更多选项中.
- 因为文泉驿微米黑(WenQuanYi Micro Hei)字体的部分版本存在朝鲜语(韩语)显示不正确的问题,所以从默认设置中删除,使用 Malgun Gothic 字体替换.
- 夜间模式适配播放页的充电卡片. (#4599, PR #4600 by [Pencil](https://github.com/pencilqaq))
- `直播信息扩充` 使用新的 API, 能够显示悄悄关注的主播. (PR #4587 by [Oxygenくん](https://github.com/oxygenkun))
- 修复自定义顶栏在搜索页面的表现: 关键词同步 & 禁用全局固定. (#1431)
- `删除广告` 使用 CSS `:has` 功能实现了移除广告的空白占位区域. (#3997)
- 修复新版的动态多图界面中 `图片批量导出` 检测不到图片. (#4586)
- 修复使用 `pluginApis.installStyle` 安装带有特殊字符的名称的样式后, 无法删除的问题. (#4557)
- 修复快速收起评论遮挡了评论的操作菜单. (#4595)
- 更新了 `稍后再看重定向` 的说明文字, 明确了功能作用范围. (#4555)
> 将稍后再看的链接重定向为普通播放网址.
> - `重定向页面`: 对稍后再看列表页面里的链接重定向.
> - `重定向顶栏`: 对 `自定义顶栏` 里的稍后再看链接重定向.
- 修复文件命名格式中 `[title]`, `[ep]`, `[lid]` 变量的值获取不正确. (#4575)

☕开发者相关
- pnpm 更新至 8.12.1.
- README 调整了一些中英文字符之间的空格. (PR #4602 by [Shen-Linwood](https://github.com/Shen-Linwood))
- PlayerAgent.getPlayerConfig 支持 BPX 播放器, 且默认认为当前 Agent 为 BPX 类型.
- 修复 DownloadPackage 中同名文件会互相覆盖. (#4576)
- 动态过滤器中使用 CSS `.plugin-block` 可以隐藏某个动态卡片, 插件结合 `forEachFeedsCard` 等 API 可以实现自定义的过滤逻辑. (#4033)
- retrieveImageUrl 支持传入 picture 元素本身.
- 内置 UA 更新至 Firefox 123.
- 增加了 simulateClick API, 可以模拟一次点击. (依次触发 `pointerdown`, `mousedown`, `pointerup`, `mouseup`, `click` 事件)

## v2.8.7 / v2.8.7-preview
`2023-11-23`

Expand Down Expand Up @@ -46,7 +115,7 @@
- 修复 `自定义顶栏` 历史面板无法正确跳转课程. (#4484)
- 修复 `自定义顶栏` 在历史记录页面产生的布局错位. (#4459)
- 修复 `网址参数清理` 处理相对路径 URL 时产生了错误的结果. (#4471)
- 修复 `自定义顶栏` 在专栏页面挡住了作者信息顶栏.
- 修复 `自定义顶栏` 在专栏页面挡住了作者信息顶栏. (#4540)

☕开发者相关
- 锁定了 PR Check 中的 pnpm 版本, 避免 pnpm 更新后出现不兼容 lockfile 导致 PR Check 失败.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pnpm install
// @description Bilibili Evolved (本地)
// @version 300.0
// @author Grant Howard, Coulomb-G
// @copyright 2023, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
// @copyright 2024, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
// @license MIT
// @match *://*.bilibili.com/*
// @exclude *://*.bilibili.com/*/mobile.html
Expand Down
38 changes: 23 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@

**注意事项**
- **⚠ 使用正式版 (GitHub 源) 和预览版须翻墙.**
- 默认不预装任何组件, 需要在按[设置](#设置)中的说明添加感兴趣的功能.
- 默认不预装任何组件, 需要在按[设置](#设置)中的说明添加感兴趣的功能; 默认会屏蔽双击全屏, 如有需要可以安装 `双击全屏` 组件来恢复.
- 这个是一个综合性的脚本, 如果只是想下载视频建议去 [GreasyFork](https://greasyfork.org/zh-CN/scripts/by-site/bilibili.com) 找个更专业的.
- 全景视频不能用鼠标拖拽视角(只能用键盘操作).
- 默认屏蔽双击全屏, 如有需要可以安装 `双击全屏` 组件来恢复.
- 对性能有较大影响.
- 对性能有较大影响, 详见[配置要求](#配置).
- 默认不对未登录的状态做适配.
- 新版本一旦正式发布, 就不再对旧版本做任何技术支持.
- 使用外部网站的链接时 (如将下载任务发送到自己的服务器 / 使用链接安装组件等) 可能会提示"脚本试图访问跨域资源", 请选择"始终允许".
- 需要在至少 1400 x 800 以上的逻辑分辨率下使用.
- 使用外部网站的链接时 (如将下载任务发送到自己的服务器 / 使用链接安装组件等) 可能会提示"脚本试图访问跨域资源", 请选择"始终允许" 避免下次还提示.

| 正式版 (jsDelivr 源) | 正式版 (GitHub 源) | 预览版 |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -73,16 +70,27 @@

<img alt="about-panel" src="images/v2/about-panel.jpg" width="450">

# 推荐配置
- 操作系统: 64-bit Windows 10 / macOS Sonoma
- 分辨率: 3840x2160 / 192ppi
- 浏览器: Chrome 100+ / Firefox 103+ / Safari 15.4+ (仅理论上能运行, 没测试过)
- 处理器: Intel Core i7-9750H / AMD Ryzen 5 5600H
# 配置
## 最低配置
- 操作系统: Windows 8.1 / macOS Big Sur
- 分辨率: 1920x1080, 缩放 125%
- 浏览器: Chrome 105+ / Firefox 121+ / Safari 15.4+ (仅理论上能运行, 没测试过)
- 处理器: Intel Core i5-10500 / AMD Ryzen 5 3600
- 内存: 8GB
- 脚本管理器: Tampermonkey 4.14 / Violentmonkey 2.13
- 脚本管理器: Tampermonkey 5.0 / Violentmonkey 2.18
- 显卡: GeForce GTX 1050 / Radeon HD 7870
- 网络: 10MB/s

## 推荐配置
- 操作系统: Windows 10 / macOS Sonoma
- 分辨率: 3840x2160, 缩放 200%
- 浏览器: Chrome 120+ / Firefox 121+
- 处理器: Intel Core i7-11700 / AMD Ryzen 7 5800
- 内存: 32GB
- 脚本管理器: Tampermonkey 5.0 / Violentmonkey 2.18
- 显卡: GeForce RTX 3060 / Radeon RX 6600XT
- 网络: 20MB/s

# 兼容性

## 脚本管理器
Expand Down Expand Up @@ -144,7 +152,7 @@
# 相关推荐
这些脚本/插件同样能够改善您在B站的体验, 相同的功能将不会整合到 Bilibili Evolved, 但会尽可能地适配

## bilibili网页端添加APP首页推荐
## bilibili 网页端添加 APP 首页推荐
作者: [indefined](https://github.com/indefined)
- [GitHub](https://github.com/indefined/UserScripts/tree/master/bilibiliHome)
- [GreasyFork](https://greasyfork.org/zh-CN/scripts/368446-bilibili%E7%BD%91%E9%A1%B5%E7%AB%AF%E6%B7%BB%E5%8A%A0app%E9%A6%96%E9%A1%B5%E6%8E%A8%E8%8D%90)
Expand All @@ -161,7 +169,7 @@

----

**喜欢的话就点个⭐Star吧(°∀°)ノ**
**喜欢的话就点个⭐Star 吧(°∀°)ノ**

**或者也可以考虑[捐助](https://github.com/the1812/Bilibili-Evolved/blob/preview/doc/donate.md)支持一下哦(`・ω・´)**

Expand All @@ -182,7 +190,7 @@
# 我写的其他一些玩意

## [Touhou Tagger](https://github.com/the1812/Touhou-Tagger)
☯ 从 [THBWiki](https://thwiki.cc/) 自动填写东方Project同人音乐CD曲目信息
☯ 从 [THBWiki](https://thwiki.cc/) 自动填写东方 Project 同人音乐 CD 曲目信息

## [Malware Patch](https://github.com/the1812/Malware-Patch)
阻止中国流氓软件的管理员授权
Expand Down
5 changes: 5 additions & 0 deletions doc/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ https://afdian.net/@the1812?tab=sponsor

| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | --------------------- | --------- | ------- |
| 2024.01.12 22:02:24 | 简式谐_LastofNESTS | 5700 | ¥22.33 |
| 2024.01.02 16:44:38 | O*h | 5101 | ¥10.00 |
| 2023.12.18 21:46:53 | *| 1206 | ¥20.00 |
| 2023.12.12 19:57:57 | *| 0688 | ¥2.33 |
| 2023.11.30 09:23:38 | *| 2405 | ¥5.00 |
| 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 |
Expand Down
36 changes: 34 additions & 2 deletions doc/features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
"type": "component",
"name": "customFontFamily",
"displayName": "自定义字体",
"description": "by [@Tinhone](https://github.com/Tinhone)\n\n使用组件提供的字体设置覆盖原版的主站字体,并使主站字体可被自定义。字体设置写法请参考 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-family) 、默认设置与设置说明",
"description": "by [@Tinhone](https://github.com/Tinhone)\n\n使用组件提供的字体设置覆盖原版的主站字体,并使主站字体可被自定义。\r\n\r\n当组件被启用后,几乎所有的元素会立即应用组件提供的字体设置。\r\n\r\n选项说明:\r\n- `禁用标题标点符号缩进`: 在新版视频页中,推荐视频栏中的视频标题,如果首个字符是特定的标点符号,则文本会缩入左侧。这个选项可以禁用这种样式\r\n- `更多选项`:\r\n - `自定义字体`: 设置自定义字体。写法请参考 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-family)、默认设置与设置说明\r\n - `覆盖选项`: 相当于一个白名单,使用了特殊字体的元素会被加入其中。默认情况下这些元素不会应用组件提供的字体设置,只有在启用对应的选项后才会应用。",
"fullRelativePath": "../../registry/dist/components/style/custom-font-family.js",
"fullAbsolutePath": "registry/dist/components/style/custom-font-family.js"
},
Expand Down Expand Up @@ -619,7 +619,7 @@
"type": "component",
"name": "watchlaterRedirect",
"displayName": "稍后再看重定向",
"description": "将稍后再看的链接重定向为普通播放网址.",
"description": "将稍后再看的链接重定向为普通播放网址.\r\n- `重定向页面`: 对稍后再看列表页面里的链接重定向.\r\n- `重定向顶栏`: 对 `自定义顶栏` 里的稍后再看链接重定向.\r\n",
"fullRelativePath": "../../registry/dist/components/utils/watchlater-redirect.js",
"fullAbsolutePath": "registry/dist/components/utils/watchlater-redirect.js"
},
Expand Down Expand Up @@ -904,6 +904,14 @@
"description": "by FoundTheWOUT\n\n在视频播放器右上角显示系统时间.",
"owner": "FoundTheWOUT"
},
{
"type": "plugin",
"name": "feedsFilter.pluginBlocks.chargeFeeds",
"displayName": "动态过滤器 - 移除充电专属动态",
"description": "移除动态里的充电专属动态, 装有 `动态过滤器` 时生效.\r\n",
"fullRelativePath": "../../registry/dist/plugins/feeds/filter/hide-charge-feeds.js",
"fullAbsolutePath": "registry/dist/plugins/feeds/filter/hide-charge-feeds.js"
},
{
"type": "plugin",
"name": "launchBar.actions.audioSearch",
Expand Down Expand Up @@ -1032,6 +1040,14 @@
"fullRelativePath": "../../registry/dist/plugins/video/download/aria2-output.js",
"fullAbsolutePath": "registry/dist/plugins/video/download/aria2-output.js"
},
{
"type": "plugin",
"name": "downloadVideo.outputs.empty",
"displayName": "下载视频 - 空输出",
"description": "提供一个 \"\" 的输出选项, 只想获取下载视频的附带产物 (弹幕, 字幕等) 时可以使用此插件.\r\n",
"fullRelativePath": "../../registry/dist/plugins/video/download/empty-output.js",
"fullAbsolutePath": "registry/dist/plugins/video/download/empty-output.js"
},
{
"type": "plugin",
"name": "downloadVideo.outputs.idm",
Expand All @@ -1056,6 +1072,14 @@
"fullRelativePath": "../../registry/dist/plugins/video/download/motrix-output.js",
"fullAbsolutePath": "registry/dist/plugins/video/download/motrix-output.js"
},
{
"type": "plugin",
"name": "downloadVideo.outputs.mpv-ex",
"displayName": "下载视频 - MPV 输出支持加强版",
"description": "by [@asuaaa](https://github.com/Asukaaaaaa)\n\n为下载视频增加 MPV 输出,支持导出列表, 配置方式请参考 [README](https://github.com/Asukaaaaaa/tricks/blob/main/Bilibili-Evolved%20mpv-ex%20%E6%8F%92%E4%BB%B6.md)",
"fullRelativePath": "../../registry/dist/plugins/video/download/mpv-output-ex.js",
"fullAbsolutePath": "registry/dist/plugins/video/download/mpv-output-ex.js"
},
{
"type": "plugin",
"name": "downloadVideo.outputs.mpv-playlist",
Expand All @@ -1072,6 +1096,14 @@
"fullRelativePath": "../../registry/dist/plugins/video/download/mpv-output.js",
"fullAbsolutePath": "registry/dist/plugins/video/download/mpv-output.js"
},
{
"type": "plugin",
"name": "downloadVideo.outputs.wasm",
"displayName": "下载视频 - WASM 混流输出",
"description": "by [@WakelessSloth56](https://github.com/WakelessSloth56)\n\n使用 WASM 在浏览器中下载并合并音视频",
"fullRelativePath": "../../registry/dist/plugins/video/download/wasm-output.js",
"fullAbsolutePath": "registry/dist/plugins/video/download/wasm-output.js"
},
{
"type": "plugin",
"name": "speed.keymap",
Expand Down
Loading

0 comments on commit 3fed018

Please sign in to comment.