Skip to content

Commit

Permalink
Merge pull request #344 from the1812/preview
Browse files Browse the repository at this point in the history
Update to v1.10.5
  • Loading branch information
the1812 committed Feb 23, 2020
2 parents b127b08 + f353f43 commit 461a805
Show file tree
Hide file tree
Showing 127 changed files with 3,135 additions and 754 deletions.
16 changes: 10 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
---
name: Bug report
about: 报告问题
about: Bug 反馈

---
<!-- Tip: 最好先在预览离线版(Preview Offline)中测试一下, 有些问题可能已经修复了但还未正式发布 -->
<!-- 最好先在预览离线版(Preview Offline)中测试一下, 有些问题可能已经修复了但还未正式发布 -->

<!-- 请先确保您已在issues里搜索过相关问题, 避免重复 -->

**关于哪一项功能**
<!-- 请先确保您已阅读过 README 中对此功能的相关说明, 其中一些细节说明可能就能解决您的问题 -->
<!-- https://github.com/the1812/Bilibili-Evolved/blob/master/README.md#%E5%8A%9F%E8%83%BD -->

**关于哪一项功能**


**问题描述**
<!-- 如何重现此问题, 在哪个页面里出现这个问题, 比如视频相关的可以提供一下av号 -->


**脚本版本**
<!-- 例如正式版1.8.0 -->
<!-- 例如正式版1.10.0 -->


**浏览器版本**
<!-- 例如Chrome 74 -->
<!-- 例如Chrome 80 -->


**错误信息**
<!-- 脚本直接报告的内部错误信息, 或者浏览器开发者工具(F12 或 Ctrl+Shift+I 召唤)里Console一栏的输出, 详见 https://github.com/the1812/Bilibili-Evolved/wiki/查看浏览器输出的信息 -->
<!-- **请尽量填写, 这对于确定问题原因非常重要** -->
<!-- 脚本直接报告的错误信息, 或者浏览器开发者工具(F12 或 Ctrl+Shift+I 召唤)里Console一栏的输出, 详见 https://github.com/the1812/Bilibili-Evolved/wiki/查看浏览器输出的信息 -->


**附加截图**
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ about: 功能建议


**脚本版本**
<!-- 正式版/离线版/预览版/预览离线版, 可以省略版本号 -->
<!-- 以便相应的版本加入了请求的功能后, 我能及时通知你 -->
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Question
about: 提问

---

