Skip to content

Commit

Permalink
Merge branch 'preview-fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Jan 1, 2023
2 parents 19330b8 + 2b14fea commit 702d02d
Show file tree
Hide file tree
Showing 35 changed files with 326 additions and 117 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -71,8 +71,8 @@ body:
attributes:
label: 错误信息
description: |
脚本直接报告的错误信息, 或者浏览器开发者工具 (F12 或 Ctrl+Shift+I 召唤) 里 Console / 控制台 一栏的输出, 在过滤里填入 `bilibili evolved`, 剩下的信息就可以粘贴过来, 太长的话可以截图放下面. <br><img width="400" src="https://user-images.githubusercontent.com/26504152/173189611-f1e9e46a-a31d-4d21-a95a-5771e16372dd.png">
render: shell
脚本直接报告的错误信息, 或者浏览器开发者工具 (F12 或 Ctrl+Shift+I 召唤) 里 Console / 控制台 一栏的输出, 太长的话可以截图放下面. <br><img width="400" src="https://user-images.githubusercontent.com/26504152/173189611-f1e9e46a-a31d-4d21-a95a-5771e16372dd.png">
render: Shell
placeholder: 请输入
validations:
required: true
Expand Down
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 字幕`, 默认为 <kbd>Shift</kbd> + <kbd>C</kbd>. (#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 的所有更新内容.

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 0 additions & 21 deletions LICENCE

This file was deleted.

1 change: 1 addition & 0 deletions LICENCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[开源许可](./README.md#开源许可).
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
**注意事项**
- **⚠ 使用正式版 (GitHub 源) 和预览版须翻墙.**
- 默认不带任何具体功能, 需要在按[设置](#设置)中的说明添加感兴趣的功能.
- 可能不能使用弹幕点赞和举报
- 全景视频不能用鼠标拖拽视角(只能用键盘操作)
- 这个是一个综合性的脚本, 如果只是想下载视频建议去 [GreasyFork](https://greasyfork.org/zh-CN/scripts/by-site/bilibili.com) 找个更专业的.
- 可能不能使用弹幕点赞和举报.
- 全景视频不能用鼠标拖拽视角(只能用键盘操作).
- 默认屏蔽双击全屏, 如有需要可以安装 `双击全屏` 组件来恢复.
- 对性能有较大影响.
- 默认不对未登录的状态做适配.
- 新版本一旦正式发布, 就不再对旧版本做任何技术支持.
Expand All @@ -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).
# 设置
脚本启用后, 在网页左侧中央会有功能面板和设置面板的入口. 功能面板中包含适用于当前页面的一些功能入口, 设置面板中可以管理组件的开启/关闭, 修改组件选项, 以及安装/卸载组件和插件等.

Expand Down Expand Up @@ -115,6 +119,16 @@

但是, 任何组件/插件都对用户数据有着完全的访问能力, 对于其他来源(非本仓库提供)的组件/插件, 请自行甄别其安全性.

# 开源许可
源代码基于 [MIT 许可](https://zh.wikipedia.org/zh-cn/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89) 公开.

但存在一些限制:
- 如果需要在其他地方发布此脚本<sup>1</sup>, 则必须满足以下条件之一:
- 保留此 README 文档, 且安装入口只存在于此文档的 ["安装"](#安装) 章节中, 不得额外提供跳过 README 文档阅读即可安装的方式.
- 自行处理相关联的技术支持, 不得直接导向本仓库. 也就是必须 Fork 并修改所有指向本仓库的反馈渠道, 包括 Issues 和 Discussions. 本仓库不对来自其他来源安装的脚本提供技术支持.

> <sup>1</sup> 指发布脚本的完整内容, 例如直接将安装链接 (以 `.user.js` 结尾) 发布, 或者在 GreasyFork 等脚本托管站点导入. 如果只是指向本仓库的页面链接 (例如 `https://github.com/the1812/Bilibili-Evolved`) 是没关系的.
# 第三方开源组件
👍感谢这些组件帮助我们极大地提升了开发效率.

Expand Down
9 changes: 9 additions & 0 deletions doc/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion doc/features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion doc/features/pack/pack.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
12 changes: 5 additions & 7 deletions doc/issue-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 置顶.
Expand All @@ -18,8 +18,6 @@ Issues 用于记录 Bug 等发生异常问题的情况, 如果您希望讨论新

Bug 反馈不仅仅是描述您遇到了什么样的 bug, 更重要的是总结一套步骤, 按照这个步骤来就能稳定遇到 bug. (对应模板中的`问题描述`) 其次是一些环境信息, 模板中也已经给出, 通常包括`脚本版本`, `浏览器版本`, `错误信息`等. 有时候我可能还会需要您导出脚本设置.

> 提示: 最好先在预览离线版(Preview Offline)中测试一下, 有些问题可能已经修复了但还未正式发布.
我们对此的处理方式如下:
1. 对于给出了所有必要信息的 bug 反馈, 我们会尽量尝试重现并修复这个 bug, 优先级高于功能请求.
2. 信息不全或者无法重现的, 我们有空的话会追问更多信息, 争取转变为上一条的情况; 没空的话可能就没有回复了, 但会留个心眼, 如果我们之后遇到了会再找过来解决的, 当然您主动提供更多信息自然更好.
Expand All @@ -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`: 没啥解决思路
Expand Down
21 changes: 21 additions & 0 deletions doc/rollback.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion registry/lib/components/feeds/fold-comments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const entry = async () => {
button.innerHTML = '收起评论'
button.addEventListener('click', () => {
clickHandler()
card.scrollIntoView()
card.scrollIntoView({ behavior: 'smooth' })
})
commentBox.insertAdjacentElement('beforeend', button)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ export default Vue.extend({
</script>

<style lang="scss">
@import 'common';
.custom-navbar-item {
color: inherit;
position: relative;
Expand Down Expand Up @@ -216,7 +218,7 @@ export default Vue.extend({
}
&.active .main-content {
font-weight: bold;
@include semi-bold();
font-size: 11pt;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export default Vue.extend({
.title {
grid-area: title;
font-size: 13px;
font-weight: bold;
@include semi-bold();
@include max-line(2);
-webkit-box-align: start;
margin: 0;
Expand Down
Loading

0 comments on commit 702d02d

Please sign in to comment.