mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Merge remote-tracking branch 'upstream/preview' into features/blacklist-default-video-speed
This commit is contained in:
commit
af5ddd9087
@ -228,7 +228,7 @@ dotnet builder/dotnet/publish/build.dll watch
|
||||
// @description Bilibili Evolved 预览离线版 (本地)
|
||||
// @version 300.0
|
||||
// @author Grant Howard, Coulomb-G
|
||||
// @copyright 2020, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||
// @copyright 2021, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||
// @license MIT
|
||||
// @match *://*.bilibili.com/*
|
||||
// @exclude *://*.bilibili.com/*/mobile.html
|
||||
|
||||
2
LICENCE
2
LICENCE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Grant Howard
|
||||
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
|
||||
|
||||
22
README.md
22
README.md
@ -40,19 +40,18 @@
|
||||
| | 更新延迟 | 下载速度 | 正式版 | 预览版 | 离线版 | 预览离线版 |
|
||||
| -------- | -------- | -------- | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
|
||||
| jsDelivr | 24h | 极快 | [安装](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) |
|
||||
| Fast.io | <1h | 快 | [安装](https://lunatic-kingdom.imfast.io/bilibili-evolved.user.js) | [安装](https://subterranean-rose.imfast.io/bilibili-evolved.preview.user.js) | [安装](https://lunatic-kingdom.imfast.io/bilibili-evolved.offline.user.js) | [安装](https://subterranean-rose.imfast.io/bilibili-evolved.preview-offline.user.js) |
|
||||
| GitHub | <1h | 慢 | [安装](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) |
|
||||
|
||||
> Fast.io 年底将停止使用, 如果你在 2021 年看到我这里还没把 Fast.io 源删掉, 也请不要用 Fast.io 源进行安装.
|
||||
|
||||
## 推荐配置
|
||||
- 操作系统: 64-bit Windows 10 / macOS 10.15+
|
||||
- 分辨率: 2K
|
||||
- 分辨率: 2K+ / 192ppi
|
||||
- 浏览器: Chrome 80+ / Firefox 65+ / Edge 80+ / Safari 14+
|
||||
- 处理器: Intel Core i7 / AMD Ryzen 5
|
||||
- 内存: 8GB
|
||||
- 脚本管理器: Tampermonkey 4.11 / Violentmonkey 2.12
|
||||
- 显卡: GeForce GTX 660 / Radeon HD 7870
|
||||
- 网络: 10MB/s
|
||||
|
||||
# 设置
|
||||
脚本启用后, 在网页左侧中央会有一个齿轮图标, 点击即可打开设置. 默认只启用了一部分功能, 您可以根据需要自由调整设置.
|
||||
@ -86,16 +85,16 @@
|
||||
UWP 版 Edge 已经不再支持了(就是 Windows 10 自带的那个), 请使用以上列出的浏览器, 或换用 [Chromium 内核的 Edge](https://www.microsoft.com/en-us/edge).
|
||||
> Windows 10 20H2 更新中好像完全替换掉了 UWP 版 Edge (R.I.P.) 自带浏览器变成了 Chromium 内核 Edge.
|
||||
|
||||
# 参与项目
|
||||
欢迎参考[代码贡献指南](CONTRIBUTING.md)来为项目添砖加瓦~ (小心编译器的神秘 bug / 小心被祖传代码闪瞎)
|
||||
# 开发者
|
||||
[](https://github.com/the1812/Bilibili-Evolved/graphs/contributors)
|
||||
|
||||
## 界面翻译
|
||||
特别感谢给我们提供了翻译文本的各位:
|
||||
## 文案翻译贡献者
|
||||
- [PleiadeSubaru](https://github.com/Etherrrr)
|
||||
- [Lets-Halloween](https://github.com/Lets-Halloween)
|
||||
- Joshuaふみひる
|
||||
|
||||
也欢迎任何翻译大佬帮助我们改善翻译的内容, 习惯直接改代码可以开 Pull Request, 习惯整理出文本的可以加QQ群963709592讨论.
|
||||
## 参与项目
|
||||
欢迎参考[代码贡献指南](CONTRIBUTING.md)来为项目添砖加瓦~ (小心编译器的神秘 bug / 小心被祖传代码闪瞎)
|
||||
|
||||
# 第三方开源组件
|
||||
👍感谢这些组件帮助我们极大地提升了开发效率.
|
||||
@ -115,12 +114,7 @@ UWP 版 Edge 已经不再支持了(就是 Windows 10 自带的那个), 请使用
|
||||
- ASS弹幕下载不能包含高级弹幕, 字幕弹幕等.
|
||||
|
||||
# 相关推荐
|
||||
这些脚本/插件同样能够改善您在B站的体验, 相同的功能将不会整合到 Bilibili Evolved, 但会尽可能地适配并保持无冲突.
|
||||
|
||||
## 解除B站区域限制
|
||||
作者: [ipcjs](https://github.com/ipcjs)
|
||||
- [GitHub](https://github.com/ipcjs/bilibili-helper/blob/user.js/bilibili_bangumi_area_limit_hack.md)
|
||||
- [GreasyFork](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站的体验, 相同的功能将不会整合到 Bilibili Evolved, 但会尽可能地适配
|
||||
|
||||
## bilibili网页端添加APP首页推荐
|
||||
作者: [indefined](https://github.com/indefined)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved
|
||||
// @name Bilibili Evolved (GreasyFork)
|
||||
// @version 1.10.13
|
||||
// @description 强大的哔哩哔哩增强脚本: 下载视频, 音乐, 封面, 弹幕 / 简化直播间, 评论区, 首页 / 自定义顶栏, 删除广告, 夜间模式 / 触屏设备支持
|
||||
// @author Grant Howard, Coulomb-G
|
||||
@ -18,14 +18,12 @@
|
||||
// @exclude *://www.bilibili.com/h5/*
|
||||
// @exclude *://www.bilibili.com/*/h5/*
|
||||
// @run-at document-start
|
||||
// @updateURL https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/bilibili-evolved.user.js
|
||||
// @downloadURL https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/bilibili-evolved.user.js
|
||||
// @supportURL https://github.com/the1812/Bilibili-Evolved/issues
|
||||
// @homepage https://github.com/the1812/Bilibili-Evolved
|
||||
// @grant unsafeWindow
|
||||
// @connect raw.githubusercontent.com
|
||||
// @connect cdn.jsdelivr.net
|
||||
// @require https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js
|
||||
// @require https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js
|
||||
// @icon https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/images/logo-small.png
|
||||
// @icon64 https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/images/logo.png
|
||||
// ==/UserScript==
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -19,6 +19,34 @@
|
||||
|
||||
| 时间 | 用户名 | 单号后4位 | 金额 |
|
||||
| ------------------- | ------------ | --------- | ------ |
|
||||
| 2021.01.09 11:06:16 | *阳 | 4637 | ¥20.00 |
|
||||
| 2021.01.05 19:34:08 | *鑫 | 6858 | ¥6.66 |
|
||||
| 2021.01.04 09:51:33 | *量 | 1517 | ¥10.00 |
|
||||
| 2021.01.04 02:36:48 | *慌 | 2263 | ¥1.00 |
|
||||
| 2021.01.02 12:33:57 | 风林火山 | 5606 | ¥15.00 |
|
||||
| 2020.12.31 14:54:06 | S*t | 1205 | ¥1.00 |
|
||||
| 2020.12.30 19:05:27 | JPiGeon | 0401 | ¥30.00 |
|
||||
| 2020.12.28 14:25:06 | *滋 | 1604 | ¥5.00 |
|
||||
| 2020.12.22 19:04:26 | *晖 | 7603 | ¥50.00 |
|
||||
| 2020.12.19 23:14:58 | *猫 | 8590 | ¥3.00 |
|
||||
| 2020.12.16 12:52:10 | * | 9294 | ¥5.00 |
|
||||
| 2020.12.15 16:50:03 | * | 3543 | ¥5.00 |
|
||||
| 2020.12.15 09:11:26 | H*n | 0637 | ¥1.00 |
|
||||
| 2020.12.11 19:14:38 | C*p | 0603 | ¥50.00 |
|
||||
| 2020.12.07 09:18:39 | E*d | 8511 | ¥10.00 |
|
||||
| 2020.12.06 22:06:22 | *斐 | 6790 | ¥5.00 |
|
||||
| 2020.11.28 19:18:41 | 匿名 | 1647 | ¥6.00 |
|
||||
| 2020.11.28 19:13:49 | 匿名 | 4604 | ¥18.00 |
|
||||
| 2020.11.28 13:31:57 | ^*^ | 8513 | ¥3.45 |
|
||||
| 2020.11.27 17:25:10 | *行 | 6250 | ¥5.00 |
|
||||
| 2020.11.26 10:39:59 | xxmyna | 2303 | ¥5.00 |
|
||||
| 2020.11.22 21:18:51 | *晓 | 5884 | ¥10.00 |
|
||||
| 2020.11.21 22:01:06 | *松 | 5653 | ¥1.00 |
|
||||
| 2020.11.21 16:08:18 | *林 | 5937 | ¥2.00 |
|
||||
| 2020.11.21 22:36:22 | E*s | 8532 | ¥8.00 |
|
||||
| 2020.11.20 22:40:49 | mili | 1275 | ¥10.00 |
|
||||
| 2020.11.20 22:23:00 | *鹏 | 3031 | ¥1.00 |
|
||||
| 2020.11.20 12:40:54 | 拓跋烨 | 8117 | ¥5.00 |
|
||||
| 2020.11.18 00:28:46 | *荣 | 4327 | ¥0.42 |
|
||||
| 2020.11.16 18:41:29 | *浩 | 5499 | ¥5.00 |
|
||||
| 2020.11.14 19:49:39 | *阳 | 8260 | ¥5.00 |
|
||||
|
||||
@ -80,9 +80,9 @@
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary><strong>默认视频速度</strong></summary>
|
||||
<summary><strong>记忆上次播放速度</strong></summary>
|
||||
|
||||
进入视频时自动选择指定的视频倍速.
|
||||
记忆上次选择的视频播放速度.
|
||||
|
||||
</details>
|
||||
|
||||
@ -196,7 +196,8 @@
|
||||
- `]` 多P 下一个
|
||||
- `enter` 发弹幕
|
||||
|
||||
> ⚠ 此功能与原生快捷键有一点差异: 在网页任何地方点下快捷键都会生效, 除非正在打字. (原生快捷键需要聚焦到播放器才能用, 除了`f`和`space`快捷键会被额外再扩展到全网页范围)
|
||||
> ⚠ 此功能与原生快捷键有一点差异: 在网页任何地方点下快捷键都会生效, 除非正在打字. (原生快捷键需要聚焦到播放器才能用, 除了 `f`, `space`和方向键的快捷键会被脚本额外再扩展到全网页范围)
|
||||
> 支持用户自定义快捷键: https://github.com/the1812/Bilibili-Evolved/blob/preview/src/video/keymap/key-bindings.md
|
||||
|
||||
</details>
|
||||
<details>
|
||||
@ -216,7 +217,7 @@
|
||||
|
||||
当进入SEO页面时, 自动跳转回原视频页面.
|
||||
|
||||
> SEO页面通常是专为搜索引擎优化的页面, 目前通常是谷歌的搜索结果里进b站会遇到.
|
||||
> SEO页面是为搜索引擎优化的特殊页面, 脚本在那上面的功能是不完整的, 可以通过此功能跳转回正常的视频页面.
|
||||
|
||||
</details>
|
||||
|
||||
@ -282,6 +283,8 @@
|
||||
- Windows: 设置 - 个性化 - 颜色 - 选择颜色
|
||||
- macOS: 系统偏好设置 - 通用 - 外观
|
||||
|
||||
> 有的浏览器如 Edge 允许再另外设置一套亮暗主题, 这时脚本会跟随浏览器的设置.
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary><strong>简化评论区</strong></summary>
|
||||
@ -299,6 +302,12 @@
|
||||
|
||||

|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary><strong>首页过滤</strong></summary>
|
||||
|
||||
隐藏原版首页不需要的元素/分区. 你可以在附加功能中详细配置隐藏哪些元素.
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary><strong>简化首页</strong></summary>
|
||||
@ -368,6 +377,8 @@
|
||||
|
||||
隐藏番剧和视频页面右侧的推荐视频列表.
|
||||
|
||||
注意: 如果你想关闭 b 站的自动连播(自动播放下一个推荐视频)功能, 需要先取消隐藏推荐视频才能看到开关.
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary><strong>隐藏推荐直播</strong></summary>
|
||||
@ -542,14 +553,14 @@
|
||||
如果拥有当前直播间的勋章, 则自动佩戴, 否则佩戴上次手动选择的勋章.
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<!-- <details>
|
||||
<summary><strong>直播弹幕记录器</strong></summary>
|
||||
|
||||
开启后, 在直播间里可以从附加功能中启动弹幕记录器, 会记录启动后所有收到的弹幕, 并可以导出为XML弹幕文件.
|
||||
|
||||
> 弹幕的发送时间是相对于直播开始时间确定的.
|
||||
|
||||
</details>
|
||||
</details> -->
|
||||
<details>
|
||||
<summary><strong>直板全屏弹幕栏</strong></summary>
|
||||
|
||||
|
||||
28
donate.md
28
donate.md
@ -19,6 +19,34 @@
|
||||
|
||||
| 时间 | 用户名 | 单号后4位 | 金额 |
|
||||
| ------------------- | ------------ | --------- | ------ |
|
||||
| 2021.01.09 11:06:16 | *阳 | 4637 | ¥20.00 |
|
||||
| 2021.01.05 19:34:08 | *鑫 | 6858 | ¥6.66 |
|
||||
| 2021.01.04 09:51:33 | *量 | 1517 | ¥10.00 |
|
||||
| 2021.01.04 02:36:48 | *慌 | 2263 | ¥1.00 |
|
||||
| 2021.01.02 12:33:57 | 风林火山 | 5606 | ¥15.00 |
|
||||
| 2020.12.31 14:54:06 | S*t | 1205 | ¥1.00 |
|
||||
| 2020.12.30 19:05:27 | JPiGeon | 0401 | ¥30.00 |
|
||||
| 2020.12.28 14:25:06 | *滋 | 1604 | ¥5.00 |
|
||||
| 2020.12.22 19:04:26 | *晖 | 7603 | ¥50.00 |
|
||||
| 2020.12.19 23:14:58 | *猫 | 8590 | ¥3.00 |
|
||||
| 2020.12.16 12:52:10 | * | 9294 | ¥5.00 |
|
||||
| 2020.12.15 16:50:03 | * | 3543 | ¥5.00 |
|
||||
| 2020.12.15 09:11:26 | H*n | 0637 | ¥1.00 |
|
||||
| 2020.12.11 19:14:38 | C*p | 0603 | ¥50.00 |
|
||||
| 2020.12.07 09:18:39 | E*d | 8511 | ¥10.00 |
|
||||
| 2020.12.06 22:06:22 | *斐 | 6790 | ¥5.00 |
|
||||
| 2020.11.28 19:18:41 | 匿名 | 1647 | ¥6.00 |
|
||||
| 2020.11.28 19:13:49 | 匿名 | 4604 | ¥18.00 |
|
||||
| 2020.11.28 13:31:57 | ^*^ | 8513 | ¥3.45 |
|
||||
| 2020.11.27 17:25:10 | *行 | 6250 | ¥5.00 |
|
||||
| 2020.11.26 10:39:59 | xxmyna | 2303 | ¥5.00 |
|
||||
| 2020.11.22 21:18:51 | *晓 | 5884 | ¥10.00 |
|
||||
| 2020.11.21 22:01:06 | *松 | 5653 | ¥1.00 |
|
||||
| 2020.11.21 16:08:18 | *林 | 5937 | ¥2.00 |
|
||||
| 2020.11.21 22:36:22 | E*s | 8532 | ¥8.00 |
|
||||
| 2020.11.20 22:40:49 | mili | 1275 | ¥10.00 |
|
||||
| 2020.11.20 22:23:00 | *鹏 | 3031 | ¥1.00 |
|
||||
| 2020.11.20 12:40:54 | 拓跋烨 | 8117 | ¥5.00 |
|
||||
| 2020.11.18 00:28:46 | *荣 | 4327 | ¥0.42 |
|
||||
| 2020.11.16 18:41:29 | *浩 | 5499 | ¥5.00 |
|
||||
| 2020.11.14 19:49:39 | *阳 | 8260 | ¥5.00 |
|
||||
|
||||
@ -65,18 +65,13 @@
|
||||
"danmaku-converter.min.js": "C54666E9910A927B54051EAB7C3DB6F93C1F6010A47614A619AFD7487C3F7183",
|
||||
"danmaku-segment.min.js": "43CC3236AFABA89BD0AE24D640809BE333772824E3994541AFC3CDDD9F881613",
|
||||
"danmaku-send-bar.min.css": "186013DAAC3E9E8C0B408CFA3D5C3F5BF702F25D435A386B384ECF3B5FBBBE18",
|
||||
"danmaku-send-bar.min.js": "53798E2083957486A6683568AF8CFAC3050AC521DB1CD6EC0DEEDD1B60165443",
|
||||
"danmaku-send-bar.min.js": "670A37F301982F628B6663BB850EF9D9BF87983845CB080E603FC34582CFAD56",
|
||||
"dark.min.css": "342715CA0581E9BAEEA40C2D9A1020A6B682E833FE7600847030B0D023B20B33",
|
||||
"dark.user.css": "EFD2672D43FAF5F2742FADA2C957E4222D72B5DC6504DBF92331E8801C4550B0",
|
||||
"dark.user.css": "D2F71292C6FE9FE1C22E463DFBA8AABBCF0ACA561639FD461D324F185090C255",
|
||||
"dark-color-scheme.min.js": "C83A38770DCEC5842E49617B07FFF97BCD6691982AFE40788ADC6A449C6474CB",
|
||||
"dark-important.min.css": "5902E037E040A6C364391FE27885A118A8FD8B30A4B5E8C737C5FE5CFFB67F42",
|
||||
"dark-navbar.min.css": "7FAD547E326B768904B3739C978DF86FFDDD5E5064FB8F490710D197CCC3018B",
|
||||
"dark-schedule.min.js": "364DB7A5C21006669E38A60DF20166031EFC31CCAE0E74D1253995CC6EA4916F",
|
||||
"dark-slice-10.min.css": "ED45C9970A2AEF50309BA5DE58315A77DA68D1B181A50E9B0BC0486BD21FAD26",
|
||||
"dark-slice-11.min.css": "2CB344BF6EC6467E95A079723BA20437363D3003509C70AC60E7337397660BBC",
|
||||
"dark-slice-12.min.css": "0010DD9A70374C3EF2005034AAA5CD65AF37353B4F3ED31D1FA0DF8014440642",
|
||||
"dark-slice-13.min.css": "86644F2702A41A641D74E167E955C72B0E9EE9ABE9B7E4A1DB89F0236804C8E6",
|
||||
"dark-slice-9.min.css": "543CD3BF652C7C9B3025639D5F97278B23926E4296C6EC4C1C9F41B7C8828087",
|
||||
"dark-styles.min.js": "36FC5B7C830623A3B2CD913E3282E50E544BDC92E957584694582A62FAF63187",
|
||||
"debounce.min.js": "E64A2AD8E8C063787466D50788E8D5D49B27DDCEF5D2B7EA534B4E6B606E9124",
|
||||
"default-danmaku-settings.min.css": "D9942B184FEDA7B08CFA0C34920E97D7A83B81762DCBF757642EBB60F95FF25D",
|
||||
@ -130,7 +125,7 @@
|
||||
"get-number.min.js": "CDA2DBF2FD2162220EC251333807C4C72A1DBDED51C6EA92B798BED89B08BB10",
|
||||
"gui-settings.min.css": "F5D09B1F2D6FB5C9923A87EA087BB50450F4B912360F6EF578D90F35D8D86D36",
|
||||
"gui-settings.min.html": "F50131F584D6248C85150745E8ADE54F05DB390BA885AC574018865C5EF16DA6",
|
||||
"gui-settings.min.js": "C851A0ACA5CA49E7AC65D957CA13A3B6044576CF86B0017F2BA79204B632C365",
|
||||
"gui-settings.min.js": "202F382794C122D384F85555DE053D87066AEB167A47C71FE937CA270C9B204C",
|
||||
"haruna-scale.min.js": "7342274238E3012AD4FBCA753DA64DB8DA54F9E6860DF9689F20852DAEFD7CF8",
|
||||
"hide-bangumi-reviews.min.js": "0E8D100A27D523008041BAF95B7809855B505F4C02D4EE32CC62917528E46DBE",
|
||||
"hide-bangumi-sponsors.min.js": "61CF35F5F1DDD9BA068196E4D02C8F206178D58A6DFD43DE5024A7AE50A2029D",
|
||||
@ -144,7 +139,7 @@
|
||||
"hide-related-videos.min.js": "2B1857CC25B1FBC60CE7FFE9C0AA0BCDBEC682ADCFDA8B6E96A7B4AB67658284",
|
||||
"hide-top-search.min.js": "D8D230F3A90C8C87E3A7AE7F009FB071B26F126278BAFCE70AED27BF82391F1A",
|
||||
"home-hidden.min.css": "5314A4233611AFF0594CE0325E21243DF0FFEF24F3EB3CC5A009C1F94A2C2EF6",
|
||||
"home-hidden.min.js": "5D29EC408C20D4BE747E89DFA2B554FA12E328B503FB43F2081CECC64EEBA08B",
|
||||
"home-hidden.min.js": "B6A7E60131CDF0C31CC5B157020EC38CA6034F6FE147F66C06765E0458E73E08",
|
||||
"home-video.vue.min.js": "ACD3918903369692BF0AA0ADBE3E77B8D6B942EA1DAAB7138B362D263E9DC1F4",
|
||||
"horizontal-scroll.min.js": "BCD68AB83706669D24A782219F3D45EA0AF0A9C0317309CB003924444452519C",
|
||||
"i18n.de-DE.min.js": "540CD614C274A80578B8F759B437675ECFEB6C16DF62BA0E39AB113F26C9852F",
|
||||
@ -213,11 +208,11 @@
|
||||
"settings-search.min.js": "915A490D620437A7F23BA1AAE68DD771C9099B6998D28BE64D1FE0AE067619DA",
|
||||
"settings-side-bar.min.js": "74624C2A571CD56ADDE5AA7DAF169ECBA6DE5AF03FAB903C926B229A4BEBE4D0",
|
||||
"settings-tooltip.en-US.min.js": "8B559944CF30766F1A86729A0620E3D13D3857FC67273BB1C874A4E0F24B234A",
|
||||
"settings-tooltip.ja-JP.min.js": "5A5BE0D3EE86A3D6E763E590F30E28A8583C12867FE9C0F5D979B4AFFE316F50",
|
||||
"settings-tooltip.ja-JP.min.js": "B3F99881B1F4DB293DB80BFFA92793E1834EF3096C536E107C52B116037228B9",
|
||||
"settings-tooltip.loader.min.js": "477DE4B69F477D67BCBC72CE33C91986EB2A5620D6F2D1D8367BBC388C5E3E5C",
|
||||
"settings-tooltip.min.css": "9691E4B469B33E5092E1BC4ABD8FDACBF46325F1F27B6DB1E8F0E1580D071E42",
|
||||
"settings-tooltip.min.js": "C7F9A79EB623BF58CB81DE4A9E74FC6C2EDB2613403EFE6D09B36FB460159A13",
|
||||
"settings-tooltip.zh-CN.min.js": "BBAD1893B4A5348F003DCEA6413C5EB43C2C103CB1C5A36B2139771ECCA5AED5",
|
||||
"settings-tooltip.zh-CN.min.js": "46136475287A9B885389542D7EA92E1D7D52217A6204089A62555BE62A9E526B",
|
||||
"show-cover-before-play.min.css": "E4050D66F8014029270CB5A4DEFDE2F847B095BA9ED4274BFED3E131B737B06D",
|
||||
"show-cover-before-play.min.js": "5614929DD8CEB3B11D184F037235D91B741AD167B08A4F5B7341C6A50A0838FF",
|
||||
"show-dead-video-title.min.js": "5B968442E71F947F70C57C9FDA083935200CBA9B1038131F1587E70A2B723798",
|
||||
@ -234,13 +229,13 @@
|
||||
"skip-charge-list.min.css": "D3C988CE131CEBFAC8A60360529C83EC4AE1B9EA122F9A6924F19963E25A4FE9",
|
||||
"skip-charge-list.min.js": "B689DB947BBEC53A9E5178DCE0D32A4C380000C3CE6788476EC262AA08AAF922",
|
||||
"slideshow-cards.vue.min.js": "CD468A7BAFB637AEB11EF190BE73CD3916D698B9AAB9D7FA62BF066F711AD95A",
|
||||
"slip.min.js": "509F9090EC008296261F78BD4C6836E43100FDF6C67F26D8E41803A23B6DE66E",
|
||||
"slip.min.js": "407C046F6F04D990F4EFD59AB1A26FC995D8BE277CEA9E50C4621136D46D5875",
|
||||
"style.min.css": "27223BD1ABBB5D8E529B13C009B5099F53F75B26AA713E4C660C205C1121495B",
|
||||
"subtitle-converter.min.js": "C3F5DE348DC8BD6AB8480D0F125BD3882565E7B3CEB5E58AA3492CB421A8D72F",
|
||||
"subtitle-converter.min.js": "DFE6DC4471D1119B486811BB3D07336EEA90E92D90A67646D5CA2CC1CB43F833",
|
||||
"superchat-translate.min.css": "F4874FE716A750AE0D21DA44393F286E5AABFFA949476E2FA06CDBE2748CF095",
|
||||
"superchat-translate.min.js": "F899066D438937436E9E5F5063B2E43E26D23E658AEDBB6875269BB04BEFBAAC",
|
||||
"text-validate.min.js": "019DBB7EDDEAFAE3128A8E30BF07A1B36F3D3141C828601DC59CA40983081756",
|
||||
"theme-colors.min.js": "6D32951A10D1E3A7CE05E26BDDCD6925EC10C68EB6813D05A202278D27BE7A63",
|
||||
"theme-colors.min.js": "D13CD1E05900F46FB4548E466291E69840F260AADAFEF6536457386BB9A22118",
|
||||
"title.min.js": "D9BE0CA98D3E20E2C41983D1CF256F56C3BF1C634D7B30ABEBFB0782FBE966E9",
|
||||
"toast.min.css": "9CA6502A7993A30A5C5253F2BC35BAC0581C00B8E034F9D13A34317942CB1D17",
|
||||
"toast.min.js": "5CF4132CC88404C3AE2F74FFCC6FD12C26E1F9BDE45D558B3A86312D78DDE60E",
|
||||
|
||||
BIN
min/bundle.zip
BIN
min/bundle.zip
Binary file not shown.
2
min/danmaku-send-bar.min.js
vendored
2
min/danmaku-send-bar.min.js
vendored
@ -1 +1 @@
|
||||
(()=>(e,t)=>{(async()=>{if(!document.URL.match(/^https:\/\/live.bilibili.com\/(blanc\/)?(\d+)/)){return}const e=await SpinQuery.select(".bilibili-live-player-video-controller");console.log("DSB",e);if(!e){return}t.applyStyle("danmakuSendBarStyle");let n=false;Observer.childList(e,(async()=>{if(!dq(e,".control-area")){return}const t=dq(e,".left-area");const a=await SpinQuery.select(".chat-input-ctnr .chat-input");const i=await SpinQuery.select(".chat-input-ctnr ~ .bottom-actions .bl-button--primary");if([t,a,i].some((e=>e===null))){return}const l=Vue.extend({template:`\n<div class="danmaku-send-bar">\n<input\n type="text"\n placeholder="发个弹幕呗~"\n :value="value"\n @keydown.enter="send()"\n @input="updateValue($event.target.value)"\n maxlength="30"\n />\n</div>\n`,data(){return{value:a.value}},mounted(){a.addEventListener("input",this.listenChange);a.addEventListener("change",this.listenChange);if(!n){const e=Object.getOwnPropertyDescriptors(HTMLTextAreaElement.prototype).value;Object.defineProperty(a,"value",{...e,set(t){e.set.call(this,t);raiseEvent(a,"input")}});n=true}},beforeDestroy(){a.removeEventListener("input",this.listenChange);a.removeEventListener("change",this.listenChange)},methods:{updateValue(e){a.value=e;raiseEvent(a,"input")},send(){if(!i.disabled){this.value="";i.click()}},listenChange(e){this.value=e.target.value}}});const r=(new l).$mount().$el;t.insertAdjacentElement("afterend",r)}))})();return{reload:()=>document.body.classList.remove("danmaku-send-bar-unloaded"),unload:()=>document.body.classList.add("danmaku-send-bar-unloaded")}})();
|
||||
(()=>(e,t)=>{(async()=>{if(!document.URL.match(/^https:\/\/live.bilibili.com\/(blanc\/)?(\d+)/)){return}const e=await SpinQuery.select(".bilibili-live-player-video-controller");if(!e){return}t.applyStyle("danmakuSendBarStyle");let n=false;const a="danmaku-send-bar";Observer.childList(e,(async()=>{if(!dq(e,".control-area")){return}if(dq(e,`.${a}`)){return}const t=dq(e,".left-area");const i=await SpinQuery.select(".chat-input-ctnr .chat-input");const l=await SpinQuery.select(".chat-input-ctnr ~ .bottom-actions .bl-button--primary");if([t,i,l].some((e=>e===null))){return}const r=Vue.extend({template:`\n<div class="${a}">\n<input\n type="text"\n placeholder="发个弹幕呗~"\n :value="value"\n @keydown.enter="send()"\n @input="updateValue($event.target.value)"\n maxlength="30"\n />\n</div>\n`,data(){return{value:i.value}},mounted(){i.addEventListener("input",this.listenChange);i.addEventListener("change",this.listenChange);if(!n){const e=Object.getOwnPropertyDescriptors(HTMLTextAreaElement.prototype).value;Object.defineProperty(i,"value",{...e,set(t){e.set.call(this,t);raiseEvent(i,"input")}});n=true}},beforeDestroy(){i.removeEventListener("input",this.listenChange);i.removeEventListener("change",this.listenChange)},methods:{updateValue(e){i.value=e;raiseEvent(i,"input")},send(){if(!l.disabled){this.value="";l.click()}},listenChange(e){this.value=e.target.value}}});const s=(new r).$mount().$el;t.insertAdjacentElement("afterend",s)}))})();return{reload:()=>document.body.classList.remove("danmaku-send-bar-unloaded"),unload:()=>document.body.classList.add("danmaku-send-bar-unloaded")}})();
|
||||
@ -3,7 +3,7 @@
|
||||
@namespace Bilibili-Evolved
|
||||
@homepageURL https://github.com/the1812/Bilibili-Evolved
|
||||
@updateURL https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/min/dark.user.css
|
||||
@version 907.99.0
|
||||
@version 909.25.0
|
||||
@license MIT
|
||||
@author Grant Howard (https://github.com/the1812), Coulomb-G (https://github.com/Coulomb-G)
|
||||
==/UserStyle== */
|
||||
|
||||
2
min/gui-settings.min.js
vendored
2
min/gui-settings.min.js
vendored
File diff suppressed because one or more lines are too long
2
min/home-hidden.min.js
vendored
2
min/home-hidden.min.js
vendored
@ -1 +1 @@
|
||||
(()=>(e,n)=>{const i=()=>!e.simplifyHome&&document.URL.replace(window.location.search,"")==="https://www.bilibili.com/";const a=[{name:"categories",displayName:"分区栏",style:`\n .bili-header-m>.bili-wrapper {\n visibility: hidden !important;\n height: 18px !important;\n }\n .primary-menu-itnl {\n visibility: hidden !important;\n height: 24px !important;\n padding: 0 !important;\n }\n`},{name:"trends",displayName:"活动/热门视频",style:`\n .first-screen #reportFirst1 { display: none !important; }\n .first-screen .space-between {\n margin-bottom: 0 !important;\n }\n .rcmd-box-wrap { display: none !important; }\n`},{name:"online",displayName:"在线列表",style:`\n .first-screen #reportFirst2 { display: none !important; }\n`},{name:"special",displayName:"特别推荐",style:`\n #bili_report_spe_rec { display: none !important; }\n`},{name:"contact",displayName:"联系方式",style:`\n .international-footer { display: none !important; }\n`},{name:"elevator",displayName:"右侧分区导航",style:`\n .storey-box .elevator { display: none !important; }\n`},{name:"live",displayName:"直播"},{name:"douga",displayName:"动画"},{name:"anime",displayName:"番剧"},{name:"guochuang",displayName:"国创"},{name:"manga",displayName:"漫画"},{name:"music",displayName:"音乐"},{name:"dance",displayName:"舞蹈"},{name:"game",displayName:"游戏"},{name:"technology",displayName:"知识"},{name:"cheese",displayName:"课堂"},{name:"digital",displayName:"数码"},{name:"life",displayName:"生活"},{name:"food",displayName:"美食"},{name:"kichiku",displayName:"鬼畜"},{name:"fashion",displayName:"时尚"},{name:"information",displayName:"资讯"},{name:"ent",displayName:"娱乐"},{name:"read",displayName:"专栏"},{name:"movie",displayName:"电影"},{name:"teleplay",displayName:"电视剧"},{name:"cinephile",displayName:"影视"},{name:"documentary",displayName:"纪录片"}];const t=i=>{if(!e.homeHiddenItems.includes(i.name)){if(i.style){var a;(a=dq(`#home-hidden-style-${i.name}`))===null||a===void 0?void 0:a.remove()}else{document.body.classList.remove(`home-hidden-${i.name}`)}}else{if(i.style){n.applyImportantStyleFromText(i.style,`home-hidden-style-${i.name}`)}else{document.body.classList.add(`home-hidden-${i.name}`)}}};if(i()){a.forEach(t);n.applyImportantStyle("homeHiddenStyle")}return{widget:{condition:i,content:`\n<div class="gui-settings-flat-button" style="position: relative" id="home-hidden">\n<i class="mdi mdi-24px mdi-settings"></i>\n<span>首页过滤</span>\n<div class="home-hidden-settings popup">\n<div v-for="item in items" @click="toggle(item)" :key="item.name" class="home-hidden-settings-item" :class="{ 'home-hidden': hiddenItems.includes(item.name) }">\n<i class="mdi mdi-18px mdi-eye"></i>\n<i class="mdi mdi-18px mdi-eye-off"></i>\n {{ item.displayName }}\n</div>\n</div>\n</div>\n`,success:async()=>{const n=dq("#home-hidden");new Vue({el:dq(n,".popup"),data(){return{items:a,hiddenItems:[...e.homeHiddenItems]}},watch:{hiddenItems(n){e.homeHiddenItems=[...n]}},mounted(){const e=this.$el;n.addEventListener("click",(n=>{if(n.target===e||e.contains(n.target)){return}e.classList.toggle("opened")}))},methods:{async toggle(e){const n=this.hiddenItems;const i=n.indexOf(e.name);if(i!==-1){n.splice(i,1)}else{n.push(e.name)}await this.$nextTick();t(e)}}})}}}})();
|
||||
(()=>(e,n)=>{const i=()=>!e.simplifyHome&&document.URL.includes("https://www.bilibili.com/");const a=[{name:"categories",displayName:"分区栏",style:`\n .bili-header-m>.bili-wrapper {\n visibility: hidden !important;\n height: 18px !important;\n }\n .primary-menu-itnl {\n visibility: hidden !important;\n height: 24px !important;\n padding: 0 !important;\n }\n`},{name:"trends",displayName:"活动/热门视频",style:`\n .first-screen #reportFirst1 { display: none !important; }\n .first-screen .space-between {\n margin-bottom: 0 !important;\n }\n .rcmd-box-wrap { display: none !important; }\n`},{name:"online",displayName:"在线列表",style:`\n .first-screen #reportFirst2 { display: none !important; }\n`},{name:"special",displayName:"特别推荐",style:`\n #bili_report_spe_rec { display: none !important; }\n`},{name:"contact",displayName:"联系方式",style:`\n .international-footer { display: none !important; }\n`},{name:"elevator",displayName:"右侧分区导航",style:`\n .storey-box .elevator { display: none !important; }\n`},{name:"live",displayName:"直播"},{name:"douga",displayName:"动画"},{name:"anime",displayName:"番剧"},{name:"guochuang",displayName:"国创"},{name:"manga",displayName:"漫画"},{name:"music",displayName:"音乐"},{name:"dance",displayName:"舞蹈"},{name:"game",displayName:"游戏"},{name:"technology",displayName:"知识"},{name:"cheese",displayName:"课堂"},{name:"digital",displayName:"数码"},{name:"life",displayName:"生活"},{name:"food",displayName:"美食"},{name:"kichiku",displayName:"鬼畜"},{name:"fashion",displayName:"时尚"},{name:"information",displayName:"资讯"},{name:"ent",displayName:"娱乐"},{name:"read",displayName:"专栏"},{name:"movie",displayName:"电影"},{name:"teleplay",displayName:"电视剧"},{name:"cinephile",displayName:"影视"},{name:"documentary",displayName:"纪录片"}];const t=i=>{if(!e.homeHiddenItems.includes(i.name)){if(i.style){var a;(a=dq(`#home-hidden-style-${i.name}`))===null||a===void 0?void 0:a.remove()}else{document.body.classList.remove(`home-hidden-${i.name}`)}}else{if(i.style){n.applyImportantStyleFromText(i.style,`home-hidden-style-${i.name}`)}else{document.body.classList.add(`home-hidden-${i.name}`)}}};if(i()){a.forEach(t);n.applyImportantStyle("homeHiddenStyle")}return{widget:{condition:i,content:`\n<div class="gui-settings-flat-button" style="position: relative" id="home-hidden">\n<i class="mdi mdi-24px mdi-settings"></i>\n<span>首页过滤</span>\n<div class="home-hidden-settings popup">\n<div v-for="item in items" @click="toggle(item)" :key="item.name" class="home-hidden-settings-item" :class="{ 'home-hidden': hiddenItems.includes(item.name) }">\n<i class="mdi mdi-18px mdi-eye"></i>\n<i class="mdi mdi-18px mdi-eye-off"></i>\n {{ item.displayName }}\n</div>\n</div>\n</div>\n`,success:async()=>{const n=dq("#home-hidden");new Vue({el:dq(n,".popup"),data(){return{items:a,hiddenItems:[...e.homeHiddenItems]}},watch:{hiddenItems(n){e.homeHiddenItems=[...n]}},mounted(){const e=this.$el;n.addEventListener("click",(n=>{if(n.target===e||e.contains(n.target)){return}e.classList.toggle("opened")}))},methods:{async toggle(e){const n=this.hiddenItems;const i=n.indexOf(e.name);if(i!==-1){n.splice(i,1)}else{n.push(e.name)}await this.$nextTick();t(e)}}})}}}})();
|
||||
2
min/settings-tooltip.zh-CN.min.js
vendored
2
min/settings-tooltip.zh-CN.min.js
vendored
File diff suppressed because one or more lines are too long
2
min/subtitle-converter.min.js
vendored
2
min/subtitle-converter.min.js
vendored
@ -1 +1 @@
|
||||
(()=>(t,n)=>{function e(t,n,e){if(n in t){Object.defineProperty(t,n,{value:e,enumerable:true,configurable:true,writable:true})}else{t[n]=e}return t}const i={TopLeft:7,TopCenter:8,TopRight:9,BottomLeft:1,BottomCenter:2,BottomRight:3};const o=t=>Object.entries(i).filter((([,n])=>n===t)).map((([t])=>t)).shift();let r;(function(t){t[t["VerySmall"]=1]="VerySmall";t[t["Small"]=2]="Small";t[t["Medium"]=3]="Medium";t[t["Large"]=4]="Large";t[t["VeryLarge"]=5]="VeryLarge"})(r||(r={}));class a{constructor(t){e(this,"config",void 0);this.config=Object.assign(a.defaultConfig,t)}async getAssMeta(){const{convertHexColorForStyle:t}=await n.importAsync("ass-utils");const e=t(this.config.color);const o=t("#000000",this.config.opacity);const r=[];const a=(10*(this.config.size-3)+48)*this.config.height/720;console.log(a);for(const[t,n]of Object.entries(i)){r.push(`Style: ${t},微软雅黑,${a},${e},${e},${o},${o},0,0,0,0,100,100,0,0,3,${this.config.boxPadding},0,${n},${this.config.boxMargin},${this.config.boxMargin},${this.config.boxMargin},0`)}return`\n[Script Info]\n; Script generated by Bilibili Evolved Danmaku Converter\n; https://github.com/the1812/Bilibili-Evolved/\nTitle: ${this.config.title}\nScriptType: v4.00+\nPlayResX: ${this.config.width}\nPlayResY: ${this.config.height}\nTimer: 10.0000\nWrapStyle: 0\nScaledBorderAndShadow: no\n\n[V4+ Styles]\nFormat: Name, Fontname, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\n${r.join("\n")}\n\n[Events]\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text`.trim()}async convertToAss(t){const{convertTimeByEndTime:e,normalizeContent:i}=await n.importAsync("ass-utils");const r=await this.getAssMeta();return r+"\n"+t.map((t=>{const[n,r]=e(t.from,t.to);const a=`Dialogue: 0,${n},${r},${o(this.config.location)},,0,0,0,,${i(t.content)}`;return a})).join("\n")}}e(a,"defaultConfig",void 0);a.defaultConfig={title:"",color:"#ffffff",width:1920,height:1080,size:r.Medium,opacity:.5,location:i.BottomCenter,boxPadding:1,boxMargin:32};return{export:{SubtitleConverter:a,SubtitleLocation:i,SubtitleSize:r}}})();
|
||||
(()=>(t,n)=>{function e(t,n,e){if(n in t){Object.defineProperty(t,n,{value:e,enumerable:true,configurable:true,writable:true})}else{t[n]=e}return t}const i={TopLeft:7,TopCenter:8,TopRight:9,BottomLeft:1,BottomCenter:2,BottomRight:3};const o=t=>Object.entries(i).filter((([,n])=>n===t)).map((([t])=>t)).shift();let r;(function(t){t[t["VerySmall"]=1]="VerySmall";t[t["Small"]=2]="Small";t[t["Medium"]=3]="Medium";t[t["Large"]=4]="Large";t[t["VeryLarge"]=5]="VeryLarge"})(r||(r={}));class a{constructor(t){e(this,"config",void 0);this.config=Object.assign(a.defaultConfig,t)}async getAssMeta(){const{convertHexColorForStyle:t}=await n.importAsync("ass-utils");const e=t(this.config.color);const o=t("#000000",this.config.opacity);const r=[];const a=(10*(this.config.size-3)+48)*this.config.height/720;console.log(a);for(const[t,n]of Object.entries(i)){r.push(`Style: ${t},微软雅黑,${a},${e},${e},${o},${o},0,0,0,0,100,100,0,0,3,${this.config.boxPadding},0,${n},${this.config.boxMargin},${this.config.boxMargin},${this.config.boxMargin},0`)}return`\n[Script Info]\n; Script generated by Bilibili Evolved Danmaku Converter\n; https://github.com/the1812/Bilibili-Evolved/\nTitle: ${this.config.title}\nScriptType: v4.00+\nPlayResX: ${this.config.width}\nPlayResY: ${this.config.height}\nTimer: 10.0000\nWrapStyle: 0\nScaledBorderAndShadow: no\n\n[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\n${r.join("\n")}\n\n[Events]\nFormat: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text`.trim()}async convertToAss(t){const{convertTimeByEndTime:e,normalizeContent:i}=await n.importAsync("ass-utils");const r=await this.getAssMeta();return r+"\n"+t.map((t=>{const[n,r]=e(t.from,t.to);const a=`Dialogue: 0,${n},${r},${o(this.config.location)},,0,0,0,,${i(t.content)}`;return a})).join("\n")}}e(a,"defaultConfig",void 0);a.defaultConfig={title:"",color:"#ffffff",width:1920,height:1080,size:r.Medium,opacity:.5,location:i.BottomCenter,boxPadding:1,boxMargin:32};return{export:{SubtitleConverter:a,SubtitleLocation:i,SubtitleSize:r}}})();
|
||||
2
min/theme-colors.min.js
vendored
2
min/theme-colors.min.js
vendored
@ -1 +1 @@
|
||||
(()=>(e,t)=>{const r={red:"#e57373",pink:"#F06292",purple:"#BA68C8",deepPurple:"#9575CD",indigo:"#7986CB",blue:"#2196F3",lightBlue:"#00A0D8",cyan:"#00ACC1",teal:"#26A69A",green:"#81C784",lightGreen:"#9CCC65",orange:"#FF9800",deepOrange:"#FF7043",brown:"#A1887F",grey:"#757575",blueGrey:"#78909C"};class o{constructor(){this.reloadColor=(()=>{const e=document.querySelector("html");return function(t){const r=new ColorProcessor(t);const o=e=>r.rgbToString(r.hexToRgba(e));e.style.setProperty("--theme-color",t);for(let r=10;r<=90;r+=10){e.style.setProperty(`--theme-color-${r}`,o(t+r))}e.style.setProperty("--foreground-color",r.foreground);e.style.setProperty("--foreground-color-b",o(r.foreground+"b"));e.style.setProperty("--foreground-color-d",o(r.foreground+"d"));e.style.setProperty("--blue-image-filter",r.blueImageFilter);e.style.setProperty("--pink-image-filter",r.pinkImageFilter);e.style.setProperty("--brightness",r.brightness);e.style.setProperty("--invert-filter",r.filterInvert)}})()}setupDom(){const t=document.querySelector(`input[key='customStyleColor']`);addSettingsListener("customStyleColor",(e=>this.reloadColor(e)));addSettingsListener("foregroundColorMode",(()=>this.reloadColor(e.customStyleColor)));const o=document.querySelector(".predefined-colors-grid");for(const e of Object.values(r)){const r=document.createElement("div");o.insertAdjacentElement("beforeend",r);r.classList.add("predefined-colors-grid-block");r.style.background=e;r.setAttribute("data-color",e);r.addEventListener("click",(e=>{const r=e.target.getAttribute("data-color");t.value=r;raiseEvent(t,"input");raiseEvent(t,"change")}))}const l=document.querySelector(".predefined-colors");document.querySelector("div.custom-color-preview").addEventListener("click",(()=>{l.classList.toggle("opened")}))}}return{export:{ThemeColors:o}}})();
|
||||
(()=>(e,t)=>{const r={red:"#e57373",pink:"#F06292",purple:"#BA68C8",deepPurple:"#9575CD",indigo:"#7986CB",blue:"#2196F3",lightBlue:"#00A0D8",cyan:"#00ACC1",teal:"#26A69A",green:"#81C784",lightGreen:"#9CCC65",orange:"#FF9800",deepOrange:"#FF7043",brown:"#A1887F",grey:"#757575",blueGrey:"#78909C"};class o{constructor(){this.reloadColor=(()=>{const e=document.querySelector("html");return function(t){const r=new ColorProcessor(t);const o=e=>r.rgbToString(r.hexToRgba(e));e.style.setProperty("--theme-color",t);for(let r=10;r<=90;r+=10){e.style.setProperty(`--theme-color-${r}`,o(t+r))}e.style.setProperty("--foreground-color",r.foreground);e.style.setProperty("--foreground-color-b",o(r.foreground+"b"));e.style.setProperty("--foreground-color-d",o(r.foreground+"d"));e.style.setProperty("--blue-image-filter",r.blueImageFilter);e.style.setProperty("--pink-image-filter",r.pinkImageFilter);e.style.setProperty("--brightness",r.brightness);e.style.setProperty("--invert-filter",r.filterInvert)}})()}setupDom(){const t=document.querySelector(`input[key='customStyleColor']`);addSettingsListener("customStyleColor",(e=>this.reloadColor(e)));addSettingsListener("foregroundColorMode",(()=>this.reloadColor(e.customStyleColor)));const o=document.querySelector(".predefined-colors-grid");for(const e of Object.values(r)){const r=document.createElement("div");o.insertAdjacentElement("beforeend",r);r.classList.add("predefined-colors-grid-block");r.style.background=e;r.setAttribute("data-color",e);r.addEventListener("click",(e=>{const r=e.target.getAttribute("data-color");t.value=r;raiseEvent(t,"input");raiseEvent(t,"change")}))}const n=document.querySelector(".predefined-colors");const s=document.querySelector("div.custom-color-preview");const l=e=>{if(e.target!==s&&!s.contains(e.target)&&e.target!==t){n.classList.remove("opened");document.removeEventListener("click",l)}};s.addEventListener("click",(()=>{if(!n.classList.contains("opened")){document.addEventListener("click",l)}else{document.removeEventListener("click",l)}n.classList.toggle("opened")}))}}return{export:{ThemeColors:o}}})();
|
||||
@ -1,9 +1,9 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved (Preview)
|
||||
// @version 1.11.11
|
||||
// @version 1.11.12
|
||||
// @description Bilibili Evolved 的预览版, 可以抢先体验新功能.
|
||||
// @author Grant Howard, Coulomb-G
|
||||
// @copyright 2020, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||
// @copyright 2021, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
|
||||
// @license MIT
|
||||
// @match *://*.bilibili.com/*
|
||||
// @exclude *://*.bilibili.com/*/mobile.html
|
||||
|
||||
@ -3,18 +3,20 @@
|
||||
return
|
||||
}
|
||||
const controllerContainer = await SpinQuery.select('.bilibili-live-player-video-controller') as HTMLDivElement
|
||||
console.log('DSB', controllerContainer)
|
||||
if (!controllerContainer) {
|
||||
return
|
||||
}
|
||||
|
||||
resources.applyStyle('danmakuSendBarStyle')
|
||||
let changeEventHook = false
|
||||
const danmakuSendBarClass = 'danmaku-send-bar'
|
||||
Observer.childList(controllerContainer, async () => {
|
||||
if (!dq(controllerContainer, '.control-area')) {
|
||||
return
|
||||
}
|
||||
|
||||
if (dq(controllerContainer, `.${danmakuSendBarClass}`)) {
|
||||
return
|
||||
}
|
||||
|
||||
const leftController = dq(controllerContainer, '.left-area') as HTMLDivElement
|
||||
const originalTextArea = await SpinQuery.select('.chat-input-ctnr .chat-input') as HTMLTextAreaElement
|
||||
@ -26,7 +28,7 @@
|
||||
|
||||
const DanmakuSendBar = Vue.extend({
|
||||
template: /*html*/`
|
||||
<div class="danmaku-send-bar">
|
||||
<div class="${danmakuSendBarClass}">
|
||||
<input
|
||||
type="text"
|
||||
placeholder="发个弹幕呗~"
|
||||
|
||||
@ -612,83 +612,117 @@
|
||||
@include foreground-color();
|
||||
}
|
||||
}
|
||||
.home-page {
|
||||
.publish-panel {
|
||||
.core-style {
|
||||
@include background-color();
|
||||
.publish-panel {
|
||||
.core-style {
|
||||
@include background-color();
|
||||
@include color("e");
|
||||
@include border-color();
|
||||
&:hover,
|
||||
&:focus-within,
|
||||
&:active {
|
||||
@include theme-border-color();
|
||||
}
|
||||
}
|
||||
.editor .placeholder-shown::before {
|
||||
@include color("8");
|
||||
}
|
||||
.schedule-bar {
|
||||
@include background-color("3");
|
||||
.s-label,
|
||||
.dp-label {
|
||||
@include color("e");
|
||||
}
|
||||
.scroll-input .s-input {
|
||||
@include background-color("2");
|
||||
@include color("e");
|
||||
@include border-color();
|
||||
&:hover,
|
||||
&:focus-within,
|
||||
&:active {
|
||||
@include theme-border-color();
|
||||
}
|
||||
}
|
||||
.editor .placeholder-shown::before {
|
||||
@include color("8");
|
||||
}
|
||||
.schedule-bar {
|
||||
@include background-color("3");
|
||||
.s-label,
|
||||
.dp-label {
|
||||
.s-panel {
|
||||
@include background-color("2");
|
||||
@include border-color();
|
||||
.s-item {
|
||||
@include color("e");
|
||||
}
|
||||
.scroll-input .s-input {
|
||||
@include background-color("2");
|
||||
@include color("e");
|
||||
@include border-color();
|
||||
}
|
||||
.s-panel {
|
||||
@include background-color("2");
|
||||
@include border-color();
|
||||
.s-item {
|
||||
@include color("e");
|
||||
&:hover {
|
||||
@include theme-color();
|
||||
}
|
||||
&:hover {
|
||||
@include theme-color();
|
||||
}
|
||||
}
|
||||
}
|
||||
.toolbar {
|
||||
.static-popup {
|
||||
}
|
||||
.toolbar {
|
||||
.static-popup {
|
||||
@include background-color("2");
|
||||
@include border-color();
|
||||
.title {
|
||||
@include color("e");
|
||||
}
|
||||
.upload-image .upload-btn:hover {
|
||||
@include theme-color();
|
||||
@include theme-border-color();
|
||||
}
|
||||
}
|
||||
.bp-vote-container {
|
||||
.create-vote {
|
||||
@include background-color("2");
|
||||
@include color("e");
|
||||
@include border-color();
|
||||
.title {
|
||||
@include color("e");
|
||||
}
|
||||
.upload-image .upload-btn:hover {
|
||||
@include theme-color();
|
||||
@include theme-border-color();
|
||||
.bp-button:nth-child(2) {
|
||||
@include theme-background();
|
||||
@include foreground-color();
|
||||
}
|
||||
}
|
||||
.bp-vote-container {
|
||||
.create-vote {
|
||||
}
|
||||
.publish-launcher {
|
||||
.indicator {
|
||||
@include color("a");
|
||||
&::after {
|
||||
@include color("a");
|
||||
}
|
||||
}
|
||||
.publish-btn {
|
||||
@include theme-background-color();
|
||||
@include foreground-color();
|
||||
&.disabled {
|
||||
@include background-color("2");
|
||||
@include color("e");
|
||||
@include border-color();
|
||||
.title {
|
||||
@include color("e");
|
||||
}
|
||||
.bp-button:nth-child(2) {
|
||||
@include theme-background();
|
||||
@include foreground-color();
|
||||
}
|
||||
}
|
||||
}
|
||||
.publish-launcher {
|
||||
.indicator {
|
||||
@include color("a");
|
||||
&::after {
|
||||
@include color("a");
|
||||
}
|
||||
}
|
||||
.hash-popup {
|
||||
@include background-color("2");
|
||||
@include border-color();
|
||||
.hint {
|
||||
@include color("a");
|
||||
}
|
||||
.topic-container .item {
|
||||
@include color("e");
|
||||
&.is-selected {
|
||||
@include background-color("3");
|
||||
}
|
||||
.publish-btn {
|
||||
@include theme-background-color();
|
||||
@include foreground-color();
|
||||
&.disabled {
|
||||
@include background-color("2");
|
||||
@include color("e");
|
||||
}
|
||||
}
|
||||
}
|
||||
.bili-at-popup {
|
||||
@include background-color("2");
|
||||
@include border-color();
|
||||
&__hint {
|
||||
@include color("a");
|
||||
}
|
||||
&__group {
|
||||
&-name {
|
||||
@include color("e");
|
||||
}
|
||||
}
|
||||
&__user {
|
||||
&--selected {
|
||||
@include background-color("3");
|
||||
}
|
||||
&-name {
|
||||
@include color("e");
|
||||
}
|
||||
&-fans {
|
||||
@include color("a");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -173,7 +173,7 @@
|
||||
@include color("e");
|
||||
}
|
||||
&__tabs {
|
||||
@include background-color("5");
|
||||
@include background-color("2");
|
||||
.album-list__tab {
|
||||
&-name {
|
||||
@include color("e");
|
||||
@ -910,7 +910,7 @@ html {
|
||||
}
|
||||
}
|
||||
#control-panel-ctnr-box {
|
||||
@include no-image
|
||||
@include no-image;
|
||||
}
|
||||
.live-web-player-controller {
|
||||
.vertical-slider-wrap,
|
||||
@ -926,7 +926,7 @@ html {
|
||||
.quality-wrap .quality-it.selected {
|
||||
@include theme-color();
|
||||
}
|
||||
input[type='radio']:checked+label::before {
|
||||
input[type="radio"]:checked + label::before {
|
||||
@include theme-background-color();
|
||||
@include theme-border-color();
|
||||
}
|
||||
@ -954,9 +954,6 @@ html {
|
||||
@include theme-background-color();
|
||||
}
|
||||
}
|
||||
.error-body .error-msg .error-img {
|
||||
@include to-theme("blue");
|
||||
}
|
||||
.article-action .more .more-ops-list ul li:hover {
|
||||
@include theme-color();
|
||||
}
|
||||
@ -969,3 +966,29 @@ html {
|
||||
@include to-theme("blue");
|
||||
}
|
||||
}
|
||||
.international-home .rcmd-box-wrap .change-btn {
|
||||
@include border-color();
|
||||
@include color("e");
|
||||
@include background-color("4");
|
||||
&:hover {
|
||||
@include theme-background-color();
|
||||
}
|
||||
}
|
||||
.bangumi-options .opt-list li {
|
||||
@include background-color("3");
|
||||
@include color("e");
|
||||
&:hover {
|
||||
@include theme-color();
|
||||
@include background-color("4");
|
||||
}
|
||||
&.disabled {
|
||||
@include color("a");
|
||||
@include background-color();
|
||||
}
|
||||
}
|
||||
.emoji-tab-slider {
|
||||
.prev,
|
||||
.next {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -515,8 +515,6 @@ body>div.to-top.on,
|
||||
.evaluate .situation span,
|
||||
.bilibili-live-player .bilibili-live-player-enter-tips,
|
||||
.nav-header-wrapper .nav-header .nav-header-search-bar-wrapper .suggestion-list,
|
||||
.publish-panel .hash-popup,
|
||||
.hash-popup .topic-container .item.is-selected,
|
||||
.article-holder .bangumi-card a .container,
|
||||
.article-action .ops .share-container .weixin-holder,
|
||||
.coin-wrap .coin-sure,
|
||||
@ -655,7 +653,7 @@ i.settings-category-arrow::after,
|
||||
.mainmenu ul.grid li.hover a.lbzx,
|
||||
.carousel .indicator .indicator-btn-holder .indicator-btn.on,
|
||||
#page-channel-detail .watch-later-btn:hover,
|
||||
.error-container .error-panel img,
|
||||
.error-body .error-msg .error-img,
|
||||
.leaveMsgUpload .btnarea .btnareaIcon,
|
||||
.coin-operated-m .like-checkbox input[type=checkbox]:checked+i,
|
||||
.video-list .vl-hd .display-tab li.on,
|
||||
@ -743,7 +741,6 @@ body>.player #bilibiliPlayer
|
||||
.mainBox .leaveMsg,
|
||||
.js-evaluateArea .evaluateDialog,
|
||||
.project-list .project-list-item:hover,
|
||||
.publish-panel .hash-popup,
|
||||
#app .toolbar-wrapper,
|
||||
.article-action .ops .share-container .weixin-holder,
|
||||
#article-list-index,
|
||||
|
||||
@ -922,7 +922,6 @@ body #app .marquee,
|
||||
.nav-bar .nav-wrapper .slide-block,
|
||||
ul.navigation li:after,
|
||||
.link-panigation .panigation.selected,
|
||||
.bangumi-item .cover-wrapper .corner-tag.badge_0,
|
||||
.comment-manage-wrap .content .check-box.checked,
|
||||
.btn-sponsor-wrapper a.sponsor-btn,
|
||||
.main-container .sponsor-wrapper .sponsor-right-area .sponsor-btn,
|
||||
|
||||
@ -13,7 +13,6 @@
|
||||
.comment-list-item .ci-action a:hover,
|
||||
.comment-manage-wrap .content .action-bar .dropdown .action-menu li:hover,
|
||||
.comment-manage-wrap .content .action-bar .dropdown .sort-menu li:hover,
|
||||
.hash-popup .topic-container .item.is-selected,
|
||||
.fjw-kpi-wrap,
|
||||
.mobile-kpi-head h2,
|
||||
.mini-progress,
|
||||
|
||||
@ -1031,7 +1031,6 @@ input[type="radio"]:checked + .custom-radio,
|
||||
.main-container .entry-old .feedback .btn,
|
||||
.main-container .entry-old .feedback .btn:hover,
|
||||
.main-container .entry-old .btn-old:hover,
|
||||
.main-container .season-list .ss-list-wrapper .ss-item .ss-cover .ss-badge.pink,
|
||||
.main-container .pay-bar .sponsor .btn-pay:hover,
|
||||
.main-container .sponsor-module .sponsor-info .btn-sponsor,
|
||||
.bilibili-player-feedback-content
|
||||
|
||||
@ -63,7 +63,6 @@
|
||||
.news-dialog-Wrapper,
|
||||
.box .record-wrap,
|
||||
.box .content-wrap,
|
||||
.bangumi-options .opt-list li:hover,
|
||||
.bui-collapse .bui-collapse-header,
|
||||
.bpui-selecting > span,
|
||||
.bpui-unselecting,
|
||||
@ -307,8 +306,6 @@ li.danmaku-info-row.bpui-selecting,
|
||||
.empty-wrap .empty-text,
|
||||
.fjw-point .point-wrap .user-point .face .unfocus-btn,
|
||||
.sub-tabs .filter-content,
|
||||
.bangumi-options .opt-list li:hover,
|
||||
.bangumi-options .opt-list li,
|
||||
.h5share-container .text-area .text-content,
|
||||
.navbar-container .logo-part,
|
||||
.navbar-container .size-ruler .app-title,
|
||||
|
||||
@ -4,7 +4,7 @@ type HomeHiddenOption = Readonly<{
|
||||
style?: string
|
||||
}>
|
||||
const isHome = () => {
|
||||
return !settings.simplifyHome && document.URL.replace(window.location.search, '') === 'https://www.bilibili.com/'
|
||||
return !settings.simplifyHome && document.URL.includes('https://www.bilibili.com/')
|
||||
}
|
||||
const homeHiddenOptions: HomeHiddenOption[] = [
|
||||
{
|
||||
|
||||
@ -134,24 +134,8 @@ function checkOfflineData () {
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/the1812/Bilibili-Evolved/issues/1076
|
||||
const issue1076 = ['playerFocus', 'outerWatchlater', 'quickFavorite']
|
||||
const handleIssue1076 = () => {
|
||||
return scriptVersion === 'Stable' || scriptVersion === 'Offline'
|
||||
}
|
||||
const preCheckCompatibility = () => {
|
||||
if (handleIssue1076() && issue1076.some(key => settings[key])) {
|
||||
issue1076.forEach(key => {
|
||||
settings[key] = false
|
||||
})
|
||||
Toast.info(/* html */`
|
||||
<div>为避免b站播放器改版导致网站无法正常使用, 以下功能已自动关闭并禁用:
|
||||
<span>自动定位到播放器</span> <span>外置稍后再看</span> <span>启用快速收藏</span>
|
||||
|
||||
详情见<a target="_blank" href="https://github.com/the1812/Bilibili-Evolved/issues/1076" class="link">讨论区</a>, 这些功能将在恢复后再解除禁用.
|
||||
若当前页面是视频页面且出现问题, 刷新即可恢复正常.</div>
|
||||
`.trim(), '通知')
|
||||
}
|
||||
// empty
|
||||
}
|
||||
function checkCompatibility () {
|
||||
if (window.devicePixelRatio === 1) {
|
||||
@ -160,11 +144,6 @@ function checkCompatibility () {
|
||||
settings.harunaScale = false
|
||||
settings.imageResolution = false
|
||||
}
|
||||
if (handleIssue1076()) {
|
||||
checkBoxes
|
||||
.filter(it => issue1076.includes(it.getAttribute('key')))
|
||||
.forEach(checkBox => (checkBox.disabled = true))
|
||||
}
|
||||
}
|
||||
function setDisplayNames () {
|
||||
for (const [key, name] of Object.entries(Resource.displayNames)) {
|
||||
|
||||
@ -60,7 +60,19 @@ export class ThemeColors {
|
||||
})
|
||||
}
|
||||
const box = document.querySelector('.predefined-colors')
|
||||
document.querySelector('div.custom-color-preview').addEventListener('click', () => {
|
||||
const toggleButton = document.querySelector('div.custom-color-preview')
|
||||
const outsideHandler = e => {
|
||||
if (e.target !== toggleButton && !toggleButton.contains(e.target) && e.target !== input) {
|
||||
box.classList.remove('opened')
|
||||
document.removeEventListener('click', outsideHandler)
|
||||
}
|
||||
}
|
||||
toggleButton.addEventListener('click', () => {
|
||||
if (!box.classList.contains('opened')) {
|
||||
document.addEventListener('click', outsideHandler)
|
||||
} else {
|
||||
document.removeEventListener('click', outsideHandler)
|
||||
}
|
||||
box.classList.toggle('opened')
|
||||
})
|
||||
}
|
||||
|
||||
@ -220,7 +220,7 @@ export const toolTips = new Map<keyof BilibiliEvolvedSettings, string>([
|
||||
[`downloadPackageEmitMode`, /*html*/`选择多个文件下载时的行为, 打包会先打成一个 zip 再下载, 分别下载会对每一个文件触发下载.`],
|
||||
[`columnImageExporter`, /*html*/`在专栏页面中可在附加功能中导出所有图片.`],
|
||||
[`feedsImageExporter`, /*html*/`在动态的右上角菜单中可选择导出图片来下载当前动态里的所有图片.`],
|
||||
[`homeHidden`, /*html*/`隐藏首页不需要的元素/分区. 你可以在附加功能中详细配置隐藏哪些元素.`],
|
||||
[`homeHidden`, /*html*/`隐藏原版首页不需要的元素/分区. 你可以在附加功能中详细配置隐藏哪些元素.`],
|
||||
]);
|
||||
export default {
|
||||
export: { toolTips },
|
||||
|
||||
@ -75,7 +75,7 @@ WrapStyle: 0
|
||||
ScaledBorderAndShadow: no
|
||||
|
||||
[V4+ Styles]
|
||||
Format: Name, Fontname, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
|
||||
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
|
||||
${fontStyles.join('\n')}
|
||||
|
||||
[Events]
|
||||
|
||||
@ -31,6 +31,13 @@ abstract class Batch {
|
||||
itemList: BatchItem[] = []
|
||||
abstract async getItemList(): Promise<BatchItem[]>
|
||||
abstract async collectData(quality: number | string): Promise<string>
|
||||
/**
|
||||
* Returns formated Title.
|
||||
*
|
||||
* @param parameters - TYPE: BatchTitleParameter
|
||||
* @returns escapeFilename
|
||||
*
|
||||
*/
|
||||
static formatTitle(parameters: BatchTitleParameter | undefined) {
|
||||
const format = settings.batchFilenameFormat
|
||||
const title = formatTitle(format, true, parameters)
|
||||
@ -216,6 +223,12 @@ class BangumiBatch extends Batch {
|
||||
static async test() {
|
||||
return document.URL.includes('/www.bilibili.com/bangumi')
|
||||
}
|
||||
/**
|
||||
* Get bangumi from api
|
||||
*
|
||||
* @returns a json list of multiple part bangumi
|
||||
*
|
||||
*/
|
||||
async getItemList() {
|
||||
if (this.itemList.length > 0) {
|
||||
return this.itemList
|
||||
@ -245,7 +258,7 @@ class BangumiBatch extends Batch {
|
||||
title: `${n} - ${title}`,
|
||||
// title: it.long_title ? `${it.title} - ${it.long_title}` : `${index + 1} - ${it.title}`,
|
||||
titleParameters: {
|
||||
n: getNumber(parseInt(n), this.itemList.length),
|
||||
n: getNumber(parseFloat(n), this.itemList.length, it.title),
|
||||
ep: title,
|
||||
},
|
||||
} as BatchItem
|
||||
|
||||
@ -1,5 +1,19 @@
|
||||
export const getNumber = (n: number, count: number) => {
|
||||
/**
|
||||
* count item
|
||||
*
|
||||
* @param n - current index
|
||||
* @param count - the end of the count
|
||||
* @param raw - default title
|
||||
* @returns expected number
|
||||
*/
|
||||
export const getNumber = (n: number, count: number, raw?: string) => {
|
||||
const finalCount = Math.max(2, Math.trunc(Math.log10(count) + 1))
|
||||
|
||||
// n is not a Number
|
||||
if (Number.isNaN(n) && raw) {
|
||||
return raw
|
||||
}
|
||||
|
||||
return n.toString().padStart(finalCount, '0')
|
||||
}
|
||||
export default {
|
||||
|
||||
@ -1 +1 @@
|
||||
1.11.11
|
||||
1.11.12
|
||||
Loading…
Reference in New Issue
Block a user