<!-- 请先确保您已在issues里搜索过相关问题, 避免重复 -->
<!--
可在此提出对脚本的一些疑问, 我会尽量回答
附常见问题解答: https://github.com/the1812/Bilibili-Evolved/blob/preview/Q%26A.md
-->
12 changes: 12 additions & 0 deletions @types/global/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ declare global {
userEffect: boolean,
kanban: boolean,
eventsBanner: boolean,
rankList: boolean,
popup: boolean,
skin: boolean,
[key: string]: boolean,
Expand Down Expand Up @@ -392,6 +393,10 @@ declare global {
doubleClickFullscreenPreventSingleClick: boolean
simplifyHome: boolean,
simplifyHomeStyle: '清爽' | '极简',
minimalHomeSettings: {
showSearch: boolean,
backgroundImage: string,
},
ajaxHook: boolean,
scriptLoadingMode: '同时' | '延后' | '同时(自动)' | '延后(自动)' | '自动',
scriptDownloadMode: 'bundle' | 'legacy'
Expand Down Expand Up @@ -426,6 +431,13 @@ declare global {
downloadVideoQuality: number,
downloadSubtitle: boolean,
removeGameMatchModule: boolean,
noDarkOnMember: boolean,
feedsTranslate: boolean,
feedsTranslateProvider: 'Bing' | 'Google' | 'Baidu' | 'GoogleCN',
feedsTranslateLanguage: string,
downloadLiveRecords: boolean
forceHighQualityLive: boolean
recordLiveDanmaku: boolean,
latestVersionLink: string,
currentVersion: string,
}
Expand Down
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Grant Howard
Copyright (c) 2020 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
Expand Down
32 changes: 32 additions & 0 deletions Q&A.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 常见问题

## 左侧没有设置等按钮 / 页面没有任何变化

- 检查脚本是否安装完整, 可以在[首页](https://github.com/the1812/Bilibili-Evolved#安装)中使用不同的安装源重新安装.
- 检查浏览器是否支持, 此脚本仅支持高版本的原版Chrome, Edge (Chromium 内核), Firefox, Safari.

## 下载视频相关

### 直接下载时标签页崩溃 / 报错 "File could not be read"

直接下载过程中所有数据都存在内存里, 不同浏览器可以存放1~2G左右, 太大的视频就会导致标签页崩溃或报错. 可以考虑使用`显示链接`转给IDM或浏览器下载, 或使用[导出 aria2](aria2-notice.md)来进行下载.

### 下载时报错: 获取下载链接失败

有多种可能原因:
- 账号权限不足:
- 1080P 720P 需要登录账号
- 1080P60 1080P+ 720P60 需要大会员账号
- 片源没有对应格式: 例如老视频仅有`FLV`格式, 选择`DASH`格式就会失败, 请更换格式.

### 港澳台番剧没有下载按钮

如果以您的账号权限无法观看某些视频(地区限制, 大会员专享等), 就算使用了类似[解除B站区域限制](https://greasyfork.org/zh-CN/scripts/25718-%E8%A7%A3%E9%99%A4b%E7%AB%99%E5%8C%BA%E5%9F%9F%E9%99%90%E5%88%B6)的脚本也是无法下载的, 除非您有对应节点的梯子.

### 番剧没有弹幕

部分用户在同时开启此脚本和[解除B站区域限制](https://greasyfork.org/zh-CN/scripts/25718-%E8%A7%A3%E9%99%A4b%E7%AB%99%E5%8C%BA%E5%9F%9F%E9%99%90%E5%88%B6)脚本后, 会出现番剧没有弹幕的问题, 目前没有解决方法.

### 如何得到 MP4 格式

下载时选择`DASH`格式(注意只有新一点的视频才支持, 老视频只有`FLV`), 得到视频和音频文件后用 [ffmpeg](https://ffmpeg.org/) 合并, 合并方法见[#183](https://github.com/the1812/Bilibili-Evolved/issues/183).
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@

| | 正式版 | 预览版 | 离线版 | 预览离线版 |
| ---------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| GreasyFork | [安装](https://greasyfork.org/scripts/373563-bilibili-evolved/code/Bilibili%20Evolved.user.js) | [安装](https://greasyfork.org/scripts/373564-bilibili-evolved-preview/code/Bilibili%20Evolved%20(Preview).user.js) | [安装](https://greasyfork.org/scripts/373565-bilibili-evolved-offline/code/Bilibili%20Evolved%20(Offline).user.js) | [安装](https://greasyfork.org/scripts/373566-bilibili-evolved-preview-offline/code/Bilibili%20Evolved%20(Preview%20Offline).user.js) |
| jsDelivr | [安装](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/bilibili-evolved.user.js) | [安装](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/bilibili-evolved.preview.user.js) | [安装](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/bilibili-evolved.offline.user.js) | [安装](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/bilibili-evolved.preview-offline.user.js) |
| GreasyFork | [安装](https://greasyfork.org/scripts/373563-bilibili-evolved/code/Bilibili%20Evolved.user.js) | [安装](https://greasyfork.org/scripts/373564-bilibili-evolved-preview/code/Bilibili%20Evolved%20(Preview).user.js) | [安装](https://greasyfork.org/scripts/373565-bilibili-evolved-offline/code/Bilibili%20Evolved%20(Offline).user.js) | [安装](https://greasyfork.org/scripts/373566-bilibili-evolved-preview-offline/code/Bilibili%20Evolved%20(Preview%20Offline).user.js) |
| GitHub | [安装](https://github.com/the1812/Bilibili-Evolved/raw/master/bilibili-evolved.user.js) | [安装](https://github.com/the1812/Bilibili-Evolved/raw/preview/bilibili-evolved.preview.user.js) | [安装](https://github.com/the1812/Bilibili-Evolved/raw/master/bilibili-evolved.offline.user.js) | [安装](https://github.com/the1812/Bilibili-Evolved/raw/preview/bilibili-evolved.preview-offline.user.js) |


Expand Down Expand Up @@ -79,9 +79,7 @@

支持**最新版** Chrome, Edge (Chromium 内核), Firefox, Safari, 不保证脚本能在["套壳类浏览器"](https://www.jianshu.com/p/67d790a8f221)或者较长时间没更新的浏览器中完美运行.

UWP 版 Edge 已经不再支持了(就是 Windows 10 自带的那个), 请使用以上列出的浏览器, 或换用 [Chromium 内核的 Edge](https://microsoftedgeinsider.com/).

另外, Chromium 内核的 Edge 可以通过特殊手段启用中文界面, 网上搜一下就有, 或者也可以参考这篇 [Gist](https://gist.github.com/the1812/bd5c3edabd61b03696428fcfde53d74f). (需要梯子)
UWP 版 Edge 已经不再支持了(就是 Windows 10 自带的那个), 请使用以上列出的浏览器, 或换用 [Chromium 内核的 Edge](https://www.microsoft.com/en-us/edge).

# 关于源码
虽然本项目的源代码是公开的, 但是我并不推荐您花太多时间阅读这些代码. 因为这是我的第一个JavaScript项目, 它包含了从我初学JavaScript到如今形成一定风格以来写下的各种代码(各种祖传代码), 不同的几个模块可能风格差异会很大, 像是早期DOM操作经常使用jQuery到后期转向原生API和Vue, 4空格缩进变成2空格缩进等等. 一些比较复杂的模块里也是放飞自我.
Expand Down
132 changes: 93 additions & 39 deletions bilibili-evolved.offline.user.js

Large diffs are not rendered by default.

132 changes: 93 additions & 39 deletions bilibili-evolved.preview-offline.user.js

Large diffs are not rendered by default.

132 changes: 93 additions & 39 deletions bilibili-evolved.preview.user.js

Large diffs are not rendered by default.

132 changes: 93 additions & 39 deletions bilibili-evolved.user.js

Large diffs are not rendered by default.

50 changes: 30 additions & 20 deletions donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,36 @@
<img alt="微信" src="images/compressed/wechat.jpg" height="200">

# 历史
| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | ------ | --------- | ------ |
| 2020.01.23 23:06:56 | 匿名 | 8203 | ¥20.00 |
| 2019.12.30 12:06:41 | *依蒙 | 8772 | ¥0.50 |
| 2019.12.22 15:42:56 | *家康 | 9834 | ¥5.00 |
| 2019.12.09 21:10:07 | *| 8648 | ¥10.00 |
| 2019.12.07 09:05:16 | Lucky9 | 7976 | ¥10.00 |
| 2019.11.27 20:05:01 | *宏强 | 8232 | ¥20.00 |
| 2019.11.17 16:11:09 | *靖轩 | 2468 | ¥1.88 |
| 2019.11.16 23:59:03 | *誉恒 | 1233 | ¥2.00 |
| 2019.10.17 15:20:20 | *| 5265 | ¥5.00 |
| 2019.08.22 19:26:01 | 匿名 | 3083 | ¥22.33 |
| 2019.08.08 21:12:46 | *| 8309 | ¥5.00 |
| 2019.08.07 03:47:05 | 匿名 | 2174 | ¥50.00 |
| 2019.07.31 20:49:07 | *耀宇 | 5181 | ¥50.00 |
| 2019.04.28 09:33:31 | *| 4775 | ¥10.00 |
| 2019.03.18 11:22:34 | T*r | 2298 | ¥2.00 |
| 2019.02.03 00:40:46 | *博睿 | 2418 | ¥6.00 |
| 2019.01.20 12:17:02 | *| 4063 | ¥10.00 |
| 2019.01.19 19:39:10 | *泽鹏 | 8554 | ¥10.00 |

(列表是手动维护的, 可能无法及时更新)
<!--'单号'在支付宝中为'收款单号'-->

| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | -------- | --------- | ------ |
| 2020.02.14 20:00:17 | pandline | 3302 | ¥5.00 |
| 2020.02.09 02:05:35 | Lucky9 | 0233 | ¥10.00 |
| 2020.02.06 20:56:15 | *| 2251 | ¥5.00 |
| 2020.02.06 20:55:24 | *| 1247 | ¥20.20 |
| 2020.01.31 21:14:21 | D*n | 5231 | ¥2.00 |
| 2020.01.28 23:06:56 | 匿名 | 4162 | ¥20.00 |
| 2020.01.23 23:06:56 | 匿名 | 8203 | ¥20.00 |
| 2019.12.30 12:06:41 | *| 8772 | ¥0.50 |
| 2019.12.22 15:42:56 | *| 9834 | ¥5.00 |
| 2019.12.09 21:10:07 | *| 8648 | ¥10.00 |
| 2019.12.07 09:05:16 | Lucky9 | 7976 | ¥10.00 |
| 2019.11.27 20:05:01 | *| 8232 | ¥20.00 |
| 2019.11.17 16:11:09 | *| 2468 | ¥1.88 |
| 2019.11.16 23:59:03 | *| 1233 | ¥2.00 |
| 2019.10.17 15:20:20 | *| 5265 | ¥5.00 |
| 2019.08.22 19:26:01 | 匿名 | 3083 | ¥22.33 |
| 2019.08.08 21:12:46 | *| 8309 | ¥5.00 |
| 2019.08.07 03:47:05 | 匿名 | 2174 | ¥50.00 |
| 2019.07.31 20:49:07 | *| 5181 | ¥50.00 |
| 2019.04.28 09:33:31 | *| 4775 | ¥10.00 |
| 2019.03.18 11:22:34 | T*r | 2298 | ¥2.00 |
| 2019.02.03 00:40:46 | *| 2418 | ¥6.00 |
| 2019.01.20 12:17:02 | *| 4063 | ¥10.00 |
| 2019.01.19 19:39:10 | *| 8554 | ¥10.00 |

# 对备注的回复

Expand Down
21 changes: 14 additions & 7 deletions features.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
在视频播放页面中, `下载视频`按钮将在`附加功能`中启用, 点击可以选择清晰度并下载.

### 注意事项
- 请尊重视频原作者的版权.
- 下载后的格式通常为`.flv`, 若需要`.mp4`格式则要手动用其他软件转换, 例如 [ffmpeg](https://ffmpeg.org/)[Handbrake](http://handbrake.fr/).
- **分段**的视频会把所有视频打包成`.zip`格式.
- 请尊重视频原作者的版权, 因下载产生的纠纷本人概不负责.
- `DASH`格式下载将得到视频和音频两个文件, 合并请参考[#183](https://github.com/the1812/Bilibili-Evolved/issues/183).
- `FLV`格式视频如果有分段, 会把所有视频打包成`.zip`格式.
- 能够下载的清晰度取决于当前登录的账号, 例如`高清 1080P60`需要已登录大会员账号.
- 如果以您的账号权限无法观看某些视频(地区限制, 大会员专享等), 就算使用了类似[解除B站区域限制](https://greasyfork.org/zh-CN/scripts/25718-%E8%A7%A3%E9%99%A4b%E7%AB%99%E5%8C%BA%E5%9F%9F%E9%99%90%E5%88%B6)的脚本也是无法下载的. ~~除非您有对应节点的梯子~~
- 直接下载过程中所有数据都存在内存里, 内存占用很大的话会导致系统卡顿. 可以考虑[导出 aria2](aria2-notice.md)来进行下载.
- 如果以您的账号权限无法观看某些视频(地区限制, 大会员专享等), 就算使用了类似[解除B站区域限制](https://greasyfork.org/zh-CN/scripts/25718-%E8%A7%A3%E9%99%A4b%E7%AB%99%E5%8C%BA%E5%9F%9F%E9%99%90%E5%88%B6)的脚本也是无法下载的, 除非您有对应节点的梯子.
- 直接下载过程中所有数据都存在内存里, 内存占用很大的话会导致系统卡顿. 可以考虑使用`显示链接`转给IDM或浏览器下载, 或使用[导出 aria2](aria2-notice.md)来进行下载.

<!-- - 使用`复制链接`得到的链接并不是直接就能用的, 因为**下载时的请求Header必须包含`Referer=https://www.bilibili.com`和正确的`User-Agent`**, 直接粘贴在浏览器里是打不开的. [详细信息](https://github.com/the1812/Bilibili-Evolved/wiki/使用下载视频的复制链接) -->

Expand Down Expand Up @@ -297,6 +297,7 @@
- 隐藏上舰提示 (弹幕列表里的 xxx开通了舰长)
- 隐藏付费礼物 (播放器下面的各种金瓜子礼物, 以及许愿瓶, 上舰等)
- 隐藏活动横幅
- 隐藏排行榜
- 隐藏抽奖提示 (开通舰长, 小飞船抽奖等)
- 禁用直播间皮肤

Expand All @@ -308,8 +309,6 @@
<details>
<summary><strong>简化首页</strong></summary>

> **低完成度警告**
> 此功能需要做一些额外设置, 详见[简化首页注意事项](src/style/simplify-home/simplify-home.md)
替换原本的首页, 有两种样式可用:
Expand Down Expand Up @@ -575,6 +574,14 @@

自动删除链接中的多余跟踪参数, 例如`spm_id_from`, `from_source`, `share_source`等.

</details>
<details>
<summary><strong>直播弹幕记录器</strong></summary>

开启后, 在直播间里可以从附加功能中启动弹幕记录器, 会记录启动后所有收到的弹幕, 并可以导出为XML弹幕文件.

> 弹幕的发送时间是相对于直播开始时间确定的.
</details>


Expand Down
Loading

0 comments on commit 461a805

Please sign in to comment.