diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 2228eeab1..f2d33ab7d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -50,7 +50,7 @@ body: attributes: label: 播放器版本 description: | - 在 b 站播放器上右键可以看到播放器版本号, 大于 3 的别反馈视频相关功能了, 去 [#3187](https://github.com/the1812/Bilibili-Evolved/issues/3187) 里有. 如果是 2, 还要确认下是不是新版播放页, 需要返回旧版才能使用脚本功能. (辨认方法可参考 [#3384](https://github.com/the1812/Bilibili-Evolved/discussions/3384)) + 在 b 站播放器上右键可以看到播放器版本号 placeholder: 请输入 validations: required: true @@ -71,8 +71,8 @@ body: attributes: label: 错误信息 description: | - 脚本直接报告的错误信息, 或者浏览器开发者工具 (F12 或 Ctrl+Shift+I 召唤) 里 Console / 控制台 一栏的输出, 在过滤里填入 `bilibili evolved`, 剩下的信息就可以粘贴过来, 太长的话可以截图放下面.
- render: shell + 脚本直接报告的错误信息, 或者浏览器开发者工具 (F12 或 Ctrl+Shift+I 召唤) 里 Console / 控制台 一栏的输出, 太长的话可以截图放下面.
+ render: Shell placeholder: 请输入 validations: required: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ad618ca5..9c3ae73c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,47 @@ # 更新日志 +## v2.6.0-preview +`2023-01-01` + +包含 v2.6.0 的所有更新内容. + +✨新增 +- 新增功能 `批量导入合集`. (PR #3884 by [swhoro](https://github.com/swhoro)) +> 在合集页面制作一个批量导入按钮,可以新增所有合集内视频至同名收藏夹 + +- `扩展倍速` 添加 `隐藏移除图标` 和 `隐藏新增图标` 选项. (PR #3864 by [Tinhone](https://github.com/Tinhone)) +- 新增插件 `快捷键扩展 - 开关 CC 字幕`, 默认为 Shift + C. (#3407) + +🐛修复 +- 修复新版播放页下 `简化评论区` 的样式. (#3872) +- `StreamSaver` 下载补充三方 cookie 说明. (#3824) + +☕开发者相关 +- 完成 define API + SwitchOptions API 的改造 (受影响组件为 `简化首页` 和 `简化直播间`), 感谢 [timongh](https://github.com/timongh) 的长期贡献. +- 重新拆分了一下 PlayerAgent 的文件. + +## v2.6.0 +`2023-01-01` + +✨新增 +- `快速收起评论区` 添加了平滑滚动效果. (PR #3857 by [Mike Lei](https://github.com/mikelei8291)) +- `删除广告` 新增对搜索页广告的的屏蔽. (#3863) +- `显示视频投稿时间` 适配新版播放页. (#3860, PR #3880 by [wisokey](https://github.com/wisokey)) +- `网址参数清理` 新增 `buvid`, `mid`, `up_id` 的清理. (#3896) +- `选集区域优化` 支持折叠合集下的分组. (#3764) + +🐛修复 +- 重新调整了 `自定义顶栏` 的历史弹窗过滤器, 改为只能选择 `全部` 或者单一类型 (#2729), 解决专栏加载不出来的问题 (#3676). +- 修复 `下载字幕` 在 3.x 播放器检测不到语言选项的问题. (#3873) +- 修复旧版播放页中高能进度条未跟随主题颜色. (#3830) +- 修复 `选集区域优化` 临时收起时, 多行标题出现布局问题. (#3841) +- 修复 `禁用特殊弹幕样式` 失效. (#3886) +- 修复 `删除视频弹窗` 失效. (#3853) +- 修复 `自定义顶栏` 开启后原版顶栏高度异常. (#3833) (应该还需要再优化下, 现在还会有点小空隙, 不过没之前那么离谱了) +- `隐藏视频标题层` 补充 `视频` 标签. (#3839) + ## v2.5.2-preview +`2022-11-19` 包含 v2.5.2 的所有更新内容. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bba1f2257..b82cf8644 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,7 +30,7 @@ pnpm install // @description Bilibili Evolved (本地) // @version 300.0 // @author Grant Howard, Coulomb-G -// @copyright 2022, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G) +// @copyright 2023, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G) // @license MIT // @match *://*.bilibili.com/* // @exclude *://*.bilibili.com/*/mobile.html diff --git a/LICENCE b/LICENCE deleted file mode 100644 index 17e413b4d..000000000 --- a/LICENCE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Grant Howard - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/LICENCE.md b/LICENCE.md new file mode 100644 index 000000000..1767c9616 --- /dev/null +++ b/LICENCE.md @@ -0,0 +1 @@ +见 [开源许可](./README.md#开源许可). diff --git a/README.md b/README.md index 26238e3e1..2f65295c4 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,10 @@ **注意事项** - **⚠ 使用正式版 (GitHub 源) 和预览版须翻墙.** - 默认不带任何具体功能, 需要在按[设置](#设置)中的说明添加感兴趣的功能. -- 可能不能使用弹幕点赞和举报 -- 全景视频不能用鼠标拖拽视角(只能用键盘操作) +- 这个是一个综合性的脚本, 如果只是想下载视频建议去 [GreasyFork](https://greasyfork.org/zh-CN/scripts/by-site/bilibili.com) 找个更专业的. +- 可能不能使用弹幕点赞和举报. +- 全景视频不能用鼠标拖拽视角(只能用键盘操作). +- 默认屏蔽双击全屏, 如有需要可以安装 `双击全屏` 组件来恢复. - 对性能有较大影响. - 默认不对未登录的状态做适配. - 新版本一旦正式发布, 就不再对旧版本做任何技术支持. @@ -41,6 +43,8 @@ | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | [安装](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) | +> 如果处于某种原因只能停在旧版, 可以参考[旧版本回退指南](./doc/rollback.md). + # 设置 脚本启用后, 在网页左侧中央会有功能面板和设置面板的入口. 功能面板中包含适用于当前页面的一些功能入口, 设置面板中可以管理组件的开启/关闭, 修改组件选项, 以及安装/卸载组件和插件等. @@ -115,6 +119,16 @@ 但是, 任何组件/插件都对用户数据有着完全的访问能力, 对于其他来源(非本仓库提供)的组件/插件, 请自行甄别其安全性. +# 开源许可 +源代码基于 [MIT 许可](https://zh.wikipedia.org/zh-cn/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89) 公开. + +但存在一些限制: +- 如果需要在其他地方发布此脚本1, 则必须满足以下条件之一: + - 保留此 README 文档, 且安装入口只存在于此文档的 ["安装"](#安装) 章节中, 不得额外提供跳过 README 文档阅读即可安装的方式. + - 自行处理相关联的技术支持, 不得直接导向本仓库. 也就是必须 Fork 并修改所有指向本仓库的反馈渠道, 包括 Issues 和 Discussions. 本仓库不对来自其他来源安装的脚本提供技术支持. + +> 1 指发布脚本的完整内容, 例如直接将安装链接 (以 `.user.js` 结尾) 发布, 或者在 GreasyFork 等脚本托管站点导入. 如果只是指向本仓库的页面链接 (例如 `https://github.com/the1812/Bilibili-Evolved`) 是没关系的. + # 第三方开源组件 👍感谢这些组件帮助我们极大地提升了开发效率. diff --git a/doc/donate.md b/doc/donate.md index 6444cf7bd..253d8cad8 100644 --- a/doc/donate.md +++ b/doc/donate.md @@ -28,6 +28,15 @@ https://afdian.net/@the1812?tab=sponsor | 时间 | 用户名 | 单号后4位 | 金额 | | ------------------- | ---------------- | --------- | ------- | +| 2022.12.31 16:59:32 | *梦 | 6802 | ¥5.00 | +| 2022.12.26 22:36:34 | b*8 | 3849 | ¥2.50 | +| 2022.12.16 12:27:57 | *訪 | 6143 | ¥3.79 | +| 2022.12.16 11:10:46 | U* | 8902 | ¥1.00 | +| 2022.12.13 21:43:21 | Y*l | 3706 | ¥5.00 | +| 2022.12.12 22:44:19 | 匿名 | 8546 | ¥10.00 | +| 2022.12.05 15:52:54 | 匿名 | 9553 | ¥5.00 | +| 2022.11.27 15:27:00 | gary8177 | 0627 | ¥10.00 | +| 2022.11.26 12:47:00 | 匿名 | 3570 | ¥10.00 | | 2022.11.18 18:53:22 | 匿名 | 4381 | ¥3.00 | | 2022.11.15 17:47:37 | *歌 | 4853 | ¥1.00 | | 2022.11.08 09:13:48 | 匿名 | 7879 | ¥5.00 | diff --git a/doc/features/features.json b/doc/features/features.json index bc3d20cb9..224331352 100644 --- a/doc/features/features.json +++ b/doc/features/features.json @@ -667,7 +667,7 @@ "type": "component", "name": "removePlayerPopup", "displayName": "删除视频弹窗", - "description": "删除视频播放器中出现的各种弹窗, 类别可在选项中分别选择.", + "description": "删除视频播放器中出现的各种弹窗, 类别可在选项中分别选择.\r\n", "fullRelativePath": "../../registry/dist/components/video/player/remove-popup.js", "fullAbsolutePath": "registry/dist/components/video/player/remove-popup.js" }, diff --git a/doc/features/pack/pack.json b/doc/features/pack/pack.json index 14a4b8cae..67d002dcc 100644 --- a/doc/features/pack/pack.json +++ b/doc/features/pack/pack.json @@ -37,7 +37,7 @@ "type": "component", "name": "removePlayerPopup", "displayName": "删除视频弹窗", - "description": "删除视频播放器中出现的各种弹窗, 类别可在选项中分别选择.", + "description": "删除视频播放器中出现的各种弹窗, 类别可在选项中分别选择.\r\n", "fullRelativePath": "../../registry/dist/components/video/player/remove-popup.js", "fullAbsolutePath": "registry/dist/components/video/player/remove-popup.js" }, diff --git a/doc/issue-rules.md b/doc/issue-rules.md index c19fce75c..c6d698931 100644 --- a/doc/issue-rules.md +++ b/doc/issue-rules.md @@ -5,7 +5,7 @@ Issues 用于记录 Bug 等发生异常问题的情况, 如果您希望讨论新 > 请注意 Issues 和 Discussions (讨论区) 是两个独立板块, 搜索结果是相互独立的, Issues 搜索不到的内容可能能在 Discussions 里搜到. > > 讨论区于 2020-12-10 启用, 在此之前的新功能建议 / 提问 / 答疑的讨论仍然可以在 Issues 这边搜索到. -> +> > 讨论区使用指南见 https://github.com/the1812/Bilibili-Evolved/discussions/1297 发之前记得看下置顶 (Pinned) 的 issue (如果有的话), 当遇到一些我认为会影响绝大部分用户的情况时, 我就会把这个 issue 置顶. @@ -18,8 +18,6 @@ Issues 用于记录 Bug 等发生异常问题的情况, 如果您希望讨论新 Bug 反馈不仅仅是描述您遇到了什么样的 bug, 更重要的是总结一套步骤, 按照这个步骤来就能稳定遇到 bug. (对应模板中的`问题描述`) 其次是一些环境信息, 模板中也已经给出, 通常包括`脚本版本`, `浏览器版本`, `错误信息`等. 有时候我可能还会需要您导出脚本设置. -> 提示: 最好先在预览离线版(Preview Offline)中测试一下, 有些问题可能已经修复了但还未正式发布. - 我们对此的处理方式如下: 1. 对于给出了所有必要信息的 bug 反馈, 我们会尽量尝试重现并修复这个 bug, 优先级高于功能请求. 2. 信息不全或者无法重现的, 我们有空的话会追问更多信息, 争取转变为上一条的情况; 没空的话可能就没有回复了, 但会留个心眼, 如果我们之后遇到了会再找过来解决的, 当然您主动提供更多信息自然更好. @@ -37,10 +35,10 @@ Bug 反馈不一定会做出回复, 特别是内容写得非常清晰时, 我就 附部分标签含义解释: > 讨论区的功能对应的标签这里不再列出. -- `bug`: 确认为Bug, 将会处理 -- `maybe-bug`: 可能是Bug, 待测试验证 -- `adaptation`: b站的变化导致脚本未跟进适配 -- `bad-issue`: 不符合以上规范的issue +- `bug`: 确认为 Bug, 将会处理 +- `maybe-bug`: 可能是 Bug, 待测试验证 +- `adaptation`: b 站的变化导致脚本未跟进适配 +- `bad-issue`: 不符合以上规范的 issue - `compatibility`: 兼容性问题 - `duplicate`: 重复 - `help-wanted`: 没啥解决思路 diff --git a/doc/rollback.md b/doc/rollback.md new file mode 100644 index 000000000..6f15fabb8 --- /dev/null +++ b/doc/rollback.md @@ -0,0 +1,21 @@ +# 旧版本回退指南 + +> ⚠警告: 使用旧版本产生的不兼容 / 功能失效等问题需要自行承担, 本仓库只受理最新版脚本的反馈. + +在 [Release](https://github.com/the1812/Bilibili-Evolved/releases) 中找到要回退的版本, 并记住发布的时间. + +前往 https://github.com/the1812/Bilibili-Evolved/commits/master/dist/bilibili-evolved.user.js, 找到相同日期中的第一个 `CI Build`, 并点击查看详情. + +![image](https://user-images.githubusercontent.com/26504152/206855808-27c0d501-0c98-4f9c-be30-53ad0db715ab.png) + +在详情页中右键 `Raw`, 选择 `Save link as...` (链接另存为), 会下载脚本的内容. + +![image](https://user-images.githubusercontent.com/26504152/206855884-4a704c4c-4020-47fc-aa04-0f855d73b19b.png) + +将脚本内容粘贴覆盖到油猴中, 并删掉这两行检查更新用的配置. + +![image](https://user-images.githubusercontent.com/26504152/206856196-fbde3ef9-eddf-4b3f-a12f-12547f2f0494.png) + +保存后, 进入 b 站, 从脚本设置中关闭 `自动更新器`. + +![image](https://user-images.githubusercontent.com/26504152/206856445-ce5ebeb1-7d58-4602-8c3b-c506efdd5f32.png) diff --git a/registry/lib/components/feeds/fold-comments/index.ts b/registry/lib/components/feeds/fold-comments/index.ts index e75971bd5..2b845e510 100644 --- a/registry/lib/components/feeds/fold-comments/index.ts +++ b/registry/lib/components/feeds/fold-comments/index.ts @@ -24,7 +24,7 @@ const entry = async () => { button.innerHTML = '收起评论' button.addEventListener('click', () => { clickHandler() - card.scrollIntoView() + card.scrollIntoView({ behavior: 'smooth' }) }) commentBox.insertAdjacentElement('beforeend', button) } diff --git a/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue b/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue index d61166464..6bb5f51c0 100644 --- a/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue +++ b/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue @@ -155,6 +155,8 @@ export default Vue.extend({