Merge pull request #3368 from timongh/fix-entry-arg

修正定义组件时 entry 函数的参数
This commit is contained in:
Grant Howard 2022-05-31 23:03:29 +08:00 committed by GitHub
commit fcaf3871f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
267 changed files with 7646 additions and 4624 deletions

View File

@ -3,6 +3,5 @@ packages/
typings/
dist/
dev/
builder/
*.config.*
.eslintrc.*

View File

@ -50,6 +50,7 @@ module.exports = {
'vue/no-v-html': 'off',
'vue/require-prop-types': 'off',
'vue/one-component-per-file': 'off',
'vue/singleline-html-element-content-newline': 'off',
// 使用 @typescript-eslint/no-unused-vars, 否则 interface 都是 unused
'no-unused-vars': 'off',
@ -80,7 +81,7 @@ module.exports = {
'camelcase': 'off',
'lines-between-class-members': 'off',
'radix': ['error', 'as-needed'],
'max-len': 'warn',
'max-len': 'error',
'max-classes-per-file': 'off',
'prefer-destructuring': ['error',
{

View File

@ -5,12 +5,14 @@ body:
attributes:
value: |
默认您已阅读 [Issues 须知](https://github.com/the1812/Bilibili-Evolved/blob/preview/doc/issue-rules.md)
发之前记得看下[置顶问题 (Pinned issues)](https://github.com/the1812/Bilibili-Evolved/issues) (如果有的话), 以及[常见问题解答](https://github.com/the1812/Bilibili-Evolved/discussions/1301)
请勿重复发起, 发之前记得看下[置顶问题 (Pinned issues)](https://github.com/the1812/Bilibili-Evolved/issues) (如果有的话), 以及[常见问题解答](https://github.com/the1812/Bilibili-Evolved/discussions/1301)
- type: textarea
id: feature
attributes:
label: 对应功能
description: |
**动态功能最近失效的请去 [#3191](https://github.com/the1812/Bilibili-Evolved/issues/3191), 求求别再开新反馈了**
(指本脚本的某项具体功能, 不是指 b 站的) 可以在设置中尝试开启 / 关闭某项功能来排查. 最好能附上功能的 Commit 值 (在设置里功能选项的底部).
<img src="https://user-images.githubusercontent.com/26504152/152666017-8a5acabc-2ad1-47ef-b0a2-cd5c54c867ab.jpg" width="400">
请注意: 以下功能已不再维护 (不再修复 bug 和添加新功能), 但是你仍然可以为其提供 Pull Request.
@ -49,8 +51,11 @@ body:
id: player-version
attributes:
label: 播放器版本
description: 在 b 站播放器上右键可以看到播放器版本号, 反馈播放器相关问题请务必提供
description: |
在 b 站播放器上右键可以看到播放器版本号, 大于 3 的别反馈视频相关功能了, 去 [#3187](https://github.com/the1812/Bilibili-Evolved/issues/3187) 里有.
placeholder: 请输入
validations:
required: true
- type: dropdown
id: player-codec
attributes:
@ -61,6 +66,8 @@ body:
- AV1
- HEVC
- AVC
validations:
required: true
- type: textarea
id: logs
attributes:

View File

@ -43,8 +43,8 @@ jobs:
- name: Git commit
id: commit
run: |
git config --local user.email "the1812@outlook.com"
git config --local user.name "the1812"
git config --local user.email github-actions[bot]@users.noreply.github.com
git config --local user.name github-actions[bot]
git config --global core.autocrlf true
git config --global core.safecrlf false
git commit -m "CI build" -a

2
.gitignore vendored
View File

@ -6,4 +6,4 @@ dev/
dist/stats.html
dist/profile.json
dist/bilibili-evolved.dev.user.js
builder/**/dist/
dev-tools/**/dist/

227
.vscode/settings.json vendored
View File

@ -1,117 +1,112 @@
{
"todohighlight.exclude": [
"**/node_modules/**",
"**/bower_components/**",
"**/dist/**",
"**/build/**",
"**/.vscode/**",
"**/.github/**",
"**/_output/**",
"**/*.min.*",
"**/*.map",
"**/.next/**",
"**/.vs/**",
"**/build-scripts/**"
],
"cSpell.words": [
"afterbegin",
"afterend",
"Bangumi",
"bevo",
"bili",
"bilibili",
"Biliplus",
"Bing",
"Blockable",
"bofqi",
"BVID",
"camelcase",
"clipboardy",
"cntr",
"compositionend",
"compositionstart",
"csrf",
"ctnr",
"Danmaku",
"danmakus",
"debounced",
"devtools",
"Doujin",
"downloaders",
"dpis",
"durl",
"epid",
"esbuild",
"Fullscreen",
"githubusercontent",
"Greasemonkey",
"haruna",
"hdslb",
"HEVC",
"iconfont",
"Iframes",
"Interop",
"jinkela",
"jsdelivr",
"jszip",
"kanban",
"kichiku",
"linebreak",
"Liveroom",
"materialdesignicons",
"medialist",
"mimetype",
"minmax",
"mixins",
"Muuri",
"overscroll",
"pako",
"plusplus",
"Popcap",
"popperjs",
"preload",
"protobuf",
"pubdate",
"reimu",
"reloadable",
"reloadables",
"repo",
"repost",
"reposts",
"Roadmap",
"roomid",
"saturationv",
"Sendbar",
"superchat",
"Swiper",
"tabindex",
"Tampermonkey",
"Touhou",
"truetype",
"uname",
"Violentmonkey",
"Vuex",
"Wasm",
"watchlater",
"woff",
"xmlhttp"
],
"javascript.validate.enable": true,
"svg.preview.background": "transparent",
"prettier.semi": false,
"typescript.format.semicolons": "remove",
"javascript.format.semicolons": "remove",
"files.associations": {
// don't highlight generated files
"*.user.js": "plaintext",
"**/dist/**/*.js": "plaintext"
},
"search.exclude": {
"**/dev": true,
"**/dist": true,
"**/yarn.lock": true
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
}
"todohighlight.exclude": [
"**/node_modules/**",
"**/bower_components/**",
"**/dist/**",
"**/build/**",
"**/.vscode/**",
"**/.github/**",
"**/_output/**",
"**/*.min.*",
"**/*.map",
"**/.next/**",
"**/.vs/**",
"**/build-scripts/**"
],
"cSpell.words": [
"afterbegin",
"afterend",
"Bangumi",
"bevo",
"bili",
"bilibili",
"Biliplus",
"Bing",
"Blockable",
"bofqi",
"BVID",
"camelcase",
"clipboardy",
"cntr",
"compositionend",
"compositionstart",
"csrf",
"ctnr",
"Danmaku",
"danmakus",
"debounced",
"devtools",
"Doujin",
"downloaders",
"dpis",
"durl",
"epid",
"esbuild",
"Fullscreen",
"githubusercontent",
"Greasemonkey",
"haruna",
"hdslb",
"HEVC",
"iconfont",
"Iframes",
"Interop",
"jinkela",
"jsdelivr",
"jszip",
"kanban",
"kichiku",
"linebreak",
"Liveroom",
"materialdesignicons",
"medialist",
"mimetype",
"minmax",
"mixins",
"Muuri",
"overscroll",
"pako",
"plusplus",
"Popcap",
"popperjs",
"preload",
"protobuf",
"pubdate",
"reimu",
"reloadable",
"reloadables",
"repo",
"repost",
"reposts",
"Roadmap",
"roomid",
"saturationv",
"Sendbar",
"superchat",
"Swiper",
"tabindex",
"Tampermonkey",
"Touhou",
"truetype",
"uname",
"Violentmonkey",
"Vuex",
"Wasm",
"watchlater",
"woff",
"xmlhttp"
],
"svg.preview.background": "transparent",
"files.associations": {
// don't highlight generated files
"*.user.js": "plaintext",
"**/dist/**/*.js": "plaintext"
},
"search.exclude": {
"**/dev": true,
"**/dist": true,
"**/yarn.lock": true
},
"eslint.format.enable": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}

11
.vscode/tasks.json vendored
View File

@ -3,6 +3,13 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command": "yarn ts-node ./dev-tools/dev-server/index.ts",
"group": "build",
"problemMatcher": [],
"label": "启动开发服务 dev-server"
},
{
"type": "shell",
"command": "yarn webpack --config ./webpack/webpack.dev.js --progress",
@ -61,14 +68,14 @@
},
{
"type": "shell",
"command": "yarn eslint -f html -o dev/eslint.html --cache --cache-location node_modules/.cache/eslint/ 'src/**/*.@(js|ts|vue)' 'registry/lib/**/*.@(js|ts|vue)'",
"command": "yarn eslint --cache --cache-location node_modules/.cache/eslint/ 'src/**/*.@(js|ts|vue)' 'registry/lib/**/*.@(js|ts|vue)'",
"group": "build",
"problemMatcher": [],
"label": "生产:代码检查 prod:lint"
},
{
"type": "shell",
"command": "yarn eslint -f html -o dev/eslint.html --cache --cache-location node_modules/.cache/eslint/ --fix 'src/**/*.@(js|ts|vue)' 'registry/lib/**/*.@(js|ts|vue)'",
"command": "yarn eslint --cache --cache-location node_modules/.cache/eslint/ --fix 'src/**/*.@(js|ts|vue)' 'registry/lib/**/*.@(js|ts|vue)'",
"group": "build",
"problemMatcher": [],
"label": "生产:代码修复 prod:lint-fix"

View File

@ -1,5 +1,122 @@
# 更新日志
## v2.1.9
`2022-05-07`
✨**正式版** `v2.1.9`
- `删除广告` 支持屏蔽视频页的创作推广和动态首页的新广告. (#3282, #3269)
- `动态反折叠``动态过滤器` 的开播记录类型支持新版动态首页. (#3191)
- 排除在直播开放平台的运行 (open-live.bilibili.com). (#3259)
- 检测到由 GreasyFork 安装时禁用反馈入口. (#3277)
- `网址参数清理` 不再在 iframe 中运行. (#2953)
- 修复标题格式化的两个问题. (#3251, #3309, PR 3310 by [cicur](https://github.com/cicur))
----
✨**预览版** `v2.1.9-preview`
- 设置面板移动了搜索框的位置, 添加了检查更新和卸载组件的快捷按钮. (PR #3279 by [FoundTheWOUT](https://github.com/FoundTheWOUT))
- `自定义顶栏` 支持硬核 LV6 会员的图标显示. (#3203)
- `动态过滤器` 支持屏蔽发送动态的面板. (#2447)
- 新增插件 `下载视频 - 手动输入`, 可以手动输入 av / BV 号来进行下载. (#3227)
- Toast 消息能够显示关闭时间的倒计时进度, 且鼠标进入时停止倒计时. (#3204)
☕开发者相关
- 所有 `substr` 调用替换为 `substring`.
- 在 ScopedConsole 的名称间添加了空格, 以改善复制为文本后的可读性.
## v2.1.8
`2022-04-16`
✨**正式版** `v2.1.8`
<details>
<summary>获得 v2.1.7 预览版的功能</summary>
- `倍速增强` 正式完成分离, 变更为 `记忆倍速`, `扩展倍速` 和独立的插件 `视频倍速 - 快捷键支持`, 详见 [PR 说明](https://github.com/the1812/Bilibili-Evolved/pull/2746). (PR #2746 by [JLoeve](https://github.com/LonelySteve))
- 为通用设置增加了一些选项描述. (#3140)
</details>
🐛修复
- 修复在线仓库把 Toast 消息挡住了. (#2613)
- 修复 `清爽首页` 中番剧时间表不能点击的问题. (#3166)
- 新版动态相关修复: (#3191)
- 恢复支持的功能: 快速收起评论区, 复制动态链接, 导出动态图片, 展开动态内容, 禁止跳转动态详情, 动态过滤器, 直播信息扩充.
- `自定义顶栏` 的位置已适配.
- 还未恢复的有: 夜间模式, 动态反折叠.
> 虽然这次新版动态导致挂了很多功能, 不过技术实现上比旧版好了不少, 官方总算是有点进步了
- 修复 `控制栏触摸优化``启用双击控制` 在视频页的样式适配.
> 我实在不能理解, 为啥视频页控制栏改得这么宽, 番剧区又很窄...
----
✨**预览版** `v2.1.8-preview`
- 新增功能 `返回原版直播间`. (#2133)
- `外置稍后再看``启用快速收藏` 支持在稍后再看/收藏夹播放页面显示的选项. (#3138)
- `夜间模式` 开启时能够将 Safari 主题颜色也改成黑色了. (#2384)
- `BV 号转换` 支持复制时带上标题. (#2557)
- Esc 键可以退出 `查看封面` 的图片查看器了. (#2574)
- 操作 `在线仓库` 时, 设置面板将保持打开. (#2630)
- 操作 `自定义顶栏` 的设置时, 设置面板将自动关闭, 避免和 `v1 风格设置面板` 一起使用时顶栏被挡住. (#2642)
🐛修复
- 修复更新组件失败时的报错信息不准确.
- 删除了没有用的功能: 直播画中画, 直播间自动抽奖.
☕开发者相关
- 修复 `addData` 在数据未加载过时就执行 `provider`, 改善文档. (PR #3160 by [timongh](https://github.com/timongh))
- 添加了 `pascalCase` 工具函数.
- 接入 define API (兼容模式, 未知类型默认 any), 新功能都将遵循这套 API 来编写. (PR #3181, #3041 by [timongh](https://github.com/timongh))
- 整理了一下 ESLint 配置, task 不再输出到 HTML 文件, 并移除 `settings.json` 中冗余的配置. (#3202)
- 改进了功能代码加载的稳定性. (PR #3195 by [timongh](https://github.com/timongh))
## v2.1.7
`2022-03-22`
✨**正式版** `v2.1.7`
- 修复 `简化直播间` 里带头像框的头像大小还是不对. (#3119)
- 修复 `清爽首页` 无法设置最大宽度. (#3120)
- 检查更新时的 `安装` 链接现在将遵循更新源设置. (#3122)
- 修复 `BV 号转换` 在番剧区产生的链接错误. (#3123)
- 修复 `查看封面` 在番剧区显示错误. (#1992)
- 修复 `自定义顶栏` 的透明模式在 b 站春季主题下失效. (#3126)
- 修复更改了主题色后文字颜色没有更新.
- 修复 `下载视频` 中的下拉菜单被遮挡. (#3129, #3133)
- 更新合集的一些夜间模式样式. (#3027)
- `传统连播模式` 支持在合集的最后一集停止连播. (#2940)
- 修复番剧区在文件命名时取得的 `title` 变量错误. (#3140)
- 修复通过 `快捷键扩展` 进行的静音操作提示总是显示 `已静音`. (#2830)
- 修复 `自定义顶栏` 的历史弹窗不支持触摸模式. (#3142)
- `下载视频` 的编码格式限制恢复之前的逻辑, 仍然是优先匹配, 没有相应编码的视频源时自动回退到其他编码. (#3118)
- 完善 `mountVueComponent` 的类型. (PR #3151 by [timongh](https://github.com/timongh))
- 修复 Wasm 播放器部分情况下识别错误. (#3131)
----
✨**预览版** `v2.1.7-preview`
- `倍速增强` 正式完成分离, 变更为 `记忆倍速`, `扩展倍速` 和独立的插件 `视频倍速 - 快捷键支持`, 详见 [PR 说明](https://github.com/the1812/Bilibili-Evolved/pull/2746). (PR #2746 by [JLoeve](https://github.com/LonelySteve))
- 为通用设置增加了一些选项描述. (#3140)
- 新增 ScopedConsole API, 可以创建带有固定前缀的 `console` 对象. 同时脚本作用域中的 `window.console` 将自带 `Bilibili Evolved` 前缀. (#3105)
```ts
import { useScopedConsole, randomScopedConsole } from '@/core/utils/log'
console.log(123)
// [Bilibili Evolved] 123
{
const console2 = useScopedConsole('scope')
console2.log(123)
// [Bilibili Evolved] [scope] 123
const console3 = randomScopedConsole({ console: console2 })
console3.log(123)
// [Bilibili Evolved] [scope] [977a7962] 123
}
```
## v2.1.6
`2022-03-13`

View File

@ -14,10 +14,10 @@ yarn
```
### 本体
需要说明的是, 脚本本体和功能是分开的两个项目, 因此编译时也是分开的. 脚本本体的编译通常使用 `监视开发版 dev:watch` 任务, 会产生 `dist/bilibili-evolved.dev.user.js` 文件.
需要说明的是, 脚本本体和功能是分开的两个项目. 本体的代码在 `src/` 下, 开发时产生 `dist/bilibili-evolved.dev.user.js` 文件. 功能的代码位于 `registry/` 下, 开发时在 `registry/dist/` 下产生文件.
> 如果不使用 Visual Studio Code, 则需要根据 `.vscode/tasks.json` 中各个任务定义的命令手动在终端执行. (npm scripts 仅用于 CI)
然后配置本地调试环境:
配置本地调试环境:
**如果使用的是基于 Chromium 的浏览器**
1. Chrome 插件管理 `chrome://extensions/` > Tampermonkey > 详细信息
@ -30,7 +30,7 @@ yarn
// @description Bilibili Evolved (本地)
// @version 300.0
// @author Grant Howard, Coulomb-G
// @copyright 2021, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
// @copyright 2022, Grant Howard (https://github.com/the1812) & Coulomb-G (https://github.com/Coulomb-G)
// @license MIT
// @match *://*.bilibili.com/*
// @exclude *://*.bilibili.com/*/mobile.html
@ -72,26 +72,26 @@ yarn
> Windows 例子: `@require file://C:/xxx/Bilibili-Evolved/bilibili-evolved.dev.user.js`
> macOS 例子: `@require file:///Users/xxx/Documents/Bilibili-Evolved/bilibili-evolved.dev.user.js`
7. 保存脚本, 监视模式下保存文件构建完成后, 刷新即可生效
> 上面那些其他的 @require`src/client/common.meta.json` 里的保持一致就行, 偶尔这些依赖项会变动导致这个本地调试脚本失效, 到时候照着改一下就行.
7. 保存脚本, 运行 `启动开发服务 dev-server` 任务
8. 进入 b 站, 安装 `DevClient` 组件, 功能中显示已连接时就是成功了
**如果使用 Firefox 或 Safari**
1. 运行 `启动服务器(本体) dev:serve` 任务, 假设得到的服务链接为`http://localhost:5000/`
2. 继续 Chromium 指南中的第 3~6 步, 但在第 6 步时 `@require` 的链接使用 `http://localhost:5000/bilibili-evolved.dev.user.js`.
3. 保存脚本, 监视模式下保存文件构建完成后, 在 Tampermonkey 中编辑脚本 - 外部, 删除 `localhost` 的缓存文件后生效.
1. 运行 `启动开发服务 dev-server` 任务时, 假设得到的本体链接为 `http://localhost:23333/dist/bilibili-evolved.dev.user.js`
2. 继续 Chromium 指南中的第 3 ~ 6 步, 但在第 6 步时 `@require` 的链接使用 `http://localhost:23333/dist/bilibili-evolved.dev.user.js`.
3. 保存脚本, 运行 `启动开发服务 dev-server` 任务
4. 进入 b 站, 安装 `DevClient` 组件, 将 `本体刷新策略` 设置为 `不刷新`, 功能中显示已连接时就是成功了
5. 每次本体代码变动后, 需要在 Tampermonkey 中编辑脚本 - 外部, 删除 `localhost` 的缓存文件后刷新生效.
### 组件
组件除了本体内置的几个(内置的按照本体的调试方法就行), 其他都是和本体分离的, 本节包括这些组件的编译和调试方法, 同样适用于插件. 组件的源代码和产物均位于 `registry` 文件夹中.
1. 运行任务 `监视组件 dev:components`, (插件运行 `监视插件 dev:plugins`), 任务会询问要编译的组件是哪个, 从列表中选择即可.
2. 然后运行 `启动服务器(组件) dev:serve components`, 就得到了组件在 `localhost` 下的链接.
3. 进入网站, 打开脚本的设置面板 - 组件管理, (确保`自动更新器`功能开启) 粘贴组件的链接并安装.
4. 监视模式下保存文件构建完成后, 可以在设置里进入组件详情, 从菜单里选择检查更新; 如果开着 `开发者模式``自动更新器`, 也可以在搜索栏中搜索 `Check Last Update` 来一键更新上一次检查更新的组件.
## 修改
找到对应的代码文件修改, 可以搜索组件的 `name``displayName` 定位文件, 修改后运行对应的编译任务即可.
1. 运行 `启动开发服务 dev-server`
2. 在脚本的设置面板 - 组件详情中, 从右下角的菜单中选择 `开始调试`.
3. 找到对应的代码文件修改, 可以搜索组件的 `name``displayName` 定位文件, 修改后会自动更新.
## 新增
### 本体
@ -127,7 +127,10 @@ yarn
> `author` 字段记得填, 这个因为我自己写的组件不需要所以就不是 required 的
5. 根据组件的复杂度, 可以自行在文件夹中创建其他文件来组织代码, 下方还列出了一些可用资源可以帮助你加快开发.
6. 编译并调试组件.
6. 运行任务 `功能:编译组件 prod:build-components`, (插件运行 `功能:编译插件 prod:build-plugins`), 任务会询问要编译的组件是哪个, 从列表中选择即可.
7. 然后运行 `启动开发服务 dev-server`, 访问 `http://localhost:23333/registry/dist`, 可以找到组件的 localhost 连接.
8. 进入 b 站, 打开脚本的设置面板 - 组件管理, 粘贴组件的链接并安装.
9. 后续同 [修改](##修改) 中的 2 ~ 3 步.
### 插件
`registry/lib/plugins` 中是所有插件的源代码, 步骤和组件基本一致, 只有在第 4 步中, 导出的是 `plugin` 对象, 实现 `PluginMetadata` 接口.
@ -206,7 +209,7 @@ yarn
> 有时候需要分开数据的注册和获取, 可以分别调用 `registerData``getData`
> 从设计上考虑好你的数据是否适合此 API, `addData` 做出的数据修改是单向累加式的, 不能够撤销.
> 从设计上考虑好你的数据是否适合此 API, `addData` 做出的数据修改是单向累加式的, 不能够撤销.`git` 作为比喻的话, 就是只能继续 `git commit`, 不允许 `git reset`.
- `plugins/hook`: 钩子函数 API
@ -225,6 +228,7 @@ yarn
- `ui/ScrollTrigger.vue`: 进入视图时触发事件, 通常用于实现无限滚动
- `ui/VEmpty.vue`: 表示无数据, 界面可被插件更改
- `ui/VLoading.vue`: 表示数据加载中, 界面可被插件更改
- `ui/AsyncButton.vue`: `click` 事件为异步函数时, 执行期间自动使 `Button` 禁用, 其他和 `Button` 相同.
## 代码风格检查
项目中含有 ESLint, 不通过 ESLint 是无法进行 Pull Request 的. 配置基于 `airbnb-base`, `typescript-eslint/recommended`, `vue/recommended` 修改而来, 几个比较特殊的规则如下:

View File

@ -1,53 +0,0 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const sync_1 = __importDefault(require("csv-parse/lib/sync"));
const fs_1 = __importDefault(require("fs"));
const files = process.argv.slice(2);
const parseAliPay = (csv) => {
csv.forEach(item => {
item.sortKey = Number(new Date(item.创建时间)).toString();
item.toString = () => {
let name = '';
if (item.商品名称 !== '收钱码收款') {
name += item.商品名称 + ' ';
}
name += item.对方名称 + ' ' + item.付款备注;
return `| ${item.创建时间.replace(/-/g, '.')} | ${name} | ${item.支付宝交易号.substring(item.支付宝交易号.length - 4)} | ¥${item['订单金额(元)']} |`;
};
});
return csv;
};
const parseWeChat = (csv) => {
csv.forEach(item => {
item.sortKey = Number(new Date(item.交易时间)).toString();
item.toString = () => {
let name = item.交易对方;
const noteMatch = item.商品.match(/付款方留言:(.+)/);
if (noteMatch) {
name += ' ' + noteMatch[1];
}
if (item.备注.trim() !== '/') {
name += ' ' + item.备注;
}
item.交易单号 = item.交易单号.trim();
return `| ${item.交易时间.replace(/-/g, '.')} | ${name} | ${item.交易单号.substring(item.交易单号.length - 4)} | ${item['金额(元)']} |`;
};
});
return csv;
};
const items = files.map(file => {
const text = fs_1.default.readFileSync(file, { encoding: 'utf-8' });
const csv = sync_1.default(text, { columns: true });
if (file.includes('支付宝')) {
return parseAliPay(csv);
}
if (file.includes('微信')) {
return parseWeChat(csv);
}
console.warn(`not parse method for ${file}`);
return [];
}).flat().sort((a, b) => parseInt(b.sortKey) - parseInt(a.sortKey));
fs_1.default.writeFileSync('dist/output.md', items.join('\n'));

View File

@ -1,8 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
csv-parse@^4.15.4:
version "4.15.4"
resolved "https://registry.npm.taobao.org/csv-parse/download/csv-parse-4.15.4.tgz#ad1ec62aaf71a642982dfcb81f1848184d691db5"
integrity sha1-rR7GKq9xpkKYLfy4HxhIGE1pHbU=

View File

@ -0,0 +1,21 @@
import { readFileSync, existsSync } from 'fs'
interface DevServerConfig {
port?: number
maxWatchers?: number
}
const configFile = (path: string) => () => (
existsSync(path)
? JSON.parse(readFileSync(path, { encoding: 'utf-8' }))
: {}
)
const configSource: (() => DevServerConfig)[] = [
() => ({
port: 23333,
maxWatchers: 16,
}),
configFile('dev/dev-server.json'),
]
export const devServerConfig = configSource.reduce((previous, current) => (
{ ...previous, ...current() }
), {} as DevServerConfig)

View File

@ -0,0 +1,23 @@
import webpack from 'webpack'
import exitHook from 'async-exit-hook'
import webpackConfig from '../../webpack/webpack.dev'
import { sendMessage } from './web-socket-server'
import { defaultWatcherHandler } from './watcher-common'
export const startCoreWatcher = () => new Promise<void>(resolve => {
const compiler = webpack(webpackConfig as webpack.Configuration)
console.log('本体编译中...')
const instance = compiler.watch({}, defaultWatcherHandler(
() => resolve(),
result => {
console.log('本体已编译:', result.hash)
sendMessage({
type: 'coreUpdate',
})
},
))
exitHook(exit => instance.close(() => {
console.log('本体编译器已退出')
exit()
}))
})

View File

@ -0,0 +1,66 @@
# Bilibili Evolved Dev Tools
## Server
### Serve components
Serve (watch) contents:
- `./registry/dist/*` -> `localhost:2333/registry/dist/*`: Build on demand, cache 16 items by default.
- `./dist/` -> `localhost:2333/dist/*`: Build at startup.
### WebSocket
Dev server on WebSocket: `ws://localhost:2333`
Send Messages:
`start`
```json
{
"type": "start"
}
```
`coreUpdate`
```json
{
"type": "coreUpdate",
}
```
`itemUpdate`
```json
{
"type": "itemUpdate",
"path": "http://localhost:2333/registry/dist/components/style/auto-hide-sidebar.js"
}
```
`stop`
```json
{
"type": "stop",
}
```
## Client
As component:
- name: devClient
- displayName: DevClient
- entry:
- Try connect `ws://localhost:2333`
- Debug toolbar (as widget)
- options:
- port: `2333`
- updateMode: `reload` | `noReload` | `style`
### WebSocket
Receive Messages:
- `start`
- `coreUpdate`
- `itemUpdate`
- `stop`
### Debug widget
- Server connection status
- Action: Disconnect / Reconnect
- Support key bindings / LaunchBar actions

View File

@ -0,0 +1,8 @@
import { startDevServer } from './server'
import { startCoreWatcher } from './core-watcher'
import { startWebSocketServer } from './web-socket-server'
startDevServer().then(server => {
startCoreWatcher()
startWebSocketServer(server)
})

View File

@ -0,0 +1,31 @@
export interface PayloadBase<Type extends string = string> {
type: Type
}
export type StartPayload = PayloadBase<'start'> & {
sessions: string[]
}
export type CoreUpdatePayload = PayloadBase<'coreUpdate'>
export type ItemUpdatePayload = PayloadBase<'itemUpdate'> & {
path: string
sessions: string[]
}
export type ItemStopPayload = PayloadBase<'itemStop'> & {
path: string
}
export type QuerySessionsPayload = PayloadBase<'querySessions'>
export type QuerySessionsResponsePayload = PayloadBase<'querySessionsResponse'> & {
sessions: string[]
}
export type StopPayload = PayloadBase<'stop'>
export type Payload = (
StartPayload |
CoreUpdatePayload |
ItemUpdatePayload |
StopPayload |
ItemStopPayload |
QuerySessionsPayload |
QuerySessionsResponsePayload
)
export type MessageHandler<P extends Payload = Payload> = (payload: P) => void

View File

@ -0,0 +1,71 @@
import { Watching, Configuration, webpack } from 'webpack'
import exitHook from 'async-exit-hook'
import { fromId } from '../../registry/webpack/id'
import { defaultWatcherHandler } from './watcher-common'
import { sendMessage } from './web-socket-server'
import { devServerConfig } from './config'
export const watchers: { url: string; instance: Watching }[] = []
export const parseRegistryUrl = (url: string) => {
/* example: http://localhost:2333/registry/dist/components/feeds/copy-link.js
-> src: ./registry/lib/components/
-> type: component
-> entry: ./registry/lib/components/feeds/copy-link/index.ts
*/
const regex = new RegExp('/registry/dist/([^/]+)s/(.+)\\.js')
const match = url.match(regex)
if (!match) {
return null
}
const [, type, id] = match
const src = `./registry/lib/${type}s/`
return {
src,
type,
entry: fromId(src, id),
}
}
export const stopInstance = (instance: Watching, onClose: () => void) => {
if (!instance.closed) {
instance.close(() => {
onClose()
})
}
}
export const startRegistryWatcher = (url: string, config: Configuration) => new Promise<void>(
resolve => {
console.log(`功能编译中... ${url}`)
const { maxWatchers } = devServerConfig
const watcher = webpack(config)
const instance = watcher.watch({}, defaultWatcherHandler(
() => {
resolve()
},
result => {
console.log('功能已编译:', result.hash, url)
sendMessage({
type: 'itemUpdate',
path: url,
sessions: watchers.map(it => it.url),
})
},
))
exitHook(exit => {
if (!instance.closed) {
instance.close(() => {
console.log(`功能编译器已退出: ${url}`)
exit()
})
}
})
if (watchers.length >= maxWatchers) {
const oldInstance = watchers.shift()
stopInstance(oldInstance.instance, () => {
console.log(`已达到 maxWatchers 数量 (${maxWatchers}), 退出了功能编译器: ${oldInstance.url}`)
})
}
watchers.push({ url, instance })
},
)

View File

@ -0,0 +1,60 @@
import { createServer, Server } from 'http'
import { Configuration } from 'webpack'
import exitHook from 'async-exit-hook'
import handler from 'serve-handler'
import { devServerConfig } from './config'
import { buildByEntry } from '../../registry/webpack/config'
import { exitWebSocketServer } from './web-socket-server'
import { watchers, parseRegistryUrl, startRegistryWatcher } from './registry-watcher'
export const startDevServer = () => new Promise<Server>(resolve => {
const { port } = devServerConfig
const server = createServer((request, response) => {
const { url } = request
console.log('请求:', url)
const callHandler = () => {
handler(request, response, {
public: '.',
directoryListing: [
'/dist',
'/dist/**',
'/registry/dist',
'/registry/dist/**',
],
})
}
if (url.startsWith('/registry')) {
const existingWatcher = watchers.find(w => w.url === url)
const registryInfo = parseRegistryUrl(url)
if (existingWatcher && registryInfo) {
console.log(`已复用功能编译器: ${url}`)
}
if (existingWatcher || !registryInfo) {
callHandler()
} else {
startRegistryWatcher(url, buildByEntry(registryInfo) as Configuration).then(
() => callHandler(),
)
}
} else {
callHandler()
}
})
exitHook(exit => {
exitWebSocketServer()
server.close(error => {
if (error) {
console.error(error)
exit()
return
}
console.log('DevServer 已退出')
exit()
})
})
server.listen(port, () => {
console.log(`DevServer 已启动, 端口: ${port}`)
resolve(server)
})
})

View File

@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"noEmit": true,
}
}

View File

@ -0,0 +1,36 @@
import { Stats } from 'webpack'
export const defaultWatcherHandler = (
initCallback: (result: Stats) => void,
updateCallback: (result: Stats) => void,
) => {
let lastHash = ''
return (error: Error, result: Stats) => {
if (error) {
console.error(error)
return
}
if (result.hash === lastHash) {
return
}
const needLogging = result.hasErrors() || result.hasWarnings()
if (needLogging) {
console.log(result.toString({
hash: false,
assets: false,
modules: false,
chunks: false,
color: true,
}))
}
if (result.hasErrors()) {
lastHash = ''
return
}
if (!lastHash) {
initCallback(result)
}
lastHash = result.hash
updateCallback(result)
}
}

View File

@ -0,0 +1,66 @@
import exitHook from 'async-exit-hook'
import { Server } from 'http'
import { WebSocketServer } from 'ws'
import { Payload } from './payload'
import { stopInstance, watchers } from './registry-watcher'
let server: WebSocketServer
export const sendMessage = (message: Payload) => {
if (!server) {
return
}
const text = JSON.stringify(message)
server.clients.forEach(client => {
client.send(text)
})
}
export const exitWebSocketServer = () => {
if (!server) {
return
}
sendMessage({ type: 'stop' })
server.clients.forEach(c => c.close())
}
export const startWebSocketServer = (httpServer: Server) => new Promise<void>(resolve => {
server = new WebSocketServer({ server: httpServer })
server.on('connection', client => {
sendMessage({ type: 'start', sessions: watchers.map(it => it.url) })
client.on('message', data => {
try {
const payload: Payload = JSON.parse(data.toString())
console.log('收到 DevClient 消息:', payload)
switch (payload.type) {
default: {
break
}
case 'itemStop': {
const { path } = payload
const watcherIndex = watchers.findIndex(it => it.url === path)
if (watcherIndex !== -1) {
const [watcher] = watchers.splice(watcherIndex, 1)
stopInstance(watcher.instance, () => {
console.log(`功能编译器已退出: ${watcher.url}`)
})
}
break
}
case 'querySessions': {
sendMessage({ type: 'querySessionsResponse', sessions: watchers.map(it => it.url) })
break
}
}
} catch (error) {
console.error('无效信息', data)
}
})
})
server.on('error', error => console.error(error))
exitHook(exit => server.close(error => {
if (error) {
console.error(error)
}
exit()
}))
resolve()
})

View File

@ -8,31 +8,33 @@ const parseAliPay = (csv: Record<string, string>[]) => {
item.toString = () => {
let name = ''
if (item. !== '收钱码收款') {
name += item. + ' '
name += `${item.} `
}
name += item. + ' ' + item.
name += `${item.} ${item.}`
return `| ${item..replace(/-/g, '.')} | ${name} | ${item..substring(item..length - 4)} | ¥${item['订单金额(元)']} |`
}
})
return csv
}
const parseWeChat = (csv: Record<string, string>[]) => {
csv.forEach(item => {
item.sortKey = Number(new Date(item.)).toString()
item.toString = () => {
const items = csv.filter(item => item. === '赞赏码').map(item => ({
...item,
sortKey: Number(new Date(item.)).toString(),
toString: () => {
let name = item.
const noteMatch = item..match(/付款方留言:(.+)/)
if (noteMatch) {
name += ' ' + noteMatch[1]
name += ` ${noteMatch[1]}`
}
if (item..trim() !== '/') {
name += ' ' + item.
name += ` ${item.}`
}
item. = item..trim()
console.log(item, item.)
return `| ${item..replace(/-/g, '.')} | ${name} | ${item..substring(item..length - 4)} | ${item['金额(元)']} |`
}
})
return csv
},
}))
return items
}
const items = files.map(file => {
const text = fs.readFileSync(file, { encoding: 'utf-8' })

View File

@ -1,11 +1,14 @@
{
"name": "donate-table",
"version": "1.0.0",
"main": "index.js",
"main": "index.ts",
"author": "Grant Howard",
"license": "MIT",
"private": true,
"dependencies": {
"csv-parse": "^4.15.4"
},
"devDependencies": {
"ts-node": "^10.5.0"
}
}

View File

@ -5,6 +5,7 @@
"module": "commonjs",
"strict": true,
"sourceMap": false,
"skipLibCheck": true
},
"include": [
"index.ts"

View File

@ -0,0 +1,99 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@cspotcode/source-map-consumer@0.8.0":
version "0.8.0"
resolved "https://registry.npmmirror.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b"
integrity sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==
"@cspotcode/source-map-support@0.7.0":
version "0.7.0"
resolved "https://registry.npmmirror.com/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz#4789840aa859e46d2f3173727ab707c66bf344f5"
integrity sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==
dependencies:
"@cspotcode/source-map-consumer" "0.8.0"
"@tsconfig/node10@^1.0.7":
version "1.0.8"
resolved "https://registry.npmmirror.com/@tsconfig/node10/-/node10-1.0.8.tgz#c1e4e80d6f964fbecb3359c43bd48b40f7cadad9"
integrity sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==
"@tsconfig/node12@^1.0.7":
version "1.0.9"
resolved "https://registry.npmmirror.com/@tsconfig/node12/-/node12-1.0.9.tgz#62c1f6dee2ebd9aead80dc3afa56810e58e1a04c"
integrity sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==
"@tsconfig/node14@^1.0.0":
version "1.0.1"
resolved "https://registry.npmmirror.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2"
integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==
"@tsconfig/node16@^1.0.2":
version "1.0.2"
resolved "https://registry.npmmirror.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e"
integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==
acorn-walk@^8.1.1:
version "8.2.0"
resolved "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1"
integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==
acorn@^8.4.1:
version "8.7.0"
resolved "https://registry.npmmirror.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf"
integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==
arg@^4.1.0:
version "4.1.3"
resolved "https://registry.npmmirror.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
create-require@^1.1.0:
version "1.1.1"
resolved "https://registry.npmmirror.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
csv-parse@^4.15.4:
version "4.15.4"
resolved "https://registry.npm.taobao.org/csv-parse/download/csv-parse-4.15.4.tgz#ad1ec62aaf71a642982dfcb81f1848184d691db5"
integrity sha1-rR7GKq9xpkKYLfy4HxhIGE1pHbU=
diff@^4.0.1:
version "4.0.2"
resolved "https://registry.npmmirror.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
make-error@^1.1.1:
version "1.3.6"
resolved "https://registry.npmmirror.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
ts-node@^10.5.0:
version "10.5.0"
resolved "https://registry.npmmirror.com/ts-node/-/ts-node-10.5.0.tgz#618bef5854c1fbbedf5e31465cbb224a1d524ef9"
integrity sha512-6kEJKwVxAJ35W4akuiysfKwKmjkbYxwQMTBaAxo9KKAx/Yd26mPUyhGz3ji+EsJoAgrLqVsYHNuuYwQe22lbtw==
dependencies:
"@cspotcode/source-map-support" "0.7.0"
"@tsconfig/node10" "^1.0.7"
"@tsconfig/node12" "^1.0.7"
"@tsconfig/node14" "^1.0.0"
"@tsconfig/node16" "^1.0.2"
acorn "^8.4.1"
acorn-walk "^8.1.1"
arg "^4.1.0"
create-require "^1.1.0"
diff "^4.0.1"
make-error "^1.1.1"
v8-compile-cache-lib "^3.0.0"
yn "3.1.1"
v8-compile-cache-lib@^3.0.0:
version "3.0.0"
resolved "https://registry.npmmirror.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz#0582bcb1c74f3a2ee46487ceecf372e46bce53e8"
integrity sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA==
yn@3.1.1:
version "3.1.1"
resolved "https://registry.npmmirror.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -29,6 +29,60 @@ https://afdian.net/@the1812?tab=sponsor
| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | ---------------- | --------- | ------- |
| 2022.05.06 10:34:03 | 匿名 | 0532 | ¥5.00 |
| 2022.04.29 07:50:21 | 匿名 | 7953 | ¥100.00 |
| 2022.04.28 12:22:34 | 匿名 | 9578 | ¥1.00 |
| 2022.04.25 20:23:07 | 匿名 | 4543 | ¥10.00 |
| 2022.04.25 20:22:15 | 匿名 | 6342 | ¥5.00 |
| 2022.04.25 10:27:00 | 匿名 | 1813 | ¥2.00 |
| 2022.04.22 10:20:10 | 七番目の我 | 0304 | ¥50.00 |
| 2022.04.21 22:59:02 | *因 | 8811 | ¥20.00 |
| 2022.04.17 14:39:55 | 匿名 | 4246 | ¥6.66 |
| 2022.04.11 15:37:27 | 匿名 | 7381 | ¥2.33 |
| 2022.04.10 22:11:16 | 匿名 | 2979 | ¥20.00 |
| 2022.04.09 14:18:11 | *0 | 8916 | ¥20.00 |
| 2022.04.03 23:02:05 | 匿名 | 6422 | ¥20.00 |
| 2022.04.03 10:44:58 | *曹 | 3756 | ¥1.13 |
| 2022.04.03 10:44:29 | *曹 | 3253 | ¥1.40 |
| 2022.03.31 15:17:08 | 匿名 | 7739 | ¥3.00 |
| 2022.03.30 12:03:33 | *练 | 5622 | ¥5.00 |
| 2022.03.28 11:31:53 | C*c | 7987 | ¥10.00 |
| 2022.03.23 15:31:53 | R*0 | 8571 | ¥10.00 |
| 2022.03.23 10:59:36 | 匿名 | 6814 | ¥5.00 |
| 2022.03.21 14:56:32 | 匿名 | 1692 | ¥2.00 |
| 2022.03.18 22:58:59 | *者 | 1524 | ¥1.33 |
| 2022.03.18 14:32:08 | 风降 | 7263 | ¥5.00 |
| 2022.03.18 04:56:55 | *e | 3202 | ¥20.00 |
| 2022.03.15 17:52:58 | *山 | 1534 | ¥50.00 |
| 2022.03.13 00:57:16 | 匿名 | 9074 | ¥10.00 |
| 2022.03.12 16:15:41 | 匿名 | 5312 | ¥10.00 |
| 2022.03.08 15:34:44 | *源 | 8482 | ¥10.00 |
| 2022.02.18 17:01:40 | *某 | 9760 | ¥10.00 |
| 2022.02.16 05:17:31 | N*x | 8071 | ¥2.33 |
| 2022.02.14 20:57:47 | M*9 | 6981 | ¥1.11 |
| 2022.02.11 23:21:36 | *辈 | 7832 | ¥50.00 |
| 2022.02.11 11:19:30 | 匿名 | 2375 | ¥5.00 |
| 2022.02.10 15:52:04 | *雨 | 3421 | ¥6.66 |
| 2022.02.10 15:18:02 | *飔 | 6228 | ¥10.00 |
| 2022.02.09 22:07:25 | charygao | 1027 | ¥20.00 |
| 2022.02.09 13:11:19 | E*n | 5990 | ¥3.00 |
| 2022.02.09 10:39:52 | *D | 4731 | ¥23.33 |
| 2022.02.07 11:08:09 | *屾 | 3696 | ¥8.88 |
| 2022.02.06 10:07:15 | *强 | 8538 | ¥5.00 |
| 2022.02.02 18:49:37 | *因 | 9618 | ¥10.00 |
| 2022.01.29 19:57:39 | 匿名 | 8374 | ¥10.88 |
| 2022.01.27 13:57:18 | 匿名 | 4816 | ¥10.00 |
| 2022.01.26 18:13:21 | R*i | 5718 | ¥20.00 |
| 2022.01.26 16:10:15 | *船 | 8096 | ¥5.00 |
| 2022.01.24 04:11:01 | 匿名 | 9739 | ¥5.00 |
| 2022.01.23 00:16:36 | *唯 | 7747 | ¥20.00 |
| 2022.01.22 20:34:58 | JizzCriuy | 6416 | ¥2.33 |
| 2022.01.22 13:43:10 | dibin | 5737 | ¥3.00 |
| 2022.01.22 10:30:40 | *宸 | 1426 | ¥10.00 |
| 2022.01.21 23:45:21 | 匿名 | 1755 | ¥20.00 |
| 2022.01.21 14:54:37 | 匿名 | 6665 | ¥5.00 |
| 2022.01.20 21:13:06 | M*P | 5348 | ¥10.00 |
| 2022.01.18 12:28:17 | FBI赤井秀一 | 4513 | ¥10.00 |
| 2022.01.14 11:09:03 | R*0 | 1506 | ¥20.00 |
| 2022.01.13 15:12:17 | *洋 | 0034 | ¥10.00 |
| 2022.01.05 21:16:29 | *伟 | 8137 | ¥10.00 |

View File

@ -591,6 +591,14 @@
"fullRelativePath": "../../registry/dist/components/video/player/double-click-fullscreen.js",
"fullAbsolutePath": "registry/dist/components/video/player/double-click-fullscreen.js"
},
{
"type": "component",
"name": "extendVideoSpeed",
"displayName": "扩展倍速",
"description": "by [@JLoeve](https://github.com/LonelySteve)\n\n\n\n> 扩展视频播放器的倍速菜单项,可用于突破原有播放倍数的上限或下限.\n\n### 🔧 **选项**\n\n- `隐藏滚动条`:如果添加的倍速过多,倍速菜单将出现滚动条,在 Windows 下,若没有安装并启用「细滚动条」组件会显得比较挤,建议开启此选项隐藏滚动条.\n\n### **新增倍速**\n\n开启组件后在默认情况下播放器的倍速菜单就会新增 2.5x 和 3.0x 两个倍速选项.\n\n如果需要添加更多倍速只需将鼠标指针移到菜单顶部的新增图标上图标将变成一个输入框根据需要键入新的倍速值或通过滚轮增减数值或直接使用推荐的数值回车确认即可.\n\n新增倍速的范围要求在 0.0625 到 16 之间,数量则不受限制.\n\n**不推荐设置超高倍速(>3.0x**:原生播放器内部没有针对超高倍速进行优化,可能导致音画不同步、播放卡顿、声音嘈杂/消失等一系列问题.\n\n### **删除倍速**\n\n将鼠标指针移到**自定义**的倍速菜单项上,其右侧将会显示一个移除图标,单击即可删除相应的倍速.\n\n",
"fullRelativePath": "../../registry/dist/components/video/player/extend-speed.js",
"fullAbsolutePath": "registry/dist/components/video/player/extend-speed.js"
},
{
"type": "component",
"name": "playerFocus",
@ -611,7 +619,7 @@
"type": "component",
"name": "legacyAutoPlay",
"displayName": "传统连播模式",
"description": "模拟传统的多 P 连播策略: 仅连播视频的分 P 和番剧的多集, 最后 1P 放完禁止连播其他推荐视频.",
"description": "模拟传统的多 P 连播策略: 仅连播视频的分 P, 最后 1P 放完禁止连播其他推荐视频.",
"fullRelativePath": "../../registry/dist/components/video/player/legacy-auto-play.js",
"fullAbsolutePath": "registry/dist/components/video/player/legacy-auto-play.js"
},
@ -626,8 +634,8 @@
{
"type": "component",
"name": "rememberVideoSpeed",
"displayName": "倍速增强",
"description": "by [@JLoeve](https://github.com/LonelySteve)\n\n可以记忆上次选择的视频播放速度, 还可以使用更多倍速来扩展原生倍速菜单.",
"displayName": "记忆倍速",
"description": "by [@JLoeve](https://github.com/LonelySteve)\n\n\n\n> 提高视频播放器的倍速记忆体验,可实现跨页共享倍速,也可以按视频分别记忆倍速.\n\n### 🔧 **选项**\n\n- `全局记忆倍速值`:默认情况下,这是跨页共享的倍速值,如果启用「各视频分别记忆」,则作为从未独立记忆倍速视频的初始倍速值.\n- `固定全局倍速值`:默认情况下,全局倍速值将随着用户改变视频倍速而改变,打开此选项后,全局记忆倍速值不再受倍速调整的影响.\n- `各视频分别记忆`:打开此选项后,将按不同视频分别记忆倍速,对于从未被记忆过倍速的视频,将采用全局记忆倍速值,选项「固定全局倍速值」在此情况下强制生效.\n- `弹出还原倍速提示`:打开此选项后,每次成功还原倍速后都会弹出提示.\n\n### 🌈 **温馨提示**\n\n「扩展倍速」和倍速相关的快捷键插件已分离为单独的组件或插件.\n\n请根据自身需要\n\n- 前往「组件」页面安装[「扩展倍速」](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/video/player/extend-speed.js)组件\n- 前往「插件」页面安装[「视频倍速 - 快捷键支持」](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/plugins/video/player/speed.js)插件.\n\n*如果想要清除当前视频的记忆状态,需要安装「视频倍速 - 快捷键支持」插件.*\n",
"fullRelativePath": "../../registry/dist/components/video/player/remember-speed.js",
"fullAbsolutePath": "registry/dist/components/video/player/remember-speed.js"
},
@ -783,5 +791,13 @@
"description": "by [@diannaojiang](https://github.com/diannaojiang)\n\n为下载视频增加 MPV 输出支持, 配置方式请参考 [Bilibili-Playin-Mpv](https://github.com/diannaojiang/Bilibili-Playin-Mpv)",
"fullRelativePath": "../../registry/dist/plugins/video/download/mpv-output.js",
"fullAbsolutePath": "registry/dist/plugins/video/download/mpv-output.js"
},
{
"type": "plugin",
"name": "speed.keymap",
"displayName": "视频倍速 - 快捷键支持",
"description": "by [@JLoeve](https://github.com/LonelySteve)\n\n\n\n为操作视频倍速提供快捷键支持\n\n- 提高倍速\n- 降低倍速\n- 切换倍速\n\n若添加并启用了记忆倍速组件则还会增加一个快捷键\n\n- 清除倍速记忆\n ",
"fullRelativePath": "../../registry/dist/plugins/video/player/speed.js",
"fullAbsolutePath": "registry/dist/plugins/video/player/speed.js"
}
]

View File

@ -730,6 +730,37 @@ by [@kdxcxs](https://github.com/kdxcxs)
为视频播放器启用双击全屏功能, 请注意不能和 `启用双击控制` 一同使用.
### [扩展倍速](../../registry/dist/components/video/player/extend-speed.js)
`extendVideoSpeed`
**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/video/player/extend-speed.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/video/player/extend-speed.js)
**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/video/player/extend-speed.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/video/player/extend-speed.js)
by [@JLoeve](https://github.com/LonelySteve)
> 扩展视频播放器的倍速菜单项,可用于突破原有播放倍数的上限或下限.
### 🔧 **选项**
- `隐藏滚动条`:如果添加的倍速过多,倍速菜单将出现滚动条,在 Windows 下,若没有安装并启用「细滚动条」组件会显得比较挤,建议开启此选项隐藏滚动条.
### **新增倍速**
开启组件后,在默认情况下,播放器的倍速菜单就会新增 2.5x 和 3.0x 两个倍速选项.
如果需要添加更多倍速,只需将鼠标指针移到菜单顶部的新增图标上,图标将变成一个输入框,根据需要键入新的倍速值,或通过滚轮增减数值,或直接使用推荐的数值,回车确认即可.
新增倍速的范围要求在 0.0625 到 16 之间,数量则不受限制.
**不推荐设置超高倍速(>3.0x**:原生播放器内部没有针对超高倍速进行优化,可能导致音画不同步、播放卡顿、声音嘈杂/消失等一系列问题.
### **删除倍速**
将鼠标指针移到**自定义**的倍速菜单项上,其右侧将会显示一个移除图标,单击即可删除相应的倍速.
### [播放器定位](../../registry/dist/components/video/player/focus.js)
`playerFocus`
@ -759,7 +790,7 @@ by [@FoundTheWOUT](https://github.com/FoundTheWOUT)
**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/video/player/legacy-auto-play.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/video/player/legacy-auto-play.js)
模拟传统的多 P 连播策略: 仅连播视频的分 P 和番剧的多集, 最后 1P 放完禁止连播其他推荐视频.
模拟传统的多 P 连播策略: 仅连播视频的分 P, 最后 1P 放完禁止连播其他推荐视频.
### [强制保留弹幕发送栏](../../registry/dist/components/video/player/preserve-danmaku-input.js)
`preserveDanmakuInput`
@ -779,18 +810,27 @@ by [@FoundTheWOUT](https://github.com/FoundTheWOUT)
by [@JLoeve](https://github.com/LonelySteve)
提高视频播放器的倍速记忆体验,可实现跨页共享倍速,也可以按视频分别记忆倍速.
### [扩展倍速](../../registry/dist/components/video/player/extend-speed.js)
`extendVideoSpeed`
**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/video/player/extend-speed.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/video/player/extend-speed.js)
> 提高视频播放器的倍速记忆体验,可实现跨页共享倍速,也可以按视频分别记忆倍速.
**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/video/player/extend-speed.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/video/player/extend-speed.js)
### 🔧 **选项**
by [@JLoeve](https://github.com/LonelySteve)
- `全局记忆倍速值`:默认情况下,这是跨页共享的倍速值,如果启用「各视频分别记忆」,则作为从未独立记忆倍速视频的初始倍速值.
- `固定全局倍速值`:默认情况下,全局倍速值将随着用户改变视频倍速而改变,打开此选项后,全局记忆倍速值不再受倍速调整的影响.
- `各视频分别记忆`:打开此选项后,将按不同视频分别记忆倍速,对于从未被记忆过倍速的视频,将采用全局记忆倍速值,选项「固定全局倍速值」在此情况下强制生效.
- `弹出还原倍速提示`:打开此选项后,每次成功还原倍速后都会弹出提示.
扩展视频播放器的倍速菜单项,可用于突破原有播放倍数的上限或下限.
### 🌈 **温馨提示**
「扩展倍速」和倍速相关的快捷键插件已分离为单独的组件或插件.
请根据自身需要:
- 前往「组件」页面安装[「扩展倍速」](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/video/player/extend-speed.js)组件
- 前往「插件」页面安装[「视频倍速 - 快捷键支持」](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/plugins/video/player/speed.js)插件.
*如果想要清除当前视频的记忆状态,需要安装「视频倍速 - 快捷键支持」插件.*
### [删除视频弹窗](../../registry/dist/components/video/player/remove-popup.js)
`removePlayerPopup`
@ -981,4 +1021,14 @@ by [@diannaojiang](https://github.com/diannaojiang)
by [@JLoeve](https://github.com/LonelySteve)
为操作视频倍速提供快捷键支持,同时适配「扩展倍速」,联动「记忆倍速」并提供「清除倍速记忆」功能.
为操作视频倍速提供快捷键支持:
- 提高倍速
- 降低倍速
- 切换倍速
若添加并启用了记忆倍速组件,则还会增加一个快捷键:
- 清除倍速记忆

View File

@ -1,6 +1,9 @@
# 发布新的正式版前要做的事
- 更新 tooltip 文案 / i18n
- 更新 features.md / README.md
- 编写 change log
- 更新版本号, 打上 tag
- 更新 donate.md
- 生成文档
- 编译预览版
- 带 tag 推送
- 打开 Tampermonkey, 更新其中的预览版, 测试功能
- 测下 Firefox + Violentmonkey
- 测下 Firefox + Violentmonkey

View File

@ -12,42 +12,50 @@
"type": "tsc -p tsconfig.type-check.json --noEmit"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/core": "7.17.9",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.9.6",
"@babel/preset-typescript": "^7.9.0",
"@types/async-exit-hook": "^2.0.0",
"@types/color": "^3.0.1",
"@types/lodash": "^4.14.172",
"@types/marked": "^1.2.0",
"@types/node": "^17.0.31",
"@types/serve-handler": "^6.1.1",
"@types/sortablejs": "^1.10.7",
"@types/webpack": "^4.41.6",
"@types/webpack-env": "^1.15.1",
"@types/ws": "^8.2.3",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"async-exit-hook": "^2.0.1",
"autoprefixer": "^10.0.1",
"babel-loader": "^8.1.0",
"css-loader": "^5.0.0",
"eslint": "7.11.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-vue": "^7.1.0",
"eslint-plugin-vue": "7.1.0",
"fast-sass-loader": "^2.0.0",
"html-webpack-plugin": "^5.0.0-alpha.7",
"postcss": "^8.1.0",
"postcss-loader": "^4.0.4",
"postcss-preset-env": "^6.7.0",
"postcss-preset-env": "^7.5.0",
"sass": "^1.25.0",
"serve": "^13.0.2",
"serve-handler": "^6.1.3",
"style-loader": "^2.0.0",
"terser": ">=5.3.8 <6",
"terser-webpack-plugin": "^5.0.1",
"to-string-loader": "^1.2.0",
"ts-node": "^10.7.0",
"typescript": "^4.4.4",
"vue-loader": "^15.8.3",
"vue-template-compiler": "^2.6.11",
"webpack": "^5.31.2",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.6.0"
"webpack-cli": "^4.6.0",
"ws": "^8.5.0"
},
"dependencies": {
"@popperjs/core": "^2.6.0",
@ -61,14 +69,6 @@
"vue": "^2.6.11",
"vue-fragment": "^1.5.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/the1812/Bilibili-Evolved.git"
},
"bugs": {
"url": "https://github.com/the1812/Bilibili-Evolved/issues"
},
"homepage": "https://github.com/the1812/Bilibili-Evolved#readme",
"keywords": [
"userscript",
"bilibili",

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/copy-link"]=t():e["feeds/copy-link"]=t()}(self,(function(){return function(){"use strict";var e,t,o={23:function(e){e.exports=coreApis.componentApis.feeds.api}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var f=2&n&&o;"object"==typeof f&&!~e.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((function(e){c[e]=function(){return o[e]}}));return c.default=function(){return o},r.d(i,c),i},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return e}});const e={name:"copyFeedsLink",displayName:"复制动态链接",description:{"zh-CN":"开启后, 可在每条动态的菜单中选择复制链接."},entry:async()=>{const{forEachFeedsCard:e,addMenuItem:t}=await Promise.resolve().then(r.t.bind(r,23,23));e({added:e=>{t(e,{className:"copy-link",text:"复制链接",action:async()=>{await navigator.clipboard.writeText(`https://t.bilibili.com/${e.id}`)}})}})},urlInclude:coreApis.utils.urls.feedsUrls,tags:[componentsTags.feeds,componentsTags.utils],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/copy-link"]=t():e["feeds/copy-link"]=t()}(self,(function(){return function(){"use strict";var e,t,o={23:function(e){e.exports=coreApis.componentApis.feeds.api}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var f=2&n&&o;"object"==typeof f&&!~e.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((function(e){c[e]=function(){return o[e]}}));return c.default=function(){return o},r.d(i,c),i},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return e}});const e={name:"copyFeedsLink",displayName:"复制动态链接",description:{"zh-CN":"开启后, 可在每条动态的菜单中选择复制链接."},entry:async()=>{const{forEachFeedsCard:e,addMenuItem:t}=await Promise.resolve().then(r.t.bind(r,23,23));e({added:e=>{t(e,{className:"copy-link",text:"复制链接",action:async()=>{await navigator.clipboard.writeText(`https://t.bilibili.com/${e.id}`)}})}})},urlInclude:coreApis.utils.urls.feedsUrls,tags:[componentsTags.feeds,componentsTags.utils],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["feeds/disable-details"]=e():t["feeds/disable-details"]=e()}(self,(function(){return function(){var t,e,n={840:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".card[data-did] .content {\n cursor: text;\n}\n.card[data-did] .content .details {\n font-size: 12px;\n opacity: 0.6;\n cursor: pointer;\n display: block;\n}",""]),t.exports=o},274:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".card[data-did] .content .details {\n display: none;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["feeds/disable-details"]=e():t["feeds/disable-details"]=e()}(self,(function(){return function(){var t,e,n={840:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,"[data-module=desc],\n.card[data-did] .content {\n cursor: text;\n}\n[data-module=desc] .details,\n.card[data-did] .content .details {\n color: #222;\n font-size: 12px;\n opacity: 0.6;\n cursor: pointer;\n display: block;\n line-height: 22px;\n}\nbody.dark [data-module=desc] .details,\nbody.dark .card[data-did] .content .details {\n color: #eee;\n}",""]),t.exports=o},274:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".card[data-did] .content .details {\n display: none;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},94:function(t,e,n){var o=n(840);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},377:function(t,e,n){var o=n(274);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},23:function(t){"use strict";t.exports=coreApis.componentApis.feeds.api},163:function(t){"use strict";t.exports=coreApis.style}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return a}});var t=coreApis.utils.urls;let e=!0;const n="disable-feeds-details-style",o=async()=>{const{addImportantStyle:t}=await Promise.resolve().then(r.t.bind(r,163,23)),{default:e}=await Promise.resolve().then(r.t.bind(r,94,23));t(e,n)},a={name:"disableFeedsDetails",displayName:"禁止跳转动态详情",tags:[componentsTags.feeds],urlInclude:t.feedsUrls,description:{"zh-CN":"禁止动态点击后跳转详情页, 方便选择其中的文字."},entry:async()=>{const{addImportantStyle:t}=await Promise.resolve().then(r.t.bind(r,163,23)),{forEachFeedsCard:n}=await Promise.resolve().then(r.t.bind(r,23,23)),{default:i}=await Promise.resolve().then(r.t.bind(r,377,23));t(i,"disable-feeds-details-init-style"),o();n({added:t=>{const{element:n}=t;n.addEventListener("click",(t=>{if(t.ctrlKey||!e)return;const o=dqa(n,".content"),r=t.target;if(r.hasAttribute("click-title"))return;dqa(n,".im-popup").some((t=>t.contains(r)))||o.some((t=>t===r||t.contains(r)))&&t.stopImmediatePropagation()}),{capture:!0});const o=dq(n,".post-content");if(!o)return;if(![".video-container",".bangumi-container",".media-list",".article-container"].some((t=>dq(o,t)))&&!dq(o,".details")&&o.classList.contains("repost")){const t=dq(o,".content");if(!t)return;const e=document.createElement("div");e.classList.add("details"),e.setAttribute("click-title","详情"),e.innerHTML='\n 详情<i class="mdi mdi-chevron-right" click-title></i>\n ',t.insertAdjacentElement("beforeend",e)}}})},unload:()=>{document.getElementById(n)?.remove(),e=!1},reload:()=>{o(),e=!0},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},94:function(t,e,n){var o=n(840);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},377:function(t,e,n){var o=n(274);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},23:function(t){"use strict";t.exports=coreApis.componentApis.feeds.api},163:function(t){"use strict";t.exports=coreApis.style}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return s}});var t=r(23),e=coreApis.utils.urls;let n=!0;const o="disable-feeds-details-style",a=async()=>{const{addImportantStyle:t}=await Promise.resolve().then(r.t.bind(r,163,23)),{default:e}=await Promise.resolve().then(r.t.bind(r,94,23));t(e,o)},s={name:"disableFeedsDetails",displayName:"禁止跳转动态详情",tags:[componentsTags.feeds],urlInclude:e.feedsUrls,description:{"zh-CN":"禁止动态点击后跳转详情页, 方便选择其中的文字."},entry:async()=>{const{addImportantStyle:e}=await Promise.resolve().then(r.t.bind(r,163,23)),{forEachFeedsCard:o}=await Promise.resolve().then(r.t.bind(r,23,23)),{default:i}=await Promise.resolve().then(r.t.bind(r,377,23));e(i,"disable-feeds-details-init-style"),a();o({added:e=>{const{element:o}=e;o.addEventListener("click",(t=>{if(t.ctrlKey||!n)return;const e=dqa(o,'.content, .bili-dyn-content [data-module="desc"] .bili-rich-text'),r=t.target;if(r.hasAttribute("click-title"))return;dqa(o,".im-popup").some((t=>t.contains(r)))||e.some((t=>t===r||t.contains(r)))&&t.stopImmediatePropagation()}),{capture:!0});const r=dq(o,".post-content, .bili-dyn-content");if(!r)return;if(![".video-container",".bangumi-container",".media-list",".article-container"].some((t=>dq(r,t)))&&!dq(r,".details")&&(r.classList.contains("repost")||e.type===t.feedsCardTypes.repost)){const t=dq(r,".content, .bili-dyn-content__orig__desc");if(!t)return;const e=document.createElement("div");e.classList.add("details"),e.setAttribute("click-title","详情"),e.innerHTML='\n 详情<i class="mdi mdi-chevron-right" click-title></i>\n ',t.insertAdjacentElement("beforeend",e)}}})},unload:()=>{document.getElementById(o)?.remove(),n=!1},reload:()=>{a(),n=!0},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/extend-live"]=t():e["feeds/extend-live"]=t()}(self,(function(){return function(){var e,t,n={67:function(e,t,n){var i=n(645)((function(e){return e[1]}));i.push([e.id,".live-up-list {\n max-height: calc(100vh - 315px);\n}\nbody.enable-feeds-filter .live-up-list {\n max-height: calc(100vh - 370px);\n}\nbody.feeds-filter-side-block-profile .live-up-list {\n max-height: calc(100vh - 180px);\n}\n\n.live-up-list {\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n}\n.live-up-list::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.live-up-list .live-detail[data-live-title] {\n color: black;\n}\nbody.dark .live-up-list .live-detail[data-live-title] {\n color: #eee;\n}\n.live-up-list .live-detail[data-live-title] .up-name {\n font-size: 13px !important;\n opacity: 0.6;\n}\n.live-up-list .live-detail[data-live-title]::before {\n content: attr(data-live-title);\n color: black;\n line-height: 1.5;\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\nbody.dark .live-up-list .live-detail[data-live-title]::before {\n color: #eee;\n}",""]),e.exports=i},645:function(e){"use strict";
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/extend-live"]=t():e["feeds/extend-live"]=t()}(self,(function(){return function(){var e,t,n={67:function(e,t,n){var i=n(645)((function(e){return e[1]}));i.push([e.id,".live-up-list {\n max-height: calc(100vh - 315px);\n}\nbody.enable-feeds-filter .live-up-list {\n max-height: calc(100vh - 370px);\n}\nbody.feeds-filter-side-block-profile .live-up-list {\n max-height: calc(100vh - 180px);\n}\n\n.bili-dyn-live-users {\n display: flex !important;\n flex-direction: column !important;\n}\n\n.bili-dyn-live-users__body {\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n margin: 0px -16px -16px -16px;\n padding: 0px 16px 4px 16px;\n max-height: calc(100vh - 318px);\n}\n.bili-dyn-live-users__body::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\nbody.enable-feeds-filter .bili-dyn-live-users__body {\n max-height: calc(100vh - 374px);\n}\nbody.feeds-filter-side-block-profile .bili-dyn-live-users__body {\n max-height: calc(100vh - 178px);\n}\n\n.live-up-list {\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n}\n.live-up-list::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.live-up-list .live-detail[data-live-title] {\n color: black;\n}\nbody.dark .live-up-list .live-detail[data-live-title] {\n color: #eee;\n}\n.live-up-list .live-detail[data-live-title] .up-name {\n font-size: 13px !important;\n opacity: 0.6;\n}\n.live-up-list .live-detail[data-live-title]::before {\n content: attr(data-live-title);\n color: black;\n line-height: 1.5;\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\nbody.dark .live-up-list .live-detail[data-live-title]::before {\n color: #eee;\n}",""]),e.exports=i},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(e,n,i){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){
// eslint-disable-next-line prefer-destructuring
var l=this[r][0];null!=l&&(o[l]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);i&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},134:function(e,t,n){var i=n(67);i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},663:function(e){"use strict";e.exports=coreApis.ajax},30:function(e){"use strict";e.exports=coreApis.componentApis.feeds.disableProfilePopup},569:function(e){"use strict";e.exports=coreApis.spinQuery}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var l={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){l[e]=function(){return n[e]}}));return l.default=function(){return n},o.d(r,l),r},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";o.d(r,{component:function(){return e}});const e={name:"extendFeedsLive",displayName:"直播信息扩充",description:{"zh-CN":"在动态的`正在直播`中, 为每一个直播间加上标题, 并且能够显示超过10个的直播间."},entry:(0,coreApis.componentApis.styledComponent.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,134,23))),(async()=>{const{select:e}=await Promise.resolve().then(o.t.bind(o,569,23)),t=await e(".live-up-list");if(null===t)return;const{getPages:n,getJsonWithCredentials:i}=await Promise.resolve().then(o.t.bind(o,663,23)),r=await n({api:e=>i(`https://api.live.bilibili.com/relation/v1/feed/feed_list?page=${e}&pagesize=24`),getList:e=>lodash.get(e,"data.list",[]),getTotal:e=>lodash.get(e,"data.results",0)}),l=dqa(t,".up-name").map((e=>e.innerText.trim())),a=r.filter((e=>l.includes(e.uname))),s=r.filter((e=>!l.includes(e.uname))),c=t.children[0];s.forEach((e=>{if(dqa(t,".up-name").some((t=>t.innerText.trim()===e.uname)))return;const n=c.cloneNode(!0);dqa(n,"a[href]").forEach((t=>t.setAttribute("href",`https://live.bilibili.com/${e.roomid}`)));dq(n,".live-up-img").style.backgroundImage=`url(${e.face})`;const i=dq(n,".live-name");i.innerHTML=e.title,i.title=e.title;const o=dq(n,".up-name");o.innerHTML=e.uname,o.title=e.uname,t.insertAdjacentElement("beforeend",n)}));const{disableProfilePopup:u}=await Promise.resolve().then(o.t.bind(o,30,23));u(),console.log(a,s)})),tags:[componentsTags.feeds,componentsTags.live],urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),r=r.component}()}));
var l=this[r][0];null!=l&&(o[l]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);i&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},134:function(e,t,n){var i=n(67);i&&i.__esModule&&(i=i.default),e.exports="string"==typeof i?i:i.toString()},663:function(e){"use strict";e.exports=coreApis.ajax},30:function(e){"use strict";e.exports=coreApis.componentApis.feeds.disableProfilePopup},569:function(e){"use strict";e.exports=coreApis.spinQuery}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e](r,r.exports,o),r.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var l={};e=e||[null,t({}),t([]),t(t)];for(var a=2&i&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){l[e]=function(){return n[e]}}));return l.default=function(){return n},o.d(r,l),r},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";o.d(r,{component:function(){return e}});const e={name:"extendFeedsLive",displayName:"直播信息扩充",description:{"zh-CN":"在动态的`正在直播`中, 为每一个直播间加上标题, 并且能够显示超过10个的直播间."},entry:(0,coreApis.componentApis.styledComponent.styledComponentEntry)((()=>Promise.resolve().then(o.t.bind(o,134,23))),(async()=>{const{select:e}=await Promise.resolve().then(o.t.bind(o,569,23)),t=await e(".live-up-list, .bili-dyn-live-users__body");if(null===t)return;const{getPages:n,getJsonWithCredentials:i}=await Promise.resolve().then(o.t.bind(o,663,23)),r=await n({api:e=>i(`https://api.live.bilibili.com/relation/v1/feed/feed_list?page=${e}&pagesize=24`),getList:e=>lodash.get(e,"data.list",[]),getTotal:e=>lodash.get(e,"data.results",0)}),l=".up-name, .bili-dyn-live-users__item__uname",a=dqa(t,l).map((e=>e.innerText.trim())),s=r.filter((e=>a.includes(e.uname))),c=r.filter((e=>!a.includes(e.uname))),d=t.children[0];c.forEach((e=>{if(dqa(t,l).some((t=>t.innerText.trim()===e.uname)))return;const n=(()=>{const t=d.cloneNode(!0),n=`https://live.bilibili.com/${e.roomid}`;dqa(t,"a[href]").forEach((e=>e.setAttribute("href",n))),t.matches(".bili-dyn-live-users__item")&&t.addEventListener("click",(()=>{window.open(n,"_blank")}));dq(t,".live-up-img, .bili-dyn-live-users__item__face .bili-awesome-img").style.backgroundImage=`url(${e.face})`;const i=dq(t,".live-name, .bili-dyn-live-users__item__title");i.innerHTML=e.title,i.title=e.title;const o=dq(t,l);return o.innerHTML=e.uname,o.title=e.uname,t})();t.insertAdjacentElement("beforeend",n)}));const{disableProfilePopup:u}=await Promise.resolve().then(o.t.bind(o,30,23));u(),console.log(s,c)})),tags:[componentsTags.feeds,componentsTags.live],urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),r=r.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/fixed-sidebars"]=t():n["feeds/fixed-sidebars"]=t()}(self,(function(){return function(){var n,t,e={178:function(n,t,e){var o=e(645)((function(n){return n[1]}));o.push([n.id,".international-header {\n position: sticky !important;\n top: 0 !important;\n}\n\n.van-popper-avatar,\n.van-popper-vip,\n.van-popper-favorite,\n.van-popper-history,\n.van-popper-upload,\n.popover-channe,\n.popover-game,\n.popover-live,\n.custom-navbar {\n position: fixed !important;\n}\n\n.sticky-bar {\n display: none !important;\n}\n\n.left-panel,\n.right-panel {\n position: fixed !important;\n}\n\n.home-container {\n --left-width: 244px;\n --center-width: 632px;\n}\n@media screen and (min-width: 1921px) {\n .home-container {\n --left-width: 12.71vw;\n --center-width: 32.92vw;\n }\n}\n@media screen and (min-width: 2497px) {\n .home-container {\n --left-width: 317px;\n --center-width: 822px;\n }\n}\n\n.center-panel {\n margin-left: calc(var(--left-width) + 8px) !important;\n}\n\n.right-panel {\n margin-left: calc(var(--left-width) + 16px + var(--center-width)) !important;\n}\n\n.live-panel .live-up-list {\n overflow: auto;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n}\n.live-panel .live-up-list::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n\n.live-up-list {\n max-height: calc(100vh - 315px);\n}\nbody.enable-feeds-filter .live-up-list {\n max-height: calc(100vh - 370px);\n}\nbody.feeds-filter-side-block-profile .live-up-list {\n max-height: calc(100vh - 180px);\n}\n\n.adaptive-scroll {\n min-height: unset !important;\n}\n.adaptive-scroll .scroll-content {\n position: static !important;\n}",""]),n.exports=o},645:function(n){"use strict";
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["feeds/fixed-sidebars"]=e():n["feeds/fixed-sidebars"]=e()}(self,(function(){return function(){var n,e,t={178:function(n,e,t){var i=t(645)((function(n){return n[1]}));i.push([n.id,"#app {\n z-index: 0;\n}\n\n.z-top-container,\n.international-header {\n position: sticky !important;\n top: 0 !important;\n z-index: 1;\n}\n\n.van-popper-avatar,\n.van-popper-vip,\n.van-popper-favorite,\n.van-popper-history,\n.van-popper-upload,\n.popover-channe,\n.popover-game,\n.popover-live,\n.custom-navbar {\n position: fixed !important;\n}\n\n.sticky-bar {\n display: none !important;\n}\n\n.left-panel,\n.right-panel {\n position: fixed !important;\n}\n\n.home-container {\n --left-width: 244px;\n --center-width: 632px;\n}\n@media screen and (min-width: 1921px) {\n .home-container {\n --left-width: 12.71vw;\n --center-width: 32.92vw;\n }\n}\n@media screen and (min-width: 2497px) {\n .home-container {\n --left-width: 317px;\n --center-width: 822px;\n }\n}\n\n.center-panel {\n margin-left: calc(var(--left-width) + 8px) !important;\n}\n\n.right-panel {\n margin-left: calc(var(--left-width) + 16px + var(--center-width)) !important;\n}\n\n.live-panel .live-up-list {\n overflow: auto;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n}\n.live-panel .live-up-list::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n\n.live-up-list {\n max-height: calc(100vh - 315px);\n}\nbody.enable-feeds-filter .live-up-list {\n max-height: calc(100vh - 370px);\n}\nbody.feeds-filter-side-block-profile .live-up-list {\n max-height: calc(100vh - 180px);\n}\n\n.bili-dyn-live-users {\n display: flex !important;\n flex-direction: column !important;\n}\n\n.bili-dyn-live-users__body {\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n margin: 0px -16px -16px -16px;\n padding: 0px 16px 4px 16px;\n max-height: calc(100vh - 318px);\n}\n.bili-dyn-live-users__body::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\nbody.enable-feeds-filter .bili-dyn-live-users__body {\n max-height: calc(100vh - 374px);\n}\nbody.feeds-filter-side-block-profile .bili-dyn-live-users__body {\n max-height: calc(100vh - 178px);\n}\n\n.adaptive-scroll {\n min-height: unset !important;\n}\n.adaptive-scroll .scroll-content {\n position: static !important;\n}\n\n.bili-dyn-home--member {\n --center-width: 632px;\n --gap: 8px;\n --fixed-offset: calc(var(--center-width) + (100vw - var(--center-width)) / 2 + var(--gap));\n}\n.bili-dyn-home--member section.sticky {\n position: static !important;\n}\n.bili-dyn-home--member aside {\n position: fixed !important;\n}\n.bili-dyn-home--member aside.left {\n right: var(--fixed-offset);\n}\n.bili-dyn-home--member aside.right {\n left: var(--fixed-offset);\n}\n@media screen and (min-width: 1921px) {\n .bili-dyn-home--member {\n --center-width: 32.92vw;\n }\n}\n@media screen and (min-width: 2497px) {\n .bili-dyn-home--member {\n --center-width: 822px;\n }\n}",""]),n.exports=i},645:function(n){"use strict";
// eslint-disable-next-line func-names
n.exports=function(n){var t=[];return t.toString=function(){return this.map((function(t){var e=n(t);return t[2]?"@media ".concat(t[2]," {").concat(e,"}"):e})).join("")},
n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t=n(e);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},
// eslint-disable-next-line func-names
t.i=function(n,e,o){"string"==typeof n&&(
e.i=function(n,t,i){"string"==typeof n&&(
// eslint-disable-next-line no-param-reassign
n=[[null,n,""]]);var i={};if(o)for(var r=0;r<this.length;r++){
n=[[null,n,""]]);var o={};if(i)for(var r=0;r<this.length;r++){
// eslint-disable-next-line prefer-destructuring
var a=this[r][0];null!=a&&(i[a]=!0)}for(var p=0;p<n.length;p++){var c=[].concat(n[p]);o&&i[c[0]]||(e&&(c[2]?c[2]="".concat(e," and ").concat(c[2]):c[2]=e),t.push(c))}},t}},871:function(n,t,e){var o=e(178);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()},30:function(n){"use strict";n.exports=coreApis.componentApis.feeds.disableProfilePopup}},o={};function i(n){var t=o[n];if(void 0!==t)return t.exports;var r=o[n]={id:n,exports:{}};return e[n](r,r.exports,i),r.exports}t=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},i.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);i.r(r);var a={};n=n||[null,t({}),t([]),t(t)];for(var p=2&o&&e;"object"==typeof p&&!~n.indexOf(p);p=t(p))Object.getOwnPropertyNames(p).forEach((function(n){a[n]=function(){return e[n]}}));return a.default=function(){return e},i.d(r,a),r},i.d=function(n,t){for(var e in t)i.o(t,e)&&!i.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return function(){"use strict";i.d(r,{component:function(){return n}});const n={name:"fixedFeedsSidebars",instantStyles:[{name:"fixed-sidebars-style",style:()=>Promise.resolve().then(i.t.bind(i,871,23)),important:!0}],displayName:"强制固定动态侧栏",description:{"zh-CN":"强制固定动态主页的顶栏和所有侧栏."},tags:[componentsTags.feeds],entry:async()=>{const{disableProfilePopup:n}=await Promise.resolve().then(i.t.bind(i,30,23));n()},urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),r=r.component}()}));
var a=this[r][0];null!=a&&(o[a]=!0)}for(var p=0;p<n.length;p++){var l=[].concat(n[p]);i&&o[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),e.push(l))}},e}},871:function(n,e,t){var i=t(178);i&&i.__esModule&&(i=i.default),n.exports="string"==typeof i?i:i.toString()},30:function(n){"use strict";n.exports=coreApis.componentApis.feeds.disableProfilePopup}},i={};function o(n){var e=i[n];if(void 0!==e)return e.exports;var r=i[n]={id:n,exports:{}};return t[n](r,r.exports,o),r.exports}e=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},o.t=function(t,i){if(1&i&&(t=this(t)),8&i)return t;if("object"==typeof t&&t){if(4&i&&t.__esModule)return t;if(16&i&&"function"==typeof t.then)return t}var r=Object.create(null);o.r(r);var a={};n=n||[null,e({}),e([]),e(e)];for(var p=2&i&&t;"object"==typeof p&&!~n.indexOf(p);p=e(p))Object.getOwnPropertyNames(p).forEach((function(n){a[n]=function(){return t[n]}}));return a.default=function(){return t},o.d(r,a),r},o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},o.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var r={};return function(){"use strict";o.d(r,{component:function(){return n}});const n={name:"fixedFeedsSidebars",instantStyles:[{name:"fixed-sidebars-style",style:()=>Promise.resolve().then(o.t.bind(o,871,23)),important:!0}],displayName:"强制固定动态侧栏",description:{"zh-CN":"强制固定动态主页的顶栏和所有侧栏."},tags:[componentsTags.feeds],entry:async()=>{const{disableProfilePopup:n}=await Promise.resolve().then(o.t.bind(o,30,23));n()},urlInclude:[/^https:\/\/t\.bilibili\.com\/$/],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),r=r.component}()}));

View File

@ -1,4 +1,4 @@
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["feeds/fold-comments"]=n():e["feeds/fold-comments"]=n()}(self,(function(){return function(){var e,n,t={244:function(e,n,t){var o=t(645)((function(e){return e[1]}));o.push([e.id,".panel-area .bb-comment .fold-comment {\n position: sticky;\n bottom: 0;\n height: 40px;\n width: calc(100% + 48px);\n font-size: 14px;\n transform: translateX(-24px);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n color: #99a2aa;\n cursor: pointer;\n transition: all 0.2s ease-out;\n z-index: 110;\n border-radius: 4px;\n}\n.panel-area .bb-comment .fold-comment:hover {\n color: black;\n}\nbody.dark .panel-area .bb-comment .fold-comment {\n background-color: #444;\n color: #eee;\n}\nbody.dark .panel-area .bb-comment .fold-comment:hover {\n color: var(--theme-color);\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["feeds/fold-comments"]=n():e["feeds/fold-comments"]=n()}(self,(function(){return function(){var e,n,t={244:function(e,n,t){var o=t(645)((function(e){return e[1]}));o.push([e.id,".bb-comment .fold-comment {\n position: sticky;\n bottom: 0;\n height: 40px;\n width: calc(100% + 48px);\n font-size: 14px;\n transform: translateX(-24px);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: white;\n color: #99a2aa;\n cursor: pointer;\n transition: all 0.2s ease-out;\n z-index: 110;\n border-radius: 4px;\n}\n.bb-comment .fold-comment:hover {\n color: black;\n}\nbody.dark .bb-comment .fold-comment {\n background-color: #444;\n color: #eee;\n}\nbody.dark .bb-comment .fold-comment:hover {\n color: var(--theme-color);\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ n.i=function(e,t,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(o)for(var c=0;c<this.length;c++){
// eslint-disable-next-line prefer-destructuring
var i=this[c][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);o&&r[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},895:function(e,n,t){var o=t(244);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},23:function(e){"use strict";e.exports=coreApis.componentApis.feeds.api},156:function(e){"use strict";e.exports=coreApis.observer}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var c=o[e]={id:e,exports:{}};return t[e](c,c.exports,r),c.exports}n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var c=Object.create(null);r.r(c);var i={};e=e||[null,n({}),n([]),n(n)];for(var a=2&o&&t;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return t[e]}}));return i.default=function(){return t},r.d(c,i),c},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){"use strict";r.d(c,{component:function(){return n}});var e=coreApis.componentApis.styledComponent;const n={name:"foldComments",displayName:"快速收起评论",description:{"zh-CN":"动态里查看评论区时, 在底部添加一个`收起评论`按钮, 这样就不用再回到上面收起了."},urlInclude:coreApis.utils.urls.feedsUrlsWithoutDetail,tags:[componentsTags.feeds],entry:(0,e.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,895,23))),(async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,23,23)),{childList:n}=await Promise.resolve().then(r.t.bind(r,156,23));e({added:e=>(e=>{const t=n=>{const t=document.createElement("div");t.classList.add("fold-comment"),t.innerHTML="收起评论";const o=n.querySelector(".bb-comment");null===o.querySelector(".fold-comment")&&(null!==o?(t.addEventListener("click",(()=>{const n=e.querySelector(".button-bar").children[1];null!==n&&(n.click(),e.scrollIntoView())})),o.insertAdjacentElement("beforeend",t)):console.error("未找到评论区"))},o=e.querySelector(".panel-area");if(null===o&&console.log(e),0===o.childElementCount){const[e]=n(o,(n=>{n.length>0&&(t(o),e.disconnect())}))}else t(o)})(e.element)})})),commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),c=c.component}()}));
var i=this[c][0];null!=i&&(r[i]=!0)}for(var s=0;s<e.length;s++){var a=[].concat(e[s]);o&&r[a[0]]||(t&&(a[2]?a[2]="".concat(t," and ").concat(a[2]):a[2]=t),n.push(a))}},n}},895:function(e,n,t){var o=t(244);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},23:function(e){"use strict";e.exports=coreApis.componentApis.feeds.api},156:function(e){"use strict";e.exports=coreApis.observer}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var c=o[e]={id:e,exports:{}};return t[e](c,c.exports,r),c.exports}n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var c=Object.create(null);r.r(c);var i={};e=e||[null,n({}),n([]),n(n)];for(var s=2&o&&t;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((function(e){i[e]=function(){return t[e]}}));return i.default=function(){return t},r.d(c,i),c},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){"use strict";r.d(c,{component:function(){return s}});var e=coreApis.componentApis.styledComponent,n=coreApis.utils.urls,t=r(23),o=coreApis.spinQuery,i=r(156);const s={name:"foldComments",displayName:"快速收起评论",description:{"zh-CN":"动态里查看评论区时, 在底部添加一个`收起评论`按钮, 这样就不用再回到上面收起了."},urlInclude:n.feedsUrlsWithoutDetail,tags:[componentsTags.feeds],entry:(0,e.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,895,23))),(async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,23,23)),{childList:n}=await Promise.resolve().then(r.t.bind(r,156,23)),c=".bb-comment";e({added:e=>(e=>{const r=async(n,t)=>{const r=await(0,o.select)((()=>dq(n,c)));if(null!==r.querySelector(".fold-comment"))return;if(null===r)return void console.error("未找到评论区");const i=document.createElement("div");i.classList.add("fold-comment"),i.innerHTML="收起评论",i.addEventListener("click",(()=>{t(),e.scrollIntoView()})),r.insertAdjacentElement("beforeend",i)};if("v2"!==t.feedsCardsManager.managerType)if("v1"!==t.feedsCardsManager.managerType)console.warn("unrecognized card type",e);else{const t=e.querySelector(".panel-area");if(null===t)return void console.warn("panelArea not found",e);const o=()=>{e.querySelector(".button-bar").children[1]?.click()};if(0===t.childElementCount){const[e]=n(t,(n=>{n.length>0&&(r(t,o),e.disconnect())}))}else r(t,o)}else{const n=dq(e,c),t=()=>{dq(e,".bili-dyn-action.comment")?.click()};if(n)r(n,t);else{const[n]=(0,i.childListSubtree)(e,(()=>{dq(e,c)&&(r(e,t),n.disconnect())}))}}})(e.element)})})),commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),c=c.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["feeds/full-content"]=n():t["feeds/full-content"]=n()}(self,(function(){return function(){var t,n,e={521:function(t,n,e){var o=e(645)((function(t){return t[1]}));o.push([t.id,".card .main-content .expand-btn,\n.card .main-content .content-ellipsis {\n display: none !important;\n}\n.card .main-content .content-full {\n display: block !important;\n height: auto !important;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["feeds/full-content"]=n():t["feeds/full-content"]=n()}(self,(function(){return function(){var t,n,e={521:function(t,n,e){var o=e(645)((function(t){return t[1]}));o.push([t.id,".bili-dyn-content .bili-rich-text__action,\n.bili-dyn-content .expand-btn,\n.bili-dyn-content .content-ellipsis,\n.card .main-content .bili-rich-text__action,\n.card .main-content .expand-btn,\n.card .main-content .content-ellipsis {\n display: none !important;\n}\n.bili-dyn-content .bili-rich-text__content,\n.bili-dyn-content .content-full,\n.card .main-content .bili-rich-text__content,\n.card .main-content .content-full {\n -webkit-line-clamp: unset !important;\n display: block !important;\n height: auto !important;\n max-height: unset !important;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=t(n);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ n.i=function(t,e,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<t.length;u++){var f=[].concat(t[u]);o&&r[f[0]]||(e&&(f[2]?f[2]="".concat(e," and ").concat(f[2]):f[2]=e),n.push(f))}},n}},223:function(t,n,e){var o=e(521);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={id:t,exports:{}};return e[t](i,i.exports,r),i.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var i=Object.create(null);r.r(i);var c={};t=t||[null,n({}),n([]),n(n)];for(var u=2&o&&e;"object"==typeof u&&!~t.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach((function(t){c[t]=function(){return e[t]}}));return c.default=function(){return e},r.d(i,c),i},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return e}});var t=coreApis.componentApis.styledComponent,n=coreApis.utils.urls;const e={...(0,t.toggleStyle)("fullFeedsContent",(()=>Promise.resolve().then(r.t.bind(r,223,23)))),displayName:"展开动态内容",description:{"zh-CN":"不管内容多长, 总是完全展开动态的内容."},tags:[componentsTags.style,componentsTags.feeds],urlInclude:n.feedsUrlsWithoutDetail,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<t.length;u++){var a=[].concat(t[u]);o&&r[a[0]]||(e&&(a[2]?a[2]="".concat(e," and ").concat(a[2]):a[2]=e),n.push(a))}},n}},223:function(t,n,e){var o=e(521);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var i=o[t]={id:t,exports:{}};return e[t](i,i.exports,r),i.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var i=Object.create(null);r.r(i);var c={};t=t||[null,n({}),n([]),n(n)];for(var u=2&o&&e;"object"==typeof u&&!~t.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach((function(t){c[t]=function(){return e[t]}}));return c.default=function(){return e},r.d(i,c),i},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return e}});var t=coreApis.componentApis.styledComponent,n=coreApis.utils.urls;const e={...(0,t.toggleStyle)("fullFeedsContent",(()=>Promise.resolve().then(r.t.bind(r,223,23)))),displayName:"展开动态内容",description:{"zh-CN":"不管内容多长, 总是完全展开动态的内容."},tags:[componentsTags.style,componentsTags.feeds],urlInclude:n.feedsUrlsWithoutDetail,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var f=this[i][0];null!=f&&(r[f]=!0)}for(var u=0;u<t.length;u++){var c=[].concat(t[u]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},856:function(t,e,n){var o=n(741);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var f={};t=t||[null,e({}),e([]),e(e)];for(var u=2&o&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){f[t]=function(){return n[t]}}));return f.default=function(){return n},r.d(i,f),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});const t={...(0,coreApis.componentApis.styledComponent.toggleStyle)("fullFeedsTitle",(()=>Promise.resolve().then(r.t.bind(r,856,23)))),displayName:"展开动态标题",description:{"zh-CN":"在顶栏的视频动态中, 无论标题多长总是完全展开."},tags:[componentsTags.feeds,componentsTags.style],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<t.length;u++){var f=[].concat(t[u]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},856:function(t,e,n){var o=n(741);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};t=t||[null,e({}),e([]),e(e)];for(var u=2&o&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){c[t]=function(){return n[t]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});const t={...(0,coreApis.componentApis.styledComponent.toggleStyle)("fullFeedsTitle",(()=>Promise.resolve().then(r.t.bind(r,856,23)))),displayName:"展开动态标题",description:{"zh-CN":"在顶栏的视频动态中, 无论标题多长总是完全展开."},tags:[componentsTags.feeds,componentsTags.style],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/unfold"]=t():e["feeds/unfold"]=t()}(self,(function(){return function(){"use strict";var e,t,n={23:function(e){e.exports=coreApis.componentApis.feeds.api}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var f=o[e]={exports:{}};return n[e](f,f.exports,r),f.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var f=Object.create(null);r.r(f);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},r.d(f,i),f},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return function(){r.d(f,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"unfoldFeeds",displayName:"动态反折叠",tags:[componentsTags.feeds],description:{"zh-CN":"\n自动展开被折叠的动态.\n\n动态被折叠可能是因为:\n- 短时间内大量更新作品\n- 多人转发同一个作品\n- 被审核折叠\n"},urlInclude:e.feedsUrlsWithoutDetail,entry:async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,23,23));e({added:e=>{dq(e.element,".fold-hoverable")?.click()}})},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),f=f.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["feeds/unfold"]=t():e["feeds/unfold"]=t()}(self,(function(){return function(){"use strict";var e,t,n={23:function(e){e.exports=coreApis.componentApis.feeds.api}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var f=o[e]={exports:{}};return n[e](f,f.exports,r),f.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var f=Object.create(null);r.r(f);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},r.d(f,i),f},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return function(){r.d(f,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"unfoldFeeds",displayName:"动态反折叠",tags:[componentsTags.feeds],description:{"zh-CN":"\n自动展开被折叠的动态.\n\n动态被折叠可能是因为:\n- 短时间内大量更新作品\n- 多人转发同一个作品\n- 被审核折叠\n"},urlInclude:e.feedsUrlsWithoutDetail,entry:async()=>{const{forEachFeedsCard:e}=await Promise.resolve().then(r.t.bind(r,23,23));e({added:e=>{dq(e.element,".fold-hoverable, .bili-dyn-item-fold")?.click()}})},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),f=f.component}()}));

View File

@ -1 +0,0 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/auto-draw"]=t():e["live/auto-draw"]=t()}(self,(function(){return function(){"use strict";var e,t,n={156:function(e){e.exports=coreApis.observer},569:function(e){e.exports=coreApis.spinQuery}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"liveAutoDraw",displayName:"直播间自动抽奖",description:{"zh-CN":"在当前直播间有抽奖活动时, 自动点击抽奖按钮. 注意只适用于少量抽奖, 那种99+限量抽奖可能跟不上其他人的手速("},tags:[componentsTags.live],entry:async()=>{const{sq:e}=await Promise.resolve().then(r.t.bind(r,569,23)),{childListSubtree:t,attributes:n}=await Promise.resolve().then(r.t.bind(r,156,23)),o=await e((()=>dq(".chat-popups-section")),(e=>null!==e&&null===e.querySelector("chat-draw-area")));o?t(o,(()=>{console.log("draw button = ",dq(".chat-popups-section .draw>span:nth-child(3)"));const e=dq(".chat-popups-section .draw>span:nth-child(3)");if(null===e){const e=dq(".chat-popups-section .function-bar>span:nth-child(3)");if(null!==e){const[t]=n(e,(()=>{"none"!==e.style.display&&(t.disconnect(),e.click())}))}}null!==e&&e.click()})):console.warn("[自动领奖] 未能找到弹窗容器")},urlInclude:e.liveUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["live/download-records"]=o():e["live/download-records"]=o()}(self,(function(){return function(){"use strict";var e={420:function(e,o,t){t.r(o),t.d(o,{default:function(){return l}});var n=function(){var e=this,o=e.$createElement;return(e._self._c||o)("DefaultWidget",{staticClass:"download-live-records",attrs:{disabled:e.disabled,name:"下载录像",icon:"mdi-download"},on:{click:function(o){return e.download()}}})};n._withStripped=!0;var r=coreApis.ui,i=coreApis.ajax,a=coreApis.toast,s=coreApis.utils.log;var d=function(e,o,t,n,r,i,a,s){var d,l="function"==typeof e?e.options:e;if(o&&(l.render=o,l.staticRenderFns=t,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=d):r&&(d=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,o){return d.call(o),c(e,o)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,d):[d]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:r.DefaultWidget},data:()=>({disabled:!1}),methods:{async download(){try{this.disabled=!0;const e=document.URL.replace(window.location.search,"").match(/^https:\/\/live\.bilibili\.com\/record\/(.+)/);if(!e)return void(0,s.logError)(new Error(`获取录像ID失败: ${document.URL}`));const o=e[1],t=await(0,i.getJson)(`https://api.live.bilibili.com/xlive/web-room/v1/record/getLiveRecordUrl?rid=${o}&platform=html5`);if(0!==t.code)return void(0,s.logError)(new Error(`获取录像链接失败: ${t.message}`));const n=t.data.list.map((e=>e.url));a.Toast.success(n.map((e=>`<a class="download-link" target="_blank" href="${e}">${e}</a>`)).join("\n"),"下载录像")}finally{this.disabled=!1}}}}),n,[],!1,null,null,null);d.options.__file="registry/lib/components/live/download-records/DownloadRecords.vue";var l=d.exports}},o={};function t(n){var r=o[n];if(void 0!==r)return r.exports;var i=o[n]={exports:{}};return e[n](i,i.exports,t),i.exports}t.d=function(e,o){for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){t.d(n,{component:function(){return e}});const e={name:"downloadLiveRecords",displayName:"直播录像下载",description:{"zh-CN":"在直播录像页面 `live.bilibili.com/record/` 中添加下载支持."},tags:[componentsTags.live],entry:none,widget:{component:()=>Promise.resolve().then(t.bind(t,420)).then((e=>e.default))},urlInclude:[/^https:\/\/live\.bilibili\.com\/record\/(.+)/],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),n=n.component}()}));
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["live/download-records"]=o():e["live/download-records"]=o()}(self,(function(){return function(){"use strict";var e={38:function(e,o,t){t.r(o),t.d(o,{default:function(){return l}});var n=function(){var e=this,o=e.$createElement;return(e._self._c||o)("DefaultWidget",{staticClass:"download-live-records",attrs:{disabled:e.disabled,name:"下载录像",icon:"mdi-download"},on:{click:function(o){return e.download()}}})};n._withStripped=!0;var r=coreApis.ui,i=coreApis.ajax,s=coreApis.toast,a=coreApis.utils.log;var d=function(e,o,t,n,r,i,s,a){var d,l="function"==typeof e?e.options:e;if(o&&(l.render=o,l.staticRenderFns=t,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=d):r&&(d=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,o){return d.call(o),c(e,o)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,d):[d]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:r.DefaultWidget},data:()=>({disabled:!1}),methods:{async download(){try{this.disabled=!0;const e=document.URL.replace(window.location.search,"").match(/^https:\/\/live\.bilibili\.com\/record\/(.+)/);if(!e)return void(0,a.logError)(new Error(`获取录像ID失败: ${document.URL}`));const o=e[1],t=await(0,i.getJson)(`https://api.live.bilibili.com/xlive/web-room/v1/record/getLiveRecordUrl?rid=${o}&platform=html5`);if(0!==t.code)return void(0,a.logError)(new Error(`获取录像链接失败: ${t.message}`));const n=t.data.list.map((e=>e.url));s.Toast.success(n.map((e=>`<a class="download-link" target="_blank" href="${e}">${e}</a>`)).join("\n"),"下载录像")}finally{this.disabled=!1}}}}),n,[],!1,null,null,null);d.options.__file="registry/lib/components/live/download-records/DownloadRecords.vue";var l=d.exports}},o={};function t(n){var r=o[n];if(void 0!==r)return r.exports;var i=o[n]={exports:{}};return e[n](i,i.exports,t),i.exports}t.d=function(e,o){for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){t.d(n,{component:function(){return e}});const e={name:"downloadLiveRecords",displayName:"直播录像下载",description:{"zh-CN":"在直播录像页面 `live.bilibili.com/record/` 中添加下载支持."},tags:[componentsTags.live],entry:none,widget:{component:()=>Promise.resolve().then(t.bind(t,38)).then((e=>e.default))},urlInclude:[/^https:\/\/live\.bilibili\.com\/record\/(.+)/],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),n=n.component}()}));

View File

@ -1,4 +1,4 @@
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/gift-box"]=t():n["live/gift-box"]=t()}(self,(function(){return function(){var n={894:function(n,t,e){var r=e(645)((function(n){return n[1]}));r.push([n.id,".full-win-gift-btn-wrapper.full-win-gift-btn-wrapper {\n position: relative;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap {\n right: -28px;\n bottom: calc(100% + 3px);\n color: #666;\n font-size: 12px;\n line-height: 1.4;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap .text {\n margin: auto;\n padding: auto;\n color: inherit;\n cursor: inherit;\n line-height: inherit;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap .popup::before, .full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap .popup::after {\n left: auto;\n right: calc(1em + 33px);\n transform: translateX(50%);\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package {\n margin: auto;\n width: auto;\n height: auto;\n color: inherit;\n fill: inherit;\n background: inherit !important;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package .bag-icon {\n display: none;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package span {\n font-size: inherit;\n line-height: 36px;\n padding: 0 6px;\n color: rgba(255, 255, 255, 0.9);\n cursor: pointer;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package span:hover {\n color: #fff;\n}",""]),n.exports=r},645:function(n){"use strict";
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/gift-box"]=t():n["live/gift-box"]=t()}(self,(function(){return function(){var n={481:function(n,t,e){var r=e(645)((function(n){return n[1]}));r.push([n.id,".full-win-gift-btn-wrapper.full-win-gift-btn-wrapper {\n position: relative;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap {\n right: -28px;\n bottom: calc(100% + 3px);\n color: #666;\n font-size: 12px;\n line-height: 1.4;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap .text {\n margin: auto;\n padding: auto;\n color: inherit;\n cursor: inherit;\n line-height: inherit;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap .popup::before, .full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .wrap .popup::after {\n left: auto;\n right: calc(1em + 33px);\n transform: translateX(50%);\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package {\n margin: auto;\n width: auto;\n height: auto;\n color: inherit;\n fill: inherit;\n background: inherit !important;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package .bag-icon {\n display: none;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package span {\n font-size: inherit;\n line-height: 36px;\n padding: 0 6px;\n color: rgba(255, 255, 255, 0.9);\n cursor: pointer;\n}\n.full-win-gift-btn-wrapper.full-win-gift-btn-wrapper .gift-package span:hover {\n color: #fff;\n}",""]),n.exports=r},645:function(n){"use strict";
// eslint-disable-next-line func-names
n.exports=function(n){var t=[];return t.toString=function(){return this.map((function(t){var e=n(t);return t[2]?"@media ".concat(t[2]," {").concat(e,"}"):e})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(n,e,r){"string"==typeof n&&(
// eslint-disable-next-line no-param-reassign
n=[[null,n,""]]);var i={};if(r)for(var o=0;o<this.length;o++){
// eslint-disable-next-line prefer-destructuring
var l=this[o][0];null!=l&&(i[l]=!0)}for(var a=0;a<n.length;a++){var u=[].concat(n[a]);r&&i[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),t.push(u))}},t}},564:function(n,t,e){var r=e(894);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},t={};function e(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return n[r](o,o.exports,e),o.exports}e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,{a:t}),t},e.d=function(n,t){for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)};var r={};return function(){"use strict";e.d(r,{component:function(){return h}});var n=coreApis.componentApis.live.liveControlBar,t=coreApis.spinQuery,i=coreApis.style,o=coreApis.utils.urls,l=e(564),a=e.n(l);const u="player-full-win",f="full-win-gift-btn-wrapper",c="liveGiftBox";let p=null,s=null,d=null;function g(){return document.body.classList.contains(u)}function w(n,t){const e=dq(n,".right-area");if(e){const n=document.createElement("div");n.className=f,n.appendChild(t),e.appendChild(n)}else console.warn("[liveGiftBox] .right-area could not be found in control bar")}function b(n,t){return function(n){function t(n){const t=g();return t===n.oldValue.split(" ").includes(u)?null:t}const e=new MutationObserver((e=>{for(const r of e){const e=t(r);null!==e&&n(e)}}));return e?.observe(document.body,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0}),()=>e.disconnect()}((e=>{e?function(n){const t=dq(".control-area");t&&w(t,n)}(n):function(n,t){t.appendChild(n)}(n,t)}))}async function v(){(0,i.addStyle)(a(),c);const n=await async function(){const n=await(0,t.select)(".z-gift-package",{maxRetry:15,queryInterval:200});return n||console.warn("[liveGiftBox] the parent element of gift button not found"),n}();p=n?.children[0],n&&p&&(s=b(p,n),d=function(n){const t=dq("#live-player");if(!t)return console.warn("[liveGiftBox] live player not found"),null;function e(){dq(".full-win-gift-btn-wrapper .wrap")&&n.click()}return t.addEventListener("mouseleave",e),()=>t.removeEventListener("mouseleave",e)}(p))}const h={name:c,displayName:"直播全屏包裹",description:{"zh-CN":"在直播的网页全屏(不能是全屏)模式下往控制栏添加包裹按钮."},urlInclude:o.liveUrls,tags:[componentsTags.live],entry:function(){(0,n.waitForControlBar)({callback:function(n){const t=g();p&&t&&w(n,p)}}),v()},reload:v,unload:function(){d?.call(null),d=null,s?.call(null),s=null,p=null,(0,i.removeStyle)(c)},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),r=r.component}()}));
var l=this[o][0];null!=l&&(i[l]=!0)}for(var a=0;a<n.length;a++){var u=[].concat(n[a]);r&&i[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),t.push(u))}},t}},550:function(n,t,e){var r=e(481);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},t={};function e(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return n[r](o,o.exports,e),o.exports}e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,{a:t}),t},e.d=function(n,t){for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)};var r={};return function(){"use strict";e.d(r,{component:function(){return h}});var n=coreApis.componentApis.live.liveControlBar,t=coreApis.spinQuery,i=coreApis.style,o=coreApis.utils.urls,l=e(550),a=e.n(l);const u="player-full-win",c="full-win-gift-btn-wrapper",f="liveGiftBox";let p=null,s=null,d=null;function g(){return document.body.classList.contains(u)}function w(n,t){const e=dq(n,".right-area");if(e){const n=document.createElement("div");n.className=c,n.appendChild(t),e.appendChild(n)}else console.warn("[liveGiftBox] .right-area could not be found in control bar")}function b(n,t){return function(n){function t(n){const t=g();return t===n.oldValue.split(" ").includes(u)?null:t}const e=new MutationObserver((e=>{for(const r of e){const e=t(r);null!==e&&n(e)}}));return e?.observe(document.body,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0}),()=>e.disconnect()}((e=>{e?function(n){const t=dq(".control-area");t&&w(t,n)}(n):function(n,t){t.appendChild(n)}(n,t)}))}async function v(){(0,i.addStyle)(a(),f);const n=await async function(){const n=await(0,t.select)(".z-gift-package",{maxRetry:15,queryInterval:200});return n||console.warn("[liveGiftBox] the parent element of gift button not found"),n}();p=n?.children[0],n&&p&&(s=b(p,n),d=function(n){const t=dq("#live-player");if(!t)return console.warn("[liveGiftBox] live player not found"),null;function e(){dq(".full-win-gift-btn-wrapper .wrap")&&n.click()}return t.addEventListener("mouseleave",e),()=>t.removeEventListener("mouseleave",e)}(p))}const h={name:f,displayName:"直播全屏包裹",description:{"zh-CN":"在直播的网页全屏(不能是全屏)模式下往控制栏添加包裹按钮."},urlInclude:o.liveUrls,tags:[componentsTags.live],entry:function(){(0,n.waitForControlBar)({callback:function(n){const t=g();p&&t&&w(n,p)}}),v()},reload:v,unload:function(){d?.call(null),d=null,s?.call(null),s=null,p=null,(0,i.removeStyle)(f)},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),r=r.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/home-mute"]=t():e["live/home-mute"]=t()}(self,(function(){return function(){"use strict";var e,t,n={569:function(e){e.exports=coreApis.spinQuery},109:function(e){e.exports=coreApis.utils}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return o}});var e=coreApis.settings,t=coreApis.style;const n=/^https:\/\/live\.bilibili\.com\/(index\.html)?$/,o={name:"liveHomeMute",displayName:"直播首页静音",tags:[componentsTags.live],description:{"zh-CN":"禁止直播首页的推荐直播间自动开始播放."},entry:async({metadata:n})=>{const o="hide-home-live";(0,e.addComponentListener)(`${n.name}.hide`,(e=>{e?(0,t.addStyle)(".player-area-ctnr,#player-header { display: none !important }",o):(0,t.removeStyle)(o)}),!0)},options:{hide:{displayName:"隐藏首页直播板块",defaultValue:!1}},urlInclude:[n],plugin:{displayName:"直播首页静音 - 提前执行",description:{"zh-CN":"提前执行代码以尽快静音."},async setup(){const{matchUrlPattern:e}=await Promise.resolve().then(r.t.bind(r,109,23));if(!e(n))return;const{select:t}=await Promise.resolve().then(r.t.bind(r,569,23));t("video").then((e=>{e.muted=!0}))}},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/home-mute"]=t():e["live/home-mute"]=t()}(self,(function(){return function(){"use strict";var e,t,n={569:function(e){e.exports=coreApis.spinQuery},109:function(e){e.exports=coreApis.utils}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return o}});var e=coreApis.settings,t=coreApis.style;const n=/^https:\/\/live\.bilibili\.com\/(index\.html)?$/,o={name:"liveHomeMute",displayName:"直播首页静音",tags:[componentsTags.live],description:{"zh-CN":"禁止直播首页的推荐直播间自动开始播放."},entry:async({metadata:n})=>{const o="hide-home-live";(0,e.addComponentListener)(`${n.name}.hide`,(e=>{e?(0,t.addStyle)(".player-area-ctnr,#player-header { display: none !important }",o):(0,t.removeStyle)(o)}),!0)},options:{hide:{displayName:"隐藏首页直播板块",defaultValue:!1}},urlInclude:[n],plugin:{displayName:"直播首页静音 - 提前执行",description:{"zh-CN":"提前执行代码以尽快静音."},async setup(){const{matchUrlPattern:e}=await Promise.resolve().then(r.t.bind(r,109,23));if(!e(n))return;const{select:t}=await Promise.resolve().then(r.t.bind(r,569,23));t("video").then((e=>{e.muted=!0}))}},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -0,0 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/original"]=t():e["live/original"]=t()}(self,(function(){return function(){"use strict";var e={139:function(e,t,n){n.r(t),n.d(t,{default:function(){return a}});var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{attrs:{href:e.href,tabindex:"-1"}},[n("DefaultWidget",{attrs:{name:"返回原版直播间",icon:"mdi-arrow-left-circle-outline"}})],1)};o._withStripped=!0;var i=coreApis.ui;var r=function(e,t,n,o,i,r,a,c){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=s):i&&(s=c?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var d=l.render;l.render=function(e,t){return s.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:i.DefaultWidget},data(){const e=document.URL.match(/^https:\/\/live\.bilibili\.com\/([\d]+)/);return e?{href:`https://live.bilibili.com/blanc/${e[1]}`}:{href:document.URL}}}),o,[],!1,null,null,null);r.options.__file="registry/lib/components/live/original/Widget.vue";var a=r.exports}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){n.d(o,{component:function(){return i}});var e=coreApis.componentApis.define,t=coreApis.utils;const i=(0,e.defineComponentMetadata)({name:"originalLiveroom",displayName:"返回原版直播间",description:"在直播间中提供返回原版直播间的按钮, 原版直播间将无视活动皮肤, 强制使用标准的直播页面.",tags:[componentsTags.live],entry:none,urlInclude:[/^https:\/\/live\.bilibili\.com\/[\d]+/],widget:{component:()=>Promise.resolve().then(n.bind(n,139)).then((e=>e.default)),condition:()=>(0,t.matchUrlPattern)(/^https:\/\/live\.bilibili\.com\/([\d]+)/)},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"})}(),o=o.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/remove-watermark"]=t():e["live/remove-watermark"]=t()}(self,(function(){return function(){var e,t,n={585:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,".live-player-ctnr .web-player-icon-roomStatus,\n.bilibili-live-player-video-logo {\n display: none !important;\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/remove-watermark"]=t():e["live/remove-watermark"]=t()}(self,(function(){return function(){var e,t,n={418:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,".live-player-ctnr .web-player-icon-roomStatus,\n.bilibili-live-player-video-logo {\n display: none !important;\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<e.length;u++){var f=[].concat(e[u]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),t.push(f))}},t}},980:function(e,t,n){var o=n(585);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var e=coreApis.componentApis.styledComponent,t=coreApis.utils.urls;const n={...(0,e.toggleStyle)("removeLiveWatermark",(()=>Promise.resolve().then(r.t.bind(r,980,23)))),displayName:"删除直播水印",tags:[componentsTags.live,componentsTags.style],description:{"zh-CN":"删除观看直播时角落的水印."},urlInclude:t.liveUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<e.length;u++){var a=[].concat(e[u]);o&&r[a[0]]||(n&&(a[2]?a[2]="".concat(n," and ").concat(a[2]):a[2]=n),t.push(a))}},t}},203:function(e,t,n){var o=n(418);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var e=coreApis.componentApis.styledComponent,t=coreApis.utils.urls;const n={...(0,e.toggleStyle)("removeLiveWatermark",(()=>Promise.resolve().then(r.t.bind(r,203,23)))),displayName:"删除直播水印",tags:[componentsTags.live,componentsTags.style],description:{"zh-CN":"删除观看直播时角落的水印."},urlInclude:t.liveUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/showgirl"]=t():e["live/showgirl"]=t()}(self,(function(){return function(){"use strict";var e,t,n={163:function(e){e.exports=coreApis.style}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return o}});var e=coreApis.utils.urls;const t="dpi-live-showgirl",n=async()=>{const{addStyle:e}=await Promise.resolve().then(r.t.bind(r,163,23));null===document.getElementById(t)&&e(`\n .haruna-ctnr,\n .avatar-btn\n {\n transform: scale(${1/window.devicePixelRatio}) !important;\n }\n `,t)},o={name:"dpiLiveShowgirl",displayName:"直播看板娘高 DPI 适配",enabledByDefault:window.devicePixelRatio>1,description:{"zh-CN":"根据屏幕 DPI 缩放直播看板娘的大小, 避免像素锯齿."},tags:[componentsTags.live,componentsTags.style],entry:n,reload:n,unload:()=>{document.getElementById(t)?.remove()},urlInclude:e.liveUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["live/showgirl"]=t():e["live/showgirl"]=t()}(self,(function(){return function(){"use strict";var e,t,n={163:function(e){e.exports=coreApis.style}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return o}});var e=coreApis.utils.urls;const t="dpi-live-showgirl",n=async()=>{const{addStyle:e}=await Promise.resolve().then(r.t.bind(r,163,23));null===document.getElementById(t)&&e(`\n .haruna-ctnr,\n .avatar-btn\n {\n transform: scale(${1/window.devicePixelRatio}) !important;\n }\n `,t)},o={name:"dpiLiveShowgirl",displayName:"直播看板娘高 DPI 适配",enabledByDefault:window.devicePixelRatio>1,description:{"zh-CN":"根据屏幕 DPI 缩放直播看板娘的大小, 避免像素锯齿."},tags:[componentsTags.live,componentsTags.style],entry:n,reload:n,unload:()=>{document.getElementById(t)?.remove()},urlInclude:e.liveUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,9 +1,9 @@
!function(r,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["live/side-bar"]=n():r["live/side-bar"]=n()}(self,(function(){return function(){var r,n,t={890:function(r,n,t){var e=t(645)((function(r){return r[1]}));e.push([r.id,'.side-bar-cntr {\n transition: 0.24s ease-out !important;\n overflow: visible !important;\n transform: translateZ(0) translateX(100%) !important;\n}\n.side-bar-cntr:hover {\n transform: translateZ(0) !important;\n}\n.side-bar-cntr::after {\n right: calc(100% + 4px);\n transform: translateY(-50%) rotate(45deg);\n width: 8px;\n height: 8px;\n border-radius: 2px;\n box-sizing: border-box;\n border: 4px solid #aaa;\n border-top-color: transparent;\n border-right-color: transparent;\n}\nbody.dark .side-bar-cntr::after {\n border: 4px solid #eee;\n border-top-color: transparent;\n border-right-color: transparent;\n}\n.side-bar-cntr::before {\n right: calc(100% - 8px);\n transform: translateY(-50%);\n width: 32px;\n height: 48px;\n border-radius: 8px 0 0 8px;\n background-color: #fff;\n border: 1px solid #e9eaec;\n}\nbody.dark .side-bar-cntr::before {\n background-color: #222;\n border-color: transparent;\n}\n.side-bar-cntr::before, .side-bar-cntr::after {\n content: "";\n transition: 0.24s ease-out;\n cursor: pointer;\n position: fixed;\n top: 50%;\n}\n.side-bar-cntr:hover::after, .side-bar-cntr:hover::before {\n opacity: 0;\n}',""]),r.exports=e},645:function(r){"use strict";
!function(r,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["live/side-bar"]=n():r["live/side-bar"]=n()}(self,(function(){return function(){var r,n,t={510:function(r,n,t){var e=t(645)((function(r){return r[1]}));e.push([r.id,'.side-bar-cntr {\n transition: 0.24s ease-out !important;\n overflow: visible !important;\n transform: translateZ(0) translateX(100%) !important;\n}\n.side-bar-cntr:hover {\n transform: translateZ(0) !important;\n}\n.side-bar-cntr::after {\n right: calc(100% + 4px);\n transform: translateY(-50%) rotate(45deg);\n width: 8px;\n height: 8px;\n border-radius: 2px;\n box-sizing: border-box;\n border: 4px solid #aaa;\n border-top-color: transparent;\n border-right-color: transparent;\n}\nbody.dark .side-bar-cntr::after {\n border: 4px solid #eee;\n border-top-color: transparent;\n border-right-color: transparent;\n}\n.side-bar-cntr::before {\n right: calc(100% - 8px);\n transform: translateY(-50%);\n width: 32px;\n height: 48px;\n border-radius: 8px 0 0 8px;\n background-color: #fff;\n border: 1px solid #e9eaec;\n}\nbody.dark .side-bar-cntr::before {\n background-color: #222;\n border-color: transparent;\n}\n.side-bar-cntr::before, .side-bar-cntr::after {\n content: "";\n transition: 0.24s ease-out;\n cursor: pointer;\n position: fixed;\n top: 50%;\n}\n.side-bar-cntr:hover::after, .side-bar-cntr:hover::before {\n opacity: 0;\n}',""]),r.exports=e},645:function(r){"use strict";
// eslint-disable-next-line func-names
r.exports=function(r){var n=[];return n.toString=function(){return this.map((function(n){var t=r(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},
// eslint-disable-next-line func-names
n.i=function(r,t,e){"string"==typeof r&&(
// eslint-disable-next-line no-param-reassign
r=[[null,r,""]]);var o={};if(e)for(var a=0;a<this.length;a++){
r=[[null,r,""]]);var o={};if(e)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<r.length;c++){var s=[].concat(r[c]);e&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},984:function(r,n,t){var e=t(890);e&&e.__esModule&&(e=e.default),r.exports="string"==typeof e?e:e.toString()}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var a=e[r]={id:r,exports:{}};return t[r](a,a.exports,o),a.exports}n=Object.getPrototypeOf?function(r){return Object.getPrototypeOf(r)}:function(r){return r.__proto__},o.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var a=Object.create(null);o.r(a);var i={};r=r||[null,n({}),n([]),n(n)];for(var c=2&e&&t;"object"==typeof c&&!~r.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(r){i[r]=function(){return t[r]}}));return i.default=function(){return t},o.d(a,i),a},o.d=function(r,n){for(var t in n)o.o(n,t)&&!o.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:n[t]})},o.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var a={};return function(){"use strict";o.d(a,{component:function(){return n}});var r=coreApis.utils.urls;const n={name:"collapseLiveSideBar",entry:none,instantStyles:[{name:"collapseLiveSideBar",style:()=>Promise.resolve().then(o.t.bind(o,984,23))}],displayName:"自动收起直播侧栏",description:'自动收起直播间右边偏下的侧栏. (上面有个 "关注" 的面板)',tags:[componentsTags.live,componentsTags.style],urlInclude:r.liveUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),a=a.component}()}));
var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<r.length;c++){var s=[].concat(r[c]);e&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},331:function(r,n,t){var e=t(510);e&&e.__esModule&&(e=e.default),r.exports="string"==typeof e?e:e.toString()}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={id:r,exports:{}};return t[r](i,i.exports,o),i.exports}n=Object.getPrototypeOf?function(r){return Object.getPrototypeOf(r)}:function(r){return r.__proto__},o.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);o.r(i);var a={};r=r||[null,n({}),n([]),n(n)];for(var c=2&e&&t;"object"==typeof c&&!~r.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(r){a[r]=function(){return t[r]}}));return a.default=function(){return t},o.d(i,a),i},o.d=function(r,n){for(var t in n)o.o(n,t)&&!o.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:n[t]})},o.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},o.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};return function(){"use strict";o.d(i,{component:function(){return n}});var r=coreApis.utils.urls;const n={name:"collapseLiveSideBar",entry:none,instantStyles:[{name:"collapseLiveSideBar",style:()=>Promise.resolve().then(o.t.bind(o,331,23))}],displayName:"自动收起直播侧栏",description:'自动收起直播间右边偏下的侧栏. (上面有个 "关注" 的面板)',tags:[componentsTags.live,componentsTags.style],urlInclude:r.liveUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/always-show-duration"]=e():t["style/always-show-duration"]=e()}(self,(function(){return function(){var t,e,n={377:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".watchlater-card .duration,\n.time-group-item .duration,\n.favorite-card .duration,\n.video-card .duration {\n opacity: 1 !important;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/always-show-duration"]=e():t["style/always-show-duration"]=e()}(self,(function(){return function(){var t,e,n={524:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".watchlater-card .duration,\n.time-group-item .duration,\n.favorite-card .duration,\n.video-card .duration {\n opacity: 1 !important;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var u=0;u<t.length;u++){var c=[].concat(t[u]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},539:function(t,e,n){var o=n(377);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var u=2&o&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});const t={...(0,coreApis.componentApis.styledComponent.toggleStyle)("alwaysShowDuration",(()=>Promise.resolve().then(r.t.bind(r,539,23)))),displayName:"总是显示视频时长",description:{"zh-CN":"使脚本展示的各种视频卡片中的时长无需鼠标经过也能一直显示."},tags:[componentsTags.video,componentsTags.style],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<t.length;u++){var a=[].concat(t[u]);o&&r[a[0]]||(n&&(a[2]?a[2]="".concat(n," and ").concat(a[2]):a[2]=n),e.push(a))}},e}},151:function(t,e,n){var o=n(524);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};t=t||[null,e({}),e([]),e(e)];for(var u=2&o&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){c[t]=function(){return n[t]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});const t={...(0,coreApis.componentApis.styledComponent.toggleStyle)("alwaysShowDuration",(()=>Promise.resolve().then(r.t.bind(r,151,23)))),displayName:"总是显示视频时长",description:{"zh-CN":"使脚本展示的各种视频卡片中的时长无需鼠标经过也能一直显示."},tags:[componentsTags.video,componentsTags.style],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/auto-hide-sidebar"]=e():t["style/auto-hide-sidebar"]=e()}(self,(function(){return function(){var t,e,n={285:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,'body .be-settings::before {\n content: "";\n position: fixed;\n width: 8px;\n width: var(--auto-hide-sidebar-width, 8px);\n height: 100vh;\n top: 0;\n left: 0;\n}\nbody .be-settings > .sidebar {\n transition: transform 0.2s ease-out;\n}\nbody .be-settings:not(:hover) > .sidebar {\n transform: translateX(calc(-100% * var(--direction))) translateY(-50%);\n}\nbody.settings-panel-dock-right .be-settings::before {\n left: unset;\n right: 0;\n}',""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/auto-hide-sidebar"]=e():t["style/auto-hide-sidebar"]=e()}(self,(function(){return function(){var t,e,n={618:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,'body .be-settings::before {\n content: "";\n position: fixed;\n width: 8px;\n width: var(--auto-hide-sidebar-width, 8px);\n height: 100vh;\n top: 0;\n left: 0;\n}\nbody .be-settings > .sidebar {\n transition: transform 0.2s ease-out;\n}\nbody .be-settings:not(:hover) > .sidebar {\n transform: translateX(calc(-100% * var(--direction))) translateY(-50%);\n}\nbody.settings-panel-dock-right .be-settings::before {\n left: unset;\n right: 0;\n}',""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);o&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},879:function(t,e,n){var o=n(285);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.settings,e=coreApis.utils;const n={name:"autoHideSidebar",entry:()=>{(0,t.addComponentListener)("autoHideSidebar.triggerWidth",(t=>{document.documentElement.style.setProperty("--auto-hide-sidebar-width",`${t}px`)}),!0)},displayName:"自动隐藏侧栏",instantStyles:[{name:"autoHideSidebar",style:()=>Promise.resolve().then(r.t.bind(r,879,23)),important:!0}],tags:[componentsTags.style,componentsTags.general],options:{triggerWidth:{defaultValue:8,displayName:"触发区域宽度 (px)",validator:(0,e.getNumberValidator)(1,1e3)}},description:{"zh-CN":"自动隐藏脚本的侧栏 (功能和设置图标). 设置面板停靠在右侧时不建议使用, 因为网页的滚动条会占用右边缘的触发区域."},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);o&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},32:function(t,e,n){var o=n(618);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.settings,e=coreApis.utils;const n={name:"autoHideSidebar",entry:()=>{(0,t.addComponentListener)("autoHideSidebar.triggerWidth",(t=>{document.documentElement.style.setProperty("--auto-hide-sidebar-width",`${t}px`)}),!0)},displayName:"自动隐藏侧栏",instantStyles:[{name:"autoHideSidebar",style:()=>Promise.resolve().then(r.t.bind(r,32,23)),important:!0}],tags:[componentsTags.style,componentsTags.general],options:{triggerWidth:{defaultValue:8,displayName:"触发区域宽度 (px)",validator:(0,e.getNumberValidator)(1,1e3)}},description:{"zh-CN":"自动隐藏脚本的侧栏 (功能和设置图标). 设置面板停靠在右侧时不建议使用, 因为网页的滚动条会占用右边缘的触发区域."},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/follow-system"]=t():e["style/dark-mode/follow-system"]=t()}(self,(function(){return function(){"use strict";var e,t,o={407:function(e){e.exports=coreApis.settings}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,n),r.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(o,i){if(1&i&&(o=this(o)),8&i)return o;if("object"==typeof o&&o){if(4&i&&o.__esModule)return o;if(16&i&&"function"==typeof o.then)return o}var r=Object.create(null);n.r(r);var c={};e=e||[null,t({}),t([]),t(t)];for(var l=2&i&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){c[e]=function(){return o[e]}}));return c.default=function(){return o},n.d(r,c),r},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){n.d(r,{component:function(){return t}});var e=coreApis.lifeCycle;const t={name:"darkModeFollowSystem",displayName:"夜间模式跟随系统",entry:()=>{unsafeWindow.addEventListener(e.LifeCycleEventTypes.End,(async()=>{const{getComponentSettings:e}=await Promise.resolve().then(n.t.bind(n,407,23)),t=e("darkMode"),o=matchMedia("(prefers-color-scheme: dark)"),i=e=>{e!==t.enabled&&(t.enabled=e)};i(o.matches),o.addEventListener("change",(e=>{i(e.matches)}))}))},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task"],tags:[componentsTags.style,componentsTags.general],description:{"zh-CN":"\n使夜间模式同步系统设置的亮 / 暗主题, 请勿和 `夜间模式计划时段` 一同使用.\n\n> 注:在某些浏览器 (如 `Microsoft Edge`) 中,夜间模式仅会同步浏览器的亮 / 暗主题.\n ".trim()},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),r=r.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/follow-system"]=t():e["style/dark-mode/follow-system"]=t()}(self,(function(){return function(){"use strict";var e,t,o={407:function(e){e.exports=coreApis.settings}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,n),r.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(o,i){if(1&i&&(o=this(o)),8&i)return o;if("object"==typeof o&&o){if(4&i&&o.__esModule)return o;if(16&i&&"function"==typeof o.then)return o}var r=Object.create(null);n.r(r);var c={};e=e||[null,t({}),t([]),t(t)];for(var l=2&i&&o;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){c[e]=function(){return o[e]}}));return c.default=function(){return o},n.d(r,c),r},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){n.d(r,{component:function(){return t}});var e=coreApis.lifeCycle;const t={name:"darkModeFollowSystem",displayName:"夜间模式跟随系统",entry:()=>{unsafeWindow.addEventListener(e.LifeCycleEventTypes.End,(async()=>{const{getComponentSettings:e}=await Promise.resolve().then(n.t.bind(n,407,23)),t=e("darkMode"),o=matchMedia("(prefers-color-scheme: dark)"),i=e=>{e!==t.enabled&&(t.enabled=e)};i(o.matches),o.addEventListener("change",(e=>{i(e.matches)}))}))},urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task"],tags:[componentsTags.style,componentsTags.general],description:{"zh-CN":"\n使夜间模式同步系统设置的亮 / 暗主题, 请勿和 `夜间模式计划时段` 一同使用.\n\n> 注:在某些浏览器 (如 `Microsoft Edge`) 中,夜间模式仅会同步浏览器的亮 / 暗主题.\n ".trim()},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),r=r.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/schedule"]=t():e["style/dark-mode/schedule"]=t()}(self,(function(){return function(){"use strict";var e={d:function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{component:function(){return l}});var i=coreApis.lifeCycle,r=coreApis.settings;function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class n{constructor(...e){if(o(this,"hour",void 0),o(this,"minute",void 0),0===e.length){const e=new Date;this.hour=e.getHours(),this.minute=e.getMinutes()}else if(1===e.length){const[t]=e;[this.hour,this.minute]=t.split(":").slice(0,2).map((e=>n.validatePart(e))),this.normalize()}else 2===e.length&&([this.hour,this.minute]=e)}normalize(){for(;this.minute<0;)this.minute+=60,this.hour-=1;for(;this.minute>=60;)this.minute-=60,this.hour+=1;for(;this.hour<0;)this.hour+=24;for(;this.hour>=24;)this.hour-=24}lessThan(e){return this.hour<e.hour||this.hour===e.hour&&this.minute<e.minute}greaterThan(e){return this.hour>e.hour||this.hour===e.hour&&this.minute>e.minute}equals(e){return this.hour===e.hour&&this.minute===e.minute}isInRange(e,t){if(e.equals(t))return!1;let i=this.greaterThan(e)&&this.lessThan(t);e.greaterThan(t)&&(i=this.greaterThan(e)||this.lessThan(t));return i||this.equals(e)}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}`}static validatePart(e){const t=parseInt(e);return!Number.isNaN(t)&&t>=0&&t<=59?t:null}static millisecondsBefore(e){const t=new n,i=(new Date).getSeconds(),r=1e3*(3600*t.hour+60*t.minute+i);let o=1e3*(3600*e.hour+60*e.minute)-r;return(t.greaterThan(e)||t.equals(e)&&0!==i)&&(o+=864e5),o}}const s=e=>{const t=new n(e.options.range.start),i=new n(e.options.range.end),o=(new n).isInRange(t,i),l=(0,r.getComponentSettings)("darkMode");l.enabled!==o&&(l.enabled=o);let a=0;a=o?n.millisecondsBefore(i):n.millisecondsBefore(t),0!==a&&setTimeout((()=>s(e)),a)},l={name:"darkModeSchedule",displayName:"夜间模式计划时段",description:"设置一个使用夜间模式的时间段, 进入 / 离开此时间段时, 会自动开启 / 关闭夜间模式. 结束时间小于起始时间时将视为次日, 如 `18:00` 至 `6:00` 表示晚上 18:00 到次日 6:00. 请勿和 `夜间模式跟随系统` 一同使用.",tags:[componentsTags.style,componentsTags.general],entry:({settings:e})=>(0,i.fullyLoaded)((()=>s(e))),urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task"],options:{range:{defaultValue:{start:"18:00",end:"6:00"},displayName:"时间段",validator:e=>{const{start:t,end:i}=e,r=/^(\d{1,2}):(\d{1,2})$/;if(!r.test(t)||!r.test(i))return null;const o=new n(e.start),s=new n(e.end);return{start:o.toString(),end:s.toString()}}}},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"};return t=t.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/dark-mode/schedule"]=t():e["style/dark-mode/schedule"]=t()}(self,(function(){return function(){"use strict";var e={d:function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{component:function(){return l}});var i=coreApis.lifeCycle,r=coreApis.settings;function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class n{constructor(...e){if(o(this,"hour",void 0),o(this,"minute",void 0),0===e.length){const e=new Date;this.hour=e.getHours(),this.minute=e.getMinutes()}else if(1===e.length){const[t]=e;[this.hour,this.minute]=t.split(":").slice(0,2).map((e=>n.validatePart(e))),this.normalize()}else 2===e.length&&([this.hour,this.minute]=e)}normalize(){for(;this.minute<0;)this.minute+=60,this.hour-=1;for(;this.minute>=60;)this.minute-=60,this.hour+=1;for(;this.hour<0;)this.hour+=24;for(;this.hour>=24;)this.hour-=24}lessThan(e){return this.hour<e.hour||this.hour===e.hour&&this.minute<e.minute}greaterThan(e){return this.hour>e.hour||this.hour===e.hour&&this.minute>e.minute}equals(e){return this.hour===e.hour&&this.minute===e.minute}isInRange(e,t){if(e.equals(t))return!1;let i=this.greaterThan(e)&&this.lessThan(t);e.greaterThan(t)&&(i=this.greaterThan(e)||this.lessThan(t));return i||this.equals(e)}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}`}static validatePart(e){const t=parseInt(e);return!Number.isNaN(t)&&t>=0&&t<=59?t:null}static millisecondsBefore(e){const t=new n,i=(new Date).getSeconds(),r=1e3*(3600*t.hour+60*t.minute+i);let o=1e3*(3600*e.hour+60*e.minute)-r;return(t.greaterThan(e)||t.equals(e)&&0!==i)&&(o+=864e5),o}}const s=e=>{const t=new n(e.options.range.start),i=new n(e.options.range.end),o=(new n).isInRange(t,i),l=(0,r.getComponentSettings)("darkMode");l.enabled!==o&&(l.enabled=o);let u=0;u=o?n.millisecondsBefore(i):n.millisecondsBefore(t),0!==u&&setTimeout((()=>s(e)),u)},l={name:"darkModeSchedule",displayName:"夜间模式计划时段",description:"设置一个使用夜间模式的时间段, 进入 / 离开此时间段时, 会自动开启 / 关闭夜间模式. 结束时间小于起始时间时将视为次日, 如 `18:00` 至 `6:00` 表示晚上 18:00 到次日 6:00. 请勿和 `夜间模式跟随系统` 一同使用.",tags:[componentsTags.style,componentsTags.general],entry:({settings:e})=>(0,i.fullyLoaded)((()=>s(e))),urlExclude:["//member.bilibili.com/v2","//member.bilibili.com/platform","//member.bilibili.com/video/upload.html","//member.bilibili.com/article-text/home","//www.bilibili.com/audio/submit/","//member.bilibili.com/studio/bs-editor/projects","//www.bilibili.com/s/video/","//member.bilibili.com/platform","//live.bilibili.com/p/html/live-lottery/anchor-join.html","//account.bilibili.com/subtitle/edit/#/editor","/york/allowance-charge","//cm.bilibili.com/quests/#/task"],options:{range:{defaultValue:{start:"18:00",end:"6:00"},displayName:"时间段",validator:e=>{const{start:t,end:i}=e,r=/^(\d{1,2}):(\d{1,2})$/;if(!r.test(t)||!r.test(i))return null;const o=new n(e.start),s=new n(e.end);return{start:o.toString(),end:s.toString()}}}},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"};return t=t.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/bangumi/reviews"]=e():t["style/hide/bangumi/reviews"]=e()}(self,(function(){return function(){var t,e,n={418:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,"#review_module {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/bangumi/reviews"]=e():t["style/hide/bangumi/reviews"]=e()}(self,(function(){return function(){var t,e,n={921:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,"#review_module {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var u=this[i][0];null!=u&&(r[u]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},481:function(t,e,n){var o=n(418);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var u={};t=t||[null,e({}),e([]),e(e)];for(var c=2&o&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){u[t]=function(){return n[t]}}));return u.default=function(){return n},r.d(i,u),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls;const n={displayName:"隐藏番剧点评",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiReviews",(()=>Promise.resolve().then(r.t.bind(r,481,23)))),urlInclude:e.bangumiUrls,description:{"zh-CN":"隐藏番剧播放页面里的点评板块."},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var u=this[i][0];null!=u&&(r[u]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},682:function(t,e,n){var o=n(921);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var u={};t=t||[null,e({}),e([]),e(e)];for(var c=2&o&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){u[t]=function(){return n[t]}}));return u.default=function(){return n},r.d(i,u),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls;const n={displayName:"隐藏番剧点评",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiReviews",(()=>Promise.resolve().then(r.t.bind(r,682,23)))),urlInclude:e.bangumiUrls,description:{"zh-CN":"隐藏番剧播放页面里的点评板块."},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/bangumi/sponsors"]=e():t["style/hide/bangumi/sponsors"]=e()}(self,(function(){return function(){var t,e,n={214:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,"#sponsor_module, #paybar_module {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/bangumi/sponsors"]=e():t["style/hide/bangumi/sponsors"]=e()}(self,(function(){return function(){var t,e,n={85:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,"#sponsor_module, #paybar_module {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var u=this[i][0];null!=u&&(r[u]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},961:function(t,e,n){var o=n(214);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var u={};t=t||[null,e({}),e([]),e(e)];for(var c=2&o&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){u[t]=function(){return n[t]}}));return u.default=function(){return n},r.d(i,u),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls;const n={displayName:"隐藏番剧承包",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiSponsors",(()=>Promise.resolve().then(r.t.bind(r,961,23)))),urlInclude:e.bangumiUrls,description:{"zh-CN":"隐藏番剧页面下方的承包榜, 以及右边的承包按钮."},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var u=this[i][0];null!=u&&(r[u]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},346:function(t,e,n){var o=n(85);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var u={};t=t||[null,e({}),e([]),e(e)];for(var c=2&o&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){u[t]=function(){return n[t]}}));return u.default=function(){return n},r.d(i,u),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls;const n={displayName:"隐藏番剧承包",tags:[componentsTags.style],...(0,t.toggleStyle)("hideBangumiSponsors",(()=>Promise.resolve().then(r.t.bind(r,346,23)))),urlInclude:e.bangumiUrls,description:{"zh-CN":"隐藏番剧页面下方的承包榜, 以及右边的承包按钮."},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/banner"]=e():n["style/hide/banner"]=e()}(self,(function(){return function(){var n,e,t={630:function(n,e,t){var r=t(645)((function(n){return n[1]}));r.push([n.id,"#banner_link,\n.z-top-container.has-banner > .header,\n.custom-navbar .blur-layer,\n.bili-header__banner {\n display: none !important;\n}\n\n.bili-header {\n padding-top: 50px !important;\n min-height: 0 !important;\n}\n\ndiv.blur-bg,\n.b-header-mask-wrp .b-header-mask-bg {\n opacity: 0 !important;\n}\n\n.international-header .bili-banner,\n.international-home .bili-banner {\n visibility: hidden !important;\n height: 50px !important;\n min-height: unset !important;\n}\n\n.nav-link .nav-link-ul .nav-link-item .link,\n.nav-user-center .user-con .item .name {\n color: black !important;\n text-shadow: none !important;\n}\nbody.dark .nav-link .nav-link-ul .nav-link-item .link,\nbody.dark .nav-user-center .user-con .item .name {\n color: #eee !important;\n}",""]),n.exports=r},645:function(n){"use strict";
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/banner"]=e():n["style/hide/banner"]=e()}(self,(function(){return function(){var n,e,t={686:function(n,e,t){var r=t(645)((function(n){return n[1]}));r.push([n.id,"#banner_link,\n.z-top-container.has-banner > .header,\n.custom-navbar .blur-layer,\n.bili-header__banner {\n display: none !important;\n}\n\n.bili-header {\n padding-top: 50px !important;\n min-height: 0 !important;\n}\n\ndiv.blur-bg,\n.b-header-mask-wrp .b-header-mask-bg {\n opacity: 0 !important;\n}\n\n.international-header .bili-banner,\n.international-home .bili-banner {\n visibility: hidden !important;\n height: 50px !important;\n min-height: unset !important;\n}\n\n.nav-link .nav-link-ul .nav-link-item .link,\n.nav-user-center .user-con .item .name {\n color: black !important;\n text-shadow: none !important;\n}\nbody.dark .nav-link .nav-link-ul .nav-link-item .link,\nbody.dark .nav-user-center .user-con .item .name {\n color: #eee !important;\n}",""]),n.exports=r},645:function(n){"use strict";
// eslint-disable-next-line func-names
n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t=n(e);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(n,t,r){"string"==typeof n&&(
// eslint-disable-next-line no-param-reassign
n=[[null,n,""]]);var o={};if(r)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<n.length;u++){var c=[].concat(n[u]);r&&o[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),e.push(c))}},e}},912:function(n,e,t){var r=t(630);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},r={};function o(n){var e=r[n];if(void 0!==e)return e.exports;var i=r[n]={id:n,exports:{}};return t[n](i,i.exports,o),i.exports}e=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var i=Object.create(null);o.r(i);var a={};n=n||[null,e({}),e([]),e(e)];for(var u=2&r&&t;"object"==typeof u&&!~n.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(n){a[n]=function(){return t[n]}}));return a.default=function(){return t},o.d(i,a),i},o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},o.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};return function(){"use strict";o.d(i,{component:function(){return e}});var n=coreApis.utils.urls;const e={name:"hideBanner",entry:none,displayName:"隐藏顶部横幅",instantStyles:[{name:"hideBanner",style:()=>Promise.resolve().then(o.t.bind(o,912,23))}],tags:[componentsTags.style],description:{"zh-CN":"隐藏首页顶部横幅."},urlInclude:n.mainSiteUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(o[a]=!0)}for(var u=0;u<n.length;u++){var c=[].concat(n[u]);r&&o[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),e.push(c))}},e}},870:function(n,e,t){var r=t(686);r&&r.__esModule&&(r=r.default),n.exports="string"==typeof r?r:r.toString()}},r={};function o(n){var e=r[n];if(void 0!==e)return e.exports;var i=r[n]={id:n,exports:{}};return t[n](i,i.exports,o),i.exports}e=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},o.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var i=Object.create(null);o.r(i);var a={};n=n||[null,e({}),e([]),e(e)];for(var u=2&r&&t;"object"==typeof u&&!~n.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(n){a[n]=function(){return t[n]}}));return a.default=function(){return t},o.d(i,a),i},o.d=function(n,e){for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},o.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};return function(){"use strict";o.d(i,{component:function(){return e}});var n=coreApis.utils.urls;const e={name:"hideBanner",entry:none,displayName:"隐藏顶部横幅",instantStyles:[{name:"hideBanner",style:()=>Promise.resolve().then(o.t.bind(o,870,23))}],tags:[componentsTags.style],description:{"zh-CN":"隐藏首页顶部横幅."},urlInclude:n.mainSiteUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/hide/video/recommended-live"]=t():e["style/hide/video/recommended-live"]=t()}(self,(function(){return function(){var e,t,n={198:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#live_recommand_report,\n#live_recommend_report {\n display: none !important;\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/hide/video/recommended-live"]=t():e["style/hide/video/recommended-live"]=t()}(self,(function(){return function(){var e,t,n={733:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#live_recommand_report,\n#live_recommend_report {\n display: none !important;\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<e.length;u++){var f=[].concat(e[u]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),t.push(f))}},t}},969:function(e,t,n){var o=n(198);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"hideRecommendedLive",entry:none,instantStyles:[{name:"hideRecommendedLive",style:()=>Promise.resolve().then(r.t.bind(r,969,23))}],displayName:"隐藏直播推荐",tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏视频页面右侧下方的直播推荐."},urlInclude:e.videoUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<e.length;u++){var f=[].concat(e[u]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),t.push(f))}},t}},260:function(e,t,n){var o=n(733);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"hideRecommendedLive",entry:none,instantStyles:[{name:"hideRecommendedLive",style:()=>Promise.resolve().then(r.t.bind(r,260,23))}],displayName:"隐藏直播推荐",tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏视频页面右侧下方的直播推荐."},urlInclude:e.videoUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/hide/video/related-videos"]=t():e["style/hide/video/related-videos"]=t()}(self,(function(){return function(){var e,t,n={632:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#recom_module,\n#reco_list,\n.bilibili-player-ending-panel-box-videos,\n.r-con .rcmd-list {\n display: none !important;\n}\n\n.bilibili-player-ending-panel-box-functions .bilibili-player-upinfo-spans {\n position: static !important;\n}\n\n.bilibili-player-ending-panel-box {\n display: flex !important;\n justify-content: center !important;\n flex-direction: column !important;\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/hide/video/related-videos"]=t():e["style/hide/video/related-videos"]=t()}(self,(function(){return function(){var e,t,n={267:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#recom_module,\n#reco_list,\n.bilibili-player-ending-panel-box-videos,\n.r-con .rcmd-list {\n display: none !important;\n}\n\n.bilibili-player-ending-panel-box-functions .bilibili-player-upinfo-spans {\n position: static !important;\n}\n\n.bilibili-player-ending-panel-box {\n display: flex !important;\n justify-content: center !important;\n flex-direction: column !important;\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},32:function(e,t,n){var o=n(632);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"hideRelatedVideos",displayName:"隐藏视频推荐",entry:none,instantStyles:[{name:"hideRelatedVideos",style:()=>Promise.resolve().then(r.t.bind(r,32,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏番剧和视频页面右侧的推荐视频列表. 注意: 如果你想关闭 b 站的自动连播 (自动播放下一个推荐视频) 功能, 需要先取消隐藏视频推荐才能看到开关."},urlInclude:e.videoAndBangumiUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<e.length;u++){var a=[].concat(e[u]);o&&r[a[0]]||(n&&(a[2]?a[2]="".concat(n," and ").concat(a[2]):a[2]=n),t.push(a))}},t}},669:function(e,t,n){var o=n(267);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"hideRelatedVideos",displayName:"隐藏视频推荐",entry:none,instantStyles:[{name:"hideRelatedVideos",style:()=>Promise.resolve().then(r.t.bind(r,669,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"隐藏番剧和视频页面右侧的推荐视频列表. 注意: 如果你想关闭 b 站的自动连播 (自动播放下一个推荐视频) 功能, 需要先取消隐藏视频推荐才能看到开关."},urlInclude:e.videoAndBangumiUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/video/top-mask"]=e():t["style/hide/video/top-mask"]=e()}(self,(function(){return function(){var t,e,n={564:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".bilibili-player-video-top {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/hide/video/top-mask"]=e():t["style/hide/video/top-mask"]=e()}(self,(function(){return function(){var t,e,n={245:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".bilibili-player-video-top {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var u=this[i][0];null!=u&&(r[u]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},498:function(t,e,n){var o=n(564);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var u={};t=t||[null,e({}),e([]),e(e)];for(var c=2&o&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){u[t]=function(){return n[t]}}));return u.default=function(){return n},r.d(i,u),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls;const n={displayName:"隐藏视频标题层",...(0,t.toggleStyle)("hideVideoTopMask",(()=>Promise.resolve().then(r.t.bind(r,498,23)))),tags:[componentsTags.style],description:{"zh-CN":"隐藏视频里鼠标经过时出现在右上角的覆盖层."},urlInclude:e.playerUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var c=this[i][0];null!=c&&(r[c]=!0)}for(var u=0;u<t.length;u++){var f=[].concat(t[u]);o&&r[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),e.push(f))}},e}},363:function(t,e,n){var o=n(245);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};t=t||[null,e({}),e([]),e(e)];for(var u=2&o&&n;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){c[t]=function(){return n[t]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.componentApis.styledComponent,e=coreApis.utils.urls;const n={displayName:"隐藏视频标题层",...(0,t.toggleStyle)("hideVideoTopMask",(()=>Promise.resolve().then(r.t.bind(r,363,23)))),tags:[componentsTags.style],description:{"zh-CN":"隐藏视频里鼠标经过时出现在右上角的覆盖层."},urlInclude:e.playerUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/player-on-top"]=t():n["style/player-on-top"]=t()}(self,(function(){return function(){var n,t,e={962:function(n,t,e){var o=e(645)((function(n){return n[1]}));o.push([n.id,".v-wrap .l-con,\n.v-wrap .r-con {\n display: flex;\n flex-direction: column;\n margin-top: 24px;\n}\n.v-wrap .l-con .player-wrap {\n order: -1;\n}\n.v-wrap .l-con .video-info {\n margin: 20px 0 0 0 !important;\n padding: 0 !important;\n height: auto !important;\n}\n.v-wrap .l-con .video-info .video-data .argue,\n.v-wrap .l-con .video-info .video-data .copyright {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.v-wrap .r-con .danmaku-box {\n order: -1;\n}\n.v-wrap .r-con .up-info {\n padding-top: 0 !important;\n}",""]),n.exports=o},645:function(n){"use strict";
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/player-on-top"]=t():n["style/player-on-top"]=t()}(self,(function(){return function(){var n,t,e={968:function(n,t,e){var o=e(645)((function(n){return n[1]}));o.push([n.id,".v-wrap .l-con,\n.v-wrap .r-con {\n display: flex;\n flex-direction: column;\n margin-top: 24px;\n}\n.v-wrap .l-con .player-wrap {\n order: -1;\n}\n.v-wrap .l-con .video-info {\n margin: 20px 0 0 0 !important;\n padding: 0 !important;\n height: auto !important;\n}\n.v-wrap .l-con .video-info .video-data .argue,\n.v-wrap .l-con .video-info .video-data .copyright {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.v-wrap .r-con .danmaku-box {\n order: -1;\n}\n.v-wrap .r-con .up-info {\n padding-top: 0 !important;\n}",""]),n.exports=o},645:function(n){"use strict";
// eslint-disable-next-line func-names
n.exports=function(n){var t=[];return t.toString=function(){return this.map((function(t){var e=n(t);return t[2]?"@media ".concat(t[2]," {").concat(e,"}"):e})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(n,e,o){"string"==typeof n&&(
// eslint-disable-next-line no-param-reassign
n=[[null,n,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<n.length;c++){var f=[].concat(n[c]);o&&r[f[0]]||(e&&(f[2]?f[2]="".concat(e," and ").concat(f[2]):f[2]=e),t.push(f))}},t}},92:function(n,t,e){var o=e(962);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()}},o={};function r(n){var t=o[n];if(void 0!==t)return t.exports;var i=o[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},r.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var i=Object.create(null);r.r(i);var a={};n=n||[null,t({}),t([]),t(t)];for(var c=2&o&&e;"object"==typeof c&&!~n.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(n){a[n]=function(){return e[n]}}));return a.default=function(){return e},r.d(i,a),i},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});const n={name:"playerOnTop",displayName:"播放器置顶",description:{"zh-CN":"在视频页面中将播放器放在页面最上方."},instantStyles:[{name:"playerOnTop",style:()=>Promise.resolve().then(r.t.bind(r,92,23))}],tags:[componentsTags.style,componentsTags.video],entry:none,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<n.length;c++){var p=[].concat(n[c]);o&&r[p[0]]||(e&&(p[2]?p[2]="".concat(e," and ").concat(p[2]):p[2]=e),t.push(p))}},t}},168:function(n,t,e){var o=e(968);o&&o.__esModule&&(o=o.default),n.exports="string"==typeof o?o:o.toString()}},o={};function r(n){var t=o[n];if(void 0!==t)return t.exports;var i=o[n]={id:n,exports:{}};return e[n](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__},r.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var i=Object.create(null);r.r(i);var a={};n=n||[null,t({}),t([]),t(t)];for(var c=2&o&&e;"object"==typeof c&&!~n.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(n){a[n]=function(){return e[n]}}));return a.default=function(){return e},r.d(i,a),i},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});const n={name:"playerOnTop",displayName:"播放器置顶",description:{"zh-CN":"在视频页面中将播放器放在页面最上方."},instantStyles:[{name:"playerOnTop",style:()=>Promise.resolve().then(r.t.bind(r,168,23))}],tags:[componentsTags.style,componentsTags.video],entry:none,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/player-shadow"]=t():e["style/player-shadow"]=t()}(self,(function(){return function(){var e,t,n={247:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#bilibili-player,\n#bilibili-player.mini-player::before {\n box-shadow: 0px 2px 8px 0px var(--theme-color-30) !important;\n}\nbody.dark #bilibili-player,\nbody.dark #bilibili-player.mini-player::before {\n box-shadow: 0px 2px 8px 0px var(--theme-color-20) !important;\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["style/player-shadow"]=t():e["style/player-shadow"]=t()}(self,(function(){return function(){var e,t,n={932:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#bilibili-player,\n#bilibili-player.mini-player::before {\n box-shadow: 0px 2px 8px 0px var(--theme-color-30) !important;\n}\nbody.dark #bilibili-player,\nbody.dark #bilibili-player.mini-player::before {\n box-shadow: 0px 2px 8px 0px var(--theme-color-20) !important;\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},529:function(e,t,n){var o=n(247);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"playerShadow",displayName:"播放器投影",entry:none,instantStyles:[{name:"playerShadow",style:()=>Promise.resolve().then(r.t.bind(r,529,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"为播放器添加主题色投影."},urlInclude:e.allVideoUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},509:function(e,t,n){var o=n(932);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"playerShadow",displayName:"播放器投影",entry:none,instantStyles:[{name:"playerShadow",style:()=>Promise.resolve().then(r.t.bind(r,509,23))}],tags:[componentsTags.style,componentsTags.video],description:{"zh-CN":"为播放器添加主题色投影."},urlInclude:e.allVideoUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["style/scrollbar"]=n():t["style/scrollbar"]=n()}(self,(function(){return function(){var t,n,e={518:function(t,n,e){var r=e(645)((function(t){return t[1]}));r.push([t.id,"html ::-webkit-scrollbar {\n width: 5px !important;\n height: 5px !important;\n}\nhtml ::-webkit-scrollbar-corner,\nhtml ::-webkit-scrollbar-track {\n background: transparent !important;\n}\nhtml ::-webkit-resizer,\nhtml ::-webkit-scrollbar-thumb {\n background: #aaa;\n border-radius: 3px;\n}\nhtml ::-webkit-scrollbar-thumb:hover {\n background: #888;\n}\nhtml,\nhtml * {\n scrollbar-color: #aaa transparent;\n scrollbar-width: thin !important;\n}",""]),t.exports=r},645:function(t){"use strict";
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["style/scrollbar"]=n():t["style/scrollbar"]=n()}(self,(function(){return function(){var t,n,e={858:function(t,n,e){var r=e(645)((function(t){return t[1]}));r.push([t.id,"html ::-webkit-scrollbar {\n width: 5px !important;\n height: 5px !important;\n}\nhtml ::-webkit-scrollbar-corner,\nhtml ::-webkit-scrollbar-track {\n background: transparent !important;\n}\nhtml ::-webkit-resizer,\nhtml ::-webkit-scrollbar-thumb {\n background: #aaa;\n border-radius: 3px;\n}\nhtml ::-webkit-scrollbar-thumb:hover {\n background: #888;\n}\nhtml,\nhtml * {\n scrollbar-color: #aaa transparent;\n scrollbar-width: thin !important;\n}",""]),t.exports=r},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=t(n);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ n.i=function(t,e,r){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var o={};if(r)for(var a=0;a<this.length;a++){
// eslint-disable-next-line prefer-destructuring
var i=this[a][0];null!=i&&(o[i]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);r&&o[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),n.push(u))}},n}},110:function(t,n,e){var r=e(518);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={id:t,exports:{}};return e[t](a,a.exports,o),a.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var a=Object.create(null);o.r(a);var i={};t=t||[null,n({}),n([]),n(n)];for(var c=2&r&&e;"object"==typeof c&&!~t.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},o.d(a,i),a},o.d=function(t,n){for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return function(){"use strict";o.d(a,{component:function(){return t}});const t={name:"elegantScrollbar",entry:none,displayName:"使用细滚动条",description:"使用浏览器的滚动条风格替代系统的滚动条, 不过 macOS 系统滚动条比浏览器做得好一些, 因此不建议 macOS 使用此功能.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"elegant-scrollbar",style:()=>Promise.resolve().then(o.t.bind(o,110,23))}],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),a=a.component}()}));
var c=this[a][0];null!=c&&(o[c]=!0)}for(var i=0;i<t.length;i++){var u=[].concat(t[i]);r&&o[u[0]]||(e&&(u[2]?u[2]="".concat(e," and ").concat(u[2]):u[2]=e),n.push(u))}},n}},227:function(t,n,e){var r=e(858);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={id:t,exports:{}};return e[t](a,a.exports,o),a.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var a=Object.create(null);o.r(a);var c={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach((function(t){c[t]=function(){return e[t]}}));return c.default=function(){return e},o.d(a,c),a},o.d=function(t,n){for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return function(){"use strict";o.d(a,{component:function(){return t}});const t={name:"elegantScrollbar",entry:none,displayName:"使用细滚动条",description:"使用浏览器的滚动条风格替代系统的滚动条, 不过 macOS 系统滚动条比浏览器做得好一些, 因此不建议 macOS 使用此功能.",tags:[componentsTags.style,componentsTags.general],instantStyles:[{name:"elegant-scrollbar",style:()=>Promise.resolve().then(o.t.bind(o,227,23))}],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),a=a.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/sidebar-offset"]=e():t["style/sidebar-offset"]=e()}(self,(function(){return function(){var t,e,n={900:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".be-settings > .sidebar {\n top: calc(50% + var(--be-sidebar-offset)) !important;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/sidebar-offset"]=e():t["style/sidebar-offset"]=e()}(self,(function(){return function(){var t,e,n={435:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".be-settings > .sidebar {\n top: calc(50% + var(--be-sidebar-offset)) !important;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var f=this[i][0];null!=f&&(r[f]=!0)}for(var a=0;a<t.length;a++){var s=[].concat(t[a]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},215:function(t,e,n){var o=n(900);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var f={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((function(t){f[t]=function(){return n[t]}}));return f.default=function(){return n},r.d(i,f),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.settings,e=coreApis.utils;const n={name:"sidebarOffset",displayName:"侧栏垂直偏移",tags:[componentsTags.style],instantStyles:[{name:"sidebarOffset",style:()=>Promise.resolve().then(r.t.bind(r,215,23))}],description:{"zh-CN":"给脚本的侧栏设置垂直偏移量, 范围为 -40% ~ 40%"},entry:({metadata:e})=>{(0,t.addComponentListener)(`${e.name}.offset`,(t=>{document.body.style.setProperty("--be-sidebar-offset",`${t}%`)}),!0)},options:{offset:{displayName:"偏移量 (%)",defaultValue:0,validator:(0,e.getNumberValidator)(-40,40)}},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var f=this[i][0];null!=f&&(r[f]=!0)}for(var a=0;a<t.length;a++){var s=[].concat(t[a]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),e.push(s))}},e}},202:function(t,e,n){var o=n(435);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var f={};t=t||[null,e({}),e([]),e(e)];for(var a=2&o&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((function(t){f[t]=function(){return n[t]}}));return f.default=function(){return n},r.d(i,f),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return n}});var t=coreApis.settings,e=coreApis.utils;const n={name:"sidebarOffset",displayName:"侧栏垂直偏移",tags:[componentsTags.style],instantStyles:[{name:"sidebarOffset",style:()=>Promise.resolve().then(r.t.bind(r,202,23))}],description:{"zh-CN":"给脚本的侧栏设置垂直偏移量, 范围为 -40% ~ 40%"},entry:({metadata:e})=>{(0,t.addComponentListener)(`${e.name}.offset`,(t=>{document.body.style.setProperty("--be-sidebar-offset",`${t}%`)}),!0)},options:{offset:{displayName:"偏移量 (%)",defaultValue:0,validator:(0,e.getNumberValidator)(-40,40)}},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/simplify/home"]=e():t["style/simplify/home"]=e()}(self,(function(){return function(){var t,e,n={344:function(t,e,n){var i=n(645)((function(t){return t[1]}));i.push([t.id,"body.simplifyHome-switch-categories .z-top-container.has-menu {\n height: auto !important;\n min-height: unset !important;\n}\nbody.simplifyHome-switch-categories .bili-header-m > .bili-wrapper {\n visibility: hidden !important;\n height: 18px !important;\n}\nbody.simplifyHome-switch-categories .primary-menu-itnl {\n visibility: hidden !important;\n height: 24px !important;\n padding: 0 !important;\n}\nbody.simplifyHome-switch-categories .bili-header__channel {\n height: 12px !important;\n}\nbody.simplifyHome-switch-categories .bili-header__channel > * {\n display: none !important;\n}\nbody.simplifyHome-switch-categories.header-v3 .bili-wrapper {\n padding-top: 8px !important;\n border-top: none !important;\n}\nbody.simplifyHome-switch-trends .first-screen #reportFirst1 {\n display: none !important;\n}\nbody.simplifyHome-switch-trends .first-screen .space-between {\n margin-bottom: 0 !important;\n}\nbody.simplifyHome-switch-trends .bili-layout .bili-grid:first-child,\nbody.simplifyHome-switch-trends .rcmd-box-wrap {\n display: none !important;\n}\nbody.simplifyHome-switch-online .first-screen #reportFirst2 {\n display: none !important;\n}\nbody.simplifyHome-switch-ext-box .first-screen #reportFirst3 {\n display: none !important;\n}\nbody.simplifyHome-switch-special #bili_report_spe_rec {\n display: none !important;\n}\nbody.simplifyHome-switch-contact .bili-footer .b-footer-wrap,\nbody.simplifyHome-switch-contact .international-footer {\n display: none !important;\n}\nbody.simplifyHome-switch-elevator .storey-box .elevator {\n display: none !important;\n}",""]),t.exports=i},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/simplify/home"]=e():t["style/simplify/home"]=e()}(self,(function(){return function(){var t,e,n={929:function(t,e,n){var i=n(645)((function(t){return t[1]}));i.push([t.id,"body.simplifyHome-switch-categories .z-top-container.has-menu {\n height: auto !important;\n min-height: unset !important;\n}\nbody.simplifyHome-switch-categories .bili-header-m > .bili-wrapper {\n visibility: hidden !important;\n height: 18px !important;\n}\nbody.simplifyHome-switch-categories .primary-menu-itnl {\n visibility: hidden !important;\n height: 24px !important;\n padding: 0 !important;\n}\nbody.simplifyHome-switch-categories .bili-header__channel {\n height: 12px !important;\n}\nbody.simplifyHome-switch-categories .bili-header__channel > * {\n display: none !important;\n}\nbody.simplifyHome-switch-categories.header-v3 .bili-wrapper {\n padding-top: 8px !important;\n border-top: none !important;\n}\nbody.simplifyHome-switch-trends .first-screen #reportFirst1 {\n display: none !important;\n}\nbody.simplifyHome-switch-trends .first-screen .space-between {\n margin-bottom: 0 !important;\n}\nbody.simplifyHome-switch-trends .bili-layout .bili-grid:first-child,\nbody.simplifyHome-switch-trends .rcmd-box-wrap {\n display: none !important;\n}\nbody.simplifyHome-switch-online .first-screen #reportFirst2 {\n display: none !important;\n}\nbody.simplifyHome-switch-ext-box .first-screen #reportFirst3 {\n display: none !important;\n}\nbody.simplifyHome-switch-special #bili_report_spe_rec {\n display: none !important;\n}\nbody.simplifyHome-switch-contact .bili-footer .b-footer-wrap,\nbody.simplifyHome-switch-contact .international-footer {\n display: none !important;\n}\nbody.simplifyHome-switch-elevator .storey-box .elevator {\n display: none !important;\n}",""]),t.exports=i},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,i){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){
// eslint-disable-next-line prefer-destructuring
var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},910:function(t,e,n){var i=n(344);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,exports:{}};return n[t](r,r.exports,o),r.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&i&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((function(t){s[t]=function(){return n[t]}}));return s.default=function(){return n},o.d(r,s),r},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";o.d(r,{component:function(){return p}});var t=coreApis.componentApis.switchOptions,e=coreApis.settings,n=coreApis.spinQuery,i=coreApis.style,s=coreApis.utils,a=coreApis.utils.urls;const l={name:"simplifyOptions",dimAt:"checked",switchProps:{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline"},switches:{categories:{defaultValue:!1,displayName:"分区栏"},trends:{defaultValue:!1,displayName:"活动/热门视频"},online:{defaultValue:!1,displayName:"在线列表(旧)"},"ext-box":{defaultValue:!1,displayName:"电竞赛事(旧)"},special:{defaultValue:!1,displayName:"特别推荐(旧)"},contact:{defaultValue:!1,displayName:"联系方式"},elevator:{defaultValue:!1,displayName:"右侧分区导航(旧)"}}},c={name:"simplifyHome",displayName:"简化首页",description:{"zh-CN":"\n隐藏原版首页不需要的元素 / 分区.\n\n> 这个功能相当于 v1 的 `首页过滤`, v1 的 `简化首页` (清爽 / 极简首页) 需要重构后再发布, 问就是 Coming Soon.\n ".trim()},instantStyles:[{name:"simplifyHome",style:()=>Promise.resolve().then(o.t.bind(o,910,23))}],urlInclude:a.mainSiteUrls,tags:[componentsTags.style],entry:async()=>{if("https://www.bilibili.com/"!==document.URL)return;const{options:t}=(0,e.getComponentSettings)(c.name),o="-1"===(0,s.getCookieValue)("i-wanna-go-back"),r=await(async()=>{const t="https://www.bilibili.com/"!==document.URL;if(!o){const e=await(0,n.sq)((()=>dqa(".proxy-box > div")),(e=>e.length>0||t));return Object.fromEntries(e.map((t=>[t.id.replace(/^bili_/,""),{displayName:t.querySelector("header .name")?.textContent?.trim()??"未知分区",defaultValue:!1}])))}const e=["推广"],i=await(0,n.sq)((()=>dqa(".bili-grid .the-world")),(e=>e.length>3||t));console.log(i);const r=i?.filter((t=>!e.includes(t.id))).map((t=>{const e=(t=>{let e=t;for(;e.parentElement;){if(e.classList.contains("bili-grid"))return e;e=e.parentElement}return null})(t),n=t.id;return e?(e.dataset.area=n,[n,{displayName:n,defaultValue:!1}]):null})).filter((t=>null!==t))??[];return Object.fromEntries(r)})(),a={};Object.entries(r).forEach((([n,{displayName:i,defaultValue:o}])=>{const r={defaultValue:o,displayName:i},s=`switch-${n}`;void 0===t[s]&&(t[s]=o);const p=`switch-${n}`;(0,e.addComponentListener)(`${c.name}.${p}`,(t=>{document.body.classList.toggle(`${c.name}-${p}`,t)}),!0),l.switches[n]=r,a[n]=r})),t.simplifyOptions.switches=a;const p=Object.keys(r).map((t=>`\n body.simplifyHome-switch-${t} .bili-layout .bili-grid[data-area="${t}"],\n body.simplifyHome-switch-${t} .storey-box .proxy-box #bili_${t} {\n display: none !important;\n }\n `.trim())).join("\n");(0,i.addStyle)(p,"simplify-home-generated")}},p=(0,t.createSwitchOptions)(l)(c)}(),r=r.component}()}));
var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},245:function(t,e,n){var i=n(929);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,exports:{}};return n[t](r,r.exports,o),r.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var s={};t=t||[null,e({}),e([]),e(e)];for(var a=2&i&&n;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((function(t){s[t]=function(){return n[t]}}));return s.default=function(){return n},o.d(r,s),r},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";o.d(r,{component:function(){return p}});var t=coreApis.componentApis.switchOptions,e=coreApis.settings,n=coreApis.spinQuery,i=coreApis.style,s=coreApis.utils,a=coreApis.utils.urls;const l={name:"simplifyOptions",dimAt:"checked",switchProps:{checkedIcon:"mdi-eye-off-outline",notCheckedIcon:"mdi-eye-outline"},switches:{categories:{defaultValue:!1,displayName:"分区栏"},trends:{defaultValue:!1,displayName:"活动/热门视频"},online:{defaultValue:!1,displayName:"在线列表(旧)"},"ext-box":{defaultValue:!1,displayName:"电竞赛事(旧)"},special:{defaultValue:!1,displayName:"特别推荐(旧)"},contact:{defaultValue:!1,displayName:"联系方式"},elevator:{defaultValue:!1,displayName:"右侧分区导航(旧)"}}},c={name:"simplifyHome",displayName:"简化首页",description:{"zh-CN":"\n隐藏原版首页不需要的元素 / 分区.\n\n> 这个功能相当于 v1 的 `首页过滤`, v1 的 `简化首页` (清爽 / 极简首页) 需要重构后再发布, 问就是 Coming Soon.\n ".trim()},instantStyles:[{name:"simplifyHome",style:()=>Promise.resolve().then(o.t.bind(o,245,23))}],urlInclude:a.mainSiteUrls,tags:[componentsTags.style],entry:async()=>{if("https://www.bilibili.com/"!==document.URL)return;const{options:t}=(0,e.getComponentSettings)(c.name),o="-1"===(0,s.getCookieValue)("i-wanna-go-back"),r=await(async()=>{const t="https://www.bilibili.com/"!==document.URL;if(!o){const e=await(0,n.sq)((()=>dqa(".proxy-box > div")),(e=>e.length>0||t));return Object.fromEntries(e.map((t=>[t.id.replace(/^bili_/,""),{displayName:t.querySelector("header .name")?.textContent?.trim()??"未知分区",defaultValue:!1}])))}const e=["推广"],i=await(0,n.sq)((()=>dqa(".bili-grid .the-world")),(e=>e.length>3||t));console.log(i);const r=i?.filter((t=>!e.includes(t.id))).map((t=>{const e=(t=>{let e=t;for(;e.parentElement;){if(e.classList.contains("bili-grid"))return e;e=e.parentElement}return null})(t),n=t.id;return e?(e.dataset.area=n,[n,{displayName:n,defaultValue:!1}]):null})).filter((t=>null!==t))??[];return Object.fromEntries(r)})(),a={};Object.entries(r).forEach((([n,{displayName:i,defaultValue:o}])=>{const r={defaultValue:o,displayName:i},s=`switch-${n}`;void 0===t[s]&&(t[s]=o);const p=`switch-${n}`;(0,e.addComponentListener)(`${c.name}.${p}`,(t=>{document.body.classList.toggle(`${c.name}-${p}`,t)}),!0),l.switches[n]=r,a[n]=r})),t.simplifyOptions.switches=a;const p=Object.keys(r).map((t=>`\n body.simplifyHome-switch-${t} .bili-layout .bili-grid[data-area="${t}"],\n body.simplifyHome-switch-${t} .storey-box .proxy-box #bili_${t} {\n display: none !important;\n }\n `.trim())).join("\n");(0,i.addStyle)(p,"simplify-home-generated")}},p=(0,t.createSwitchOptions)(l)(c)}(),r=r.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["style/special-danmaku"]=n():t["style/special-danmaku"]=n()}(self,(function(){return function(){var t,n,e={359:function(t,n,e){var o=e(645)((function(t){return t[1]}));o.push([t.id,"body.disable-highlight-danmaku-style .b-danmaku-high {\n display: block !important;\n padding: 0 !important;\n line-height: 1.125 !important;\n}\nbody.disable-highlight-danmaku-style .b-danmaku-high .b-danmaku-high-icon {\n display: none !important;\n}\nbody.disable-highlight-danmaku-style .b-danmaku-high .b-danmaku-high-text {\n margin: 0 !important;\n text-shadow: inherit;\n}\n\nbody.disable-up-danmaku-style .b-danmaku-up {\n padding: 0 !important;\n line-height: 1.125 !important;\n background-color: transparent !important;\n border-radius: 0 !important;\n}\nbody.disable-up-danmaku-style .b-danmaku-up .b-danmaku-up-tip {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["style/special-danmaku"]=n():t["style/special-danmaku"]=n()}(self,(function(){return function(){var t,n,e={980:function(t,n,e){var o=e(645)((function(t){return t[1]}));o.push([t.id,"body.disable-highlight-danmaku-style .b-danmaku-high {\n display: block !important;\n padding: 0 !important;\n line-height: 1.125 !important;\n}\nbody.disable-highlight-danmaku-style .b-danmaku-high .b-danmaku-high-icon {\n display: none !important;\n}\nbody.disable-highlight-danmaku-style .b-danmaku-high .b-danmaku-high-text {\n margin: 0 !important;\n text-shadow: inherit;\n}\n\nbody.disable-up-danmaku-style .b-danmaku-up {\n padding: 0 !important;\n line-height: 1.125 !important;\n background-color: transparent !important;\n border-radius: 0 !important;\n}\nbody.disable-up-danmaku-style .b-danmaku-up .b-danmaku-up-tip {\n display: none !important;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=t(n);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},
// eslint-disable-next-line func-names
n.i=function(t,e,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var a={};if(o)for(var r=0;r<this.length;r++){
t=[[null,t,""]]);var r={};if(o)for(var a=0;a<this.length;a++){
// eslint-disable-next-line prefer-destructuring
var i=this[r][0];null!=i&&(a[i]=!0)}for(var u=0;u<t.length;u++){var s=[].concat(t[u]);o&&a[s[0]]||(e&&(s[2]?s[2]="".concat(e," and ").concat(s[2]):s[2]=e),n.push(s))}},n}},655:function(t,n,e){var o=e(359);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function a(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={id:t,exports:{}};return e[t](r,r.exports,a),r.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);a.r(r);var i={};t=t||[null,n({}),n([]),n(n)];for(var u=2&o&&e;"object"==typeof u&&!~t.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},a.d(r,i),r},a.d=function(t,n){for(var e in n)a.o(n,e)&&!a.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},a.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";a.d(r,{component:function(){return o}});var t=coreApis.componentApis.styledComponent,n=coreApis.utils.urls,e=coreApis.settings;const o={displayName:"禁用特殊弹幕样式",tags:[componentsTags.style],...(0,t.toggleStyle)("disableSpecialDanmaku",(()=>Promise.resolve().then(a.t.bind(a,655,23))),(({metadata:t,settings:{options:n}})=>{Object.keys(n).forEach((n=>{(0,e.addComponentListener)(`${t.name}.${n}`,(t=>{document.body.classList.toggle(`disable-${n}-danmaku-style`,t)}),!0)}))})),urlInclude:n.playerUrls,description:{"zh-CN":"移除高赞弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除."},options:{highlight:{displayName:"禁用高赞弹幕",defaultValue:!0},up:{displayName:"禁用UP主弹幕",defaultValue:!0}},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),r=r.component}()}));
var i=this[a][0];null!=i&&(r[i]=!0)}for(var u=0;u<t.length;u++){var s=[].concat(t[u]);o&&r[s[0]]||(e&&(s[2]?s[2]="".concat(e," and ").concat(s[2]):s[2]=e),n.push(s))}},n}},294:function(t,n,e){var o=e(980);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()}},o={};function r(t){var n=o[t];if(void 0!==n)return n.exports;var a=o[t]={id:t,exports:{}};return e[t](a,a.exports,r),a.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var a=Object.create(null);r.r(a);var i={};t=t||[null,n({}),n([]),n(n)];for(var u=2&o&&e;"object"==typeof u&&!~t.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},r.d(a,i),a},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return function(){"use strict";r.d(a,{component:function(){return o}});var t=coreApis.componentApis.styledComponent,n=coreApis.utils.urls,e=coreApis.settings;const o={displayName:"禁用特殊弹幕样式",tags:[componentsTags.style],...(0,t.toggleStyle)("disableSpecialDanmaku",(()=>Promise.resolve().then(r.t.bind(r,294,23))),(({metadata:t,settings:{options:n}})=>{Object.keys(n).forEach((n=>{(0,e.addComponentListener)(`${t.name}.${n}`,(t=>{document.body.classList.toggle(`disable-${n}-danmaku-style`,t)}),!0)}))})),urlInclude:n.playerUrls,description:{"zh-CN":"移除高赞弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除."},options:{highlight:{displayName:"禁用高赞弹幕",defaultValue:!0},up:{displayName:"禁用UP主弹幕",defaultValue:!0}},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),a=a.component}()}));

View File

@ -1,4 +1,4 @@
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["style/v1-panel"]=n():t["style/v1-panel"]=n()}(self,(function(){return function(){var t,n,e={625:function(t,n,e){var r=e(645)((function(t){return t[1]}));r.push([t.id,".be-settings > .be-popup {\n top: 0 !important;\n left: 0 !important;\n transform: translateZ(0) translateY(0) translateX(calc(-101% * var(--direction))) !important;\n --panel-height: 100vh !important;\n}\nbody.settings-panel-dock-right .be-settings > .be-popup {\n left: unset !important;\n right: 0 !important;\n}\n.be-settings > .be-popup.open {\n transform: translateZ(0) translateY(0) translateX(0) !important;\n}\n.be-settings > .be-popup > * {\n border-radius: 0 !important;\n border-width: 0 1px 0 0 !important;\n height: var(--panel-height) !important;\n}\nbody.settings-panel-dock-right .be-settings > .be-popup > * {\n border-width: 0 0 0 1px !important;\n}\n.be-settings > .sidebar > * {\n width: 52px !important;\n border-radius: 21px !important;\n transform: translateX(calc(-13px * var(--direction))) !important;\n display: flex !important;\n justify-content: flex-end !important;\n}\nbody.settings-panel-dock-right .be-settings > .sidebar > * {\n justify-content: flex-start !important;\n}\n.be-settings > .sidebar > * .be-icon {\n transition: 0.2s ease-out !important;\n}\n.be-settings > .sidebar > *:hover {\n transform: translateX(calc(8px * var(--direction))) !important;\n}\n.be-settings > .sidebar > *:hover .be-icon {\n transform: rotate(360deg) !important;\n}\n.be-settings > .sidebar > *.open {\n transform: translateX(calc(12px * var(--direction))) !important;\n}\n.be-settings .settings-panel-popup .component-tags .component-tags-item:last-child {\n border-radius: 0 !important;\n}\n.be-settings .widgets-panel {\n padding: 24px !important;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n}\n.be-settings .widgets-panel::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.be-settings .widgets-panel-header {\n margin-bottom: 36px !important;\n}\n.be-settings .widgets-panel .widgets-popup {\n --columns: 1;\n --medal-columns: 1;\n --title-columns: 1;\n left: 50%;\n top: calc(100% + 4px) !important;\n transform-origin: top !important;\n box-sizing: border-box;\n max-width: calc(100% + 44px) !important;\n max-height: unset !important;\n transform: translateX(calc(-50% * var(--direction))) scale(0.9) !important;\n display: flex !important;\n flex-wrap: wrap !important;\n}\n.be-settings .widgets-panel .widgets-popup > * {\n flex-grow: 1;\n}\n.be-settings .widgets-panel .widgets-popup.open {\n transform: translateX(calc(-50% * var(--direction))) scale(1) !important;\n}\nbody.settings-panel-dock-right .be-settings .widgets-panel .widgets-popup {\n left: unset !important;\n right: 50% !important;\n}",""]),t.exports=r},645:function(t){"use strict";
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["style/v1-panel"]=n():t["style/v1-panel"]=n()}(self,(function(){return function(){var t,n,e={337:function(t,n,e){var r=e(645)((function(t){return t[1]}));r.push([t.id,".be-settings > .be-popup {\n top: 0 !important;\n left: 0 !important;\n transform: translateZ(0) translateY(0) translateX(calc(-101% * var(--direction))) !important;\n --panel-height: 100vh !important;\n}\nbody.settings-panel-dock-right .be-settings > .be-popup {\n left: unset !important;\n right: 0 !important;\n}\n.be-settings > .be-popup.open {\n transform: translateZ(0) translateY(0) translateX(0) !important;\n}\n.be-settings > .be-popup > * {\n border-radius: 0 !important;\n border-width: 0 1px 0 0 !important;\n height: var(--panel-height) !important;\n}\nbody.settings-panel-dock-right .be-settings > .be-popup > * {\n border-width: 0 0 0 1px !important;\n}\n.be-settings > .sidebar > * {\n width: 52px !important;\n border-radius: 21px !important;\n transform: translateX(calc(-13px * var(--direction))) !important;\n display: flex !important;\n justify-content: flex-end !important;\n}\nbody.settings-panel-dock-right .be-settings > .sidebar > * {\n justify-content: flex-start !important;\n}\n.be-settings > .sidebar > * .be-icon {\n transition: 0.2s ease-out !important;\n}\n.be-settings > .sidebar > *:hover {\n transform: translateX(calc(8px * var(--direction))) !important;\n}\n.be-settings > .sidebar > *:hover .be-icon {\n transform: rotate(360deg) !important;\n}\n.be-settings > .sidebar > *.open {\n transform: translateX(calc(12px * var(--direction))) !important;\n}\n.be-settings .settings-panel-popup .component-tags .component-tags-item:last-child {\n border-radius: 0 !important;\n}\n.be-settings .widgets-panel {\n padding: 24px !important;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n}\n.be-settings .widgets-panel::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.be-settings .widgets-panel-header {\n margin-bottom: 36px !important;\n}\n.be-settings .widgets-panel .widgets-popup {\n --columns: 1;\n --medal-columns: 1;\n --title-columns: 1;\n left: 50%;\n top: calc(100% + 4px) !important;\n transform-origin: top !important;\n box-sizing: border-box;\n max-width: calc(100% + 44px) !important;\n max-height: unset !important;\n transform: translateX(calc(-50% * var(--direction))) scale(0.9) !important;\n display: flex !important;\n flex-wrap: wrap !important;\n}\n.be-settings .widgets-panel .widgets-popup > * {\n flex-grow: 1;\n}\n.be-settings .widgets-panel .widgets-popup.open {\n transform: translateX(calc(-50% * var(--direction))) scale(1) !important;\n}\nbody.settings-panel-dock-right .be-settings .widgets-panel .widgets-popup {\n left: unset !important;\n right: 50% !important;\n}",""]),t.exports=r},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=t(n);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ n.i=function(t,e,r){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var o={};if(r)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var p=[].concat(t[s]);r&&o[p[0]]||(e&&(p[2]?p[2]="".concat(e," and ").concat(p[2]):p[2]=e),n.push(p))}},n}},350:function(t,n,e){var r=e(625);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={id:t,exports:{}};return e[t](i,i.exports,o),i.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);o.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},o.d(i,a),i},o.d=function(t,n){for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";o.d(i,{component:function(){return t}});const t={name:"v1PanelStyle",displayName:"v1 风格设置面板",tags:[componentsTags.style],entry:none,description:{"zh-CN":"使用 v1 风格的设置面板样式"},instantStyles:[{name:"v1PanelStyle",style:()=>Promise.resolve().then(o.t.bind(o,350,23))}],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var p=[].concat(t[s]);r&&o[p[0]]||(e&&(p[2]?p[2]="".concat(e," and ").concat(p[2]):p[2]=e),n.push(p))}},n}},564:function(t,n,e){var r=e(337);r&&r.__esModule&&(r=r.default),t.exports="string"==typeof r?r:r.toString()}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={id:t,exports:{}};return e[t](i,i.exports,o),i.exports}n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var i=Object.create(null);o.r(i);var a={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},o.d(i,a),i},o.d=function(t,n){for(var e in n)o.o(n,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";o.d(i,{component:function(){return t}});const t={name:"v1PanelStyle",displayName:"v1 风格设置面板",tags:[componentsTags.style],entry:none,description:{"zh-CN":"使用 v1 风格的设置面板样式"},instantStyles:[{name:"v1PanelStyle",style:()=>Promise.resolve().then(o.t.bind(o,564,23))}],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["touch/combo-like"]=t():e["touch/combo-like"]=t()}(self,(function(){return function(){"use strict";var e,t,o={569:function(e){e.exports=coreApis.spinQuery}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var u=n[e]={exports:{}};return o[e](u,u.exports,r),u.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var u=Object.create(null);r.r(u);var c={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((function(e){c[e]=function(){return o[e]}}));return c.default=function(){return o},r.d(u,c),u},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return function(){r.d(u,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"touchComboLike",displayName:"三连触摸支持",tags:[componentsTags.touch],enabledByDefault:navigator.maxTouchPoints>0,entry:async()=>{const{select:e}=await Promise.resolve().then(r.t.bind(r,569,23)),t=await e(".ops span.like");if(!t)return;t.style.userSelect="none";const o=(e,o)=>{const n=new CustomEvent(e,o);t.dispatchEvent(n)};let n=!0;t.addEventListener("touchstart",(e=>{e.preventDefault(),n=!0,setTimeout((()=>n=!1),200),o("mousedown",e)})),t.addEventListener("touchend",(e=>{e.preventDefault(),o("mouseup",e),n&&o("click",e)}))},description:{"zh-CN":"为视频页面中的三连操作 (长按点赞) 启用触摸支持."},urlInclude:e.videoUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),u=u.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["touch/combo-like"]=t():e["touch/combo-like"]=t()}(self,(function(){return function(){"use strict";var e,t,o={569:function(e){e.exports=coreApis.spinQuery}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var u=n[e]={exports:{}};return o[e](u,u.exports,r),u.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var u=Object.create(null);r.r(u);var c={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((function(e){c[e]=function(){return o[e]}}));return c.default=function(){return o},r.d(u,c),u},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return function(){r.d(u,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"touchComboLike",displayName:"三连触摸支持",tags:[componentsTags.touch],enabledByDefault:navigator.maxTouchPoints>0,entry:async()=>{const{select:e}=await Promise.resolve().then(r.t.bind(r,569,23)),t=await e(".ops span.like");if(!t)return;t.style.userSelect="none";const o=(e,o)=>{const n=new CustomEvent(e,o);t.dispatchEvent(n)};let n=!0;t.addEventListener("touchstart",(e=>{e.preventDefault(),n=!0,setTimeout((()=>n=!1),200),o("mousedown",e)})),t.addEventListener("touchend",(e=>{e.preventDefault(),o("mouseup",e),n&&o("click",e)}))},description:{"zh-CN":"为视频页面中的三连操作 (长按点赞) 启用触摸支持."},urlInclude:e.videoUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),u=u.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["touch/mini-player"]=t():e["touch/mini-player"]=t()}(self,(function(){return function(){var e={678:function(e,t,n){"use strict";n.r(t),n.d(t,{touchLiveMiniPlayer:function(){return i}});var o=n(569);const i=async e=>{const t=await(0,o.select)(".live-player-ctnr");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:i,disableTouchMove:r}=await Promise.resolve().then(n.bind(n,786));e?i(t,{minMoveDistance:10}):r(t)}},786:function(e,t,n){"use strict";n.r(t),n.d(t,{disableTouchMove:function(){return s},enableTouchMove:function(){return a}});var o=coreApis.settings;const i=(e,t)=>new MouseEvent(e,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,bubbles:!0,cancelable:!0,view:unsafeWindow,detail:1}),r=[],c={passive:!1,capture:!0},a=(e,t)=>{if(r.some((t=>t.element===e)))return;let n,a,s;const u=lodash.get(t,"minMoveDistance",(0,o.getComponentSettings)("touchMiniPlayer").options.touchMoveDistance),l=e=>{if(e.touches.length<1)return;const t=e.touches[0];n={x:t.clientX,y:t.clientY},e.target.dispatchEvent(i("mousedown",t))};e.addEventListener("touchstart",l,c);const d=e=>{if(1!==e.touches.length)return;const t=e.touches[0],o={x:t.clientX,y:t.clientY};((e,t,n)=>Math.abs(e.x-t.x)**2+Math.abs(e.y-t.y)**2>=n*n)(n,o,u)?(e.target.dispatchEvent(i("mousemove",t)),s=!0,e.cancelable&&e.preventDefault()):s=!1,a=t};e.addEventListener("touchmove",d,c);const p=e=>{s&&(e.target.dispatchEvent(i("mouseup",a)),e.cancelable&&e.preventDefault(),s=!1)};e.addEventListener("touchend",p,c),e.addEventListener("touchcancel",p,c),r.push({element:e,touchstart:l,touchmove:d,touchend:p})},s=e=>{const t=r.findIndex((t=>t.element===e));if(-1===t)return;const n=r[t];["touchstart","touchmove","touchend"].forEach((t=>{e.removeEventListener(t,n[t],c)})),e.removeEventListener("touchcancel",n.touchend,c),r.splice(t,1)}},779:function(e,t,n){"use strict";n.r(t),n.d(t,{touchVideoMiniPlayer:function(){return a}});var o=n(569),i=coreApis.style,r=n(477),c=n.n(r);const a=async e=>{const t=await(0,o.select)("#bilibili-player");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:r,disableTouchMove:a}=await Promise.resolve().then(n.bind(n,786)),s="touch-mini-player";e?((0,i.addStyle)(c(),s),r(t)):((0,i.removeStyle)(s),a(t))}},444:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#bilibili-player.mini-player .drag-bar {\n touch-action: none !important;\n height: 40px !important;\n line-height: 40px !important;\n top: -40px !important;\n}\n#bilibili-player.mini-player .drag-bar i:last-child {\n margin: 10px !important;\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["touch/mini-player"]=t():e["touch/mini-player"]=t()}(self,(function(){return function(){var e={304:function(e,t,n){"use strict";n.r(t),n.d(t,{touchLiveMiniPlayer:function(){return i}});var o=n(569);const i=async e=>{const t=await(0,o.select)(".live-player-ctnr");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:i,disableTouchMove:r}=await Promise.resolve().then(n.bind(n,110));e?i(t,{minMoveDistance:10}):r(t)}},110:function(e,t,n){"use strict";n.r(t),n.d(t,{disableTouchMove:function(){return s},enableTouchMove:function(){return a}});var o=coreApis.settings;const i=(e,t)=>new MouseEvent(e,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,bubbles:!0,cancelable:!0,view:unsafeWindow,detail:1}),r=[],c={passive:!1,capture:!0},a=(e,t)=>{if(r.some((t=>t.element===e)))return;let n,a,s;const u=lodash.get(t,"minMoveDistance",(0,o.getComponentSettings)("touchMiniPlayer").options.touchMoveDistance),l=e=>{if(e.touches.length<1)return;const t=e.touches[0];n={x:t.clientX,y:t.clientY},e.target.dispatchEvent(i("mousedown",t))};e.addEventListener("touchstart",l,c);const d=e=>{if(1!==e.touches.length)return;const t=e.touches[0],o={x:t.clientX,y:t.clientY};((e,t,n)=>Math.abs(e.x-t.x)**2+Math.abs(e.y-t.y)**2>=n*n)(n,o,u)?(e.target.dispatchEvent(i("mousemove",t)),s=!0,e.cancelable&&e.preventDefault()):s=!1,a=t};e.addEventListener("touchmove",d,c);const p=e=>{s&&(e.target.dispatchEvent(i("mouseup",a)),e.cancelable&&e.preventDefault(),s=!1)};e.addEventListener("touchend",p,c),e.addEventListener("touchcancel",p,c),r.push({element:e,touchstart:l,touchmove:d,touchend:p})},s=e=>{const t=r.findIndex((t=>t.element===e));if(-1===t)return;const n=r[t];["touchstart","touchmove","touchend"].forEach((t=>{e.removeEventListener(t,n[t],c)})),e.removeEventListener("touchcancel",n.touchend,c),r.splice(t,1)}},47:function(e,t,n){"use strict";n.r(t),n.d(t,{touchVideoMiniPlayer:function(){return a}});var o=n(569),i=coreApis.style,r=n(844),c=n.n(r);const a=async e=>{const t=await(0,o.select)("#bilibili-player");if(!t)return void console.warn("mini player touch move: player not found");const{enableTouchMove:r,disableTouchMove:a}=await Promise.resolve().then(n.bind(n,110)),s="touch-mini-player";e?((0,i.addStyle)(c(),s),r(t)):((0,i.removeStyle)(s),a(t))}},333:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,"#bilibili-player.mini-player .drag-bar {\n touch-action: none !important;\n height: 40px !important;\n line-height: 40px !important;\n top: -40px !important;\n}\n#bilibili-player.mini-player .drag-bar i:last-child {\n margin: 10px !important;\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var i={};if(o)for(var r=0;r<this.length;r++){
// eslint-disable-next-line prefer-destructuring
var c=this[r][0];null!=c&&(i[c]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);o&&i[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},477:function(e,t,n){var o=n(444);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},569:function(e){"use strict";e.exports=coreApis.spinQuery}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={id:o,exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";n.d(o,{component:function(){return i}});var e=coreApis.utils.urls;const t=async e=>{if(document.URL.startsWith("https://live.bilibili.com")){const{touchLiveMiniPlayer:t}=await Promise.resolve().then(n.bind(n,678));await t(e)}else{const{touchVideoMiniPlayer:t}=await Promise.resolve().then(n.bind(n,779));await t(e)}},i={name:"touchMiniPlayer",displayName:"迷你播放器触摸拖动",description:{"zh-CN":"使迷你播放器的拖动条可以触摸拖动."},enabledByDefault:navigator.maxTouchPoints>0,tags:[componentsTags.touch],urlInclude:[...e.videoAndBangumiUrls,...e.liveUrls],entry:()=>t(!0),reload:()=>t(!0),unload:()=>t(!1),options:{touchMoveDistance:{displayName:"拖动触发最小距离",defaultValue:10,hidden:!0}},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),o=o.component}()}));
var c=this[r][0];null!=c&&(i[c]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);o&&i[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},844:function(e,t,n){var o=n(333);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},569:function(e){"use strict";e.exports=coreApis.spinQuery}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={id:o,exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){"use strict";n.d(o,{component:function(){return i}});var e=coreApis.utils.urls;const t=async e=>{if(document.URL.startsWith("https://live.bilibili.com")){const{touchLiveMiniPlayer:t}=await Promise.resolve().then(n.bind(n,304));await t(e)}else{const{touchVideoMiniPlayer:t}=await Promise.resolve().then(n.bind(n,47));await t(e)}},i={name:"touchMiniPlayer",displayName:"迷你播放器触摸拖动",description:{"zh-CN":"使迷你播放器的拖动条可以触摸拖动."},enabledByDefault:navigator.maxTouchPoints>0,tags:[componentsTags.touch],urlInclude:[...e.videoAndBangumiUrls,...e.liveUrls],entry:()=>t(!0),reload:()=>t(!0),unload:()=>t(!1),options:{touchMoveDistance:{displayName:"拖动触发最小距离",defaultValue:10,hidden:!0}},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),o=o.component}()}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/change-update-urls"]=t():e["utils/change-update-urls"]=t()}(self,(function(){return function(){"use strict";var e={912:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});var o=function(){var e=this,t=e.$createElement;return(e._self._c||t)("DefaultWidget",{attrs:{name:"替换更新链接",icon:"mdi-file-replace-outline",disabled:e.busy},on:{click:function(t){return e.replaceBranch()}}})};o._withStripped=!0;var r=coreApis.settings,i=coreApis.toast,s=coreApis.utils.log,a=coreApis.ui;var c=function(e,t,n,o,r,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:a.DefaultWidget},data:()=>({busy:!1}),methods:{async replaceBranch(){const e=window.prompt("输入希望替换成的分支名称");if(e){this.busy=!0;try{const{options:t}=(0,r.getComponentSettings)("autoUpdate");Object.values(t.urls).forEach((t=>{Object.values(t).forEach((t=>{const n=/^(https:\/\/github\.com\/.+\/Bilibili-Evolved\/raw\/)(.+?)(\/)/;if(n.test(t.url))return void(t.url=t.url.replace(n,`$1${e}$3`));const o=/^(https:\/\/raw\.githubusercontent\.com\/.+\/Bilibili-Evolved\/)(.+?)(\/)/;if(o.test(t.url))return void(t.url=t.url.replace(o,`$1${e}$3`));const r=/^(https:\/\/cdn\.jsdelivr\.net\/gh\/.+\/Bilibili-Evolved@)(.+?)(\/)/;r.test(t.url)?t.url=t.url.replace(r,`$1${e}$3`):console.log("skip record",t)}))})),i.Toast.info("替换完成","替换更新链接",3e3)}catch(e){(0,s.logError)(e)}finally{this.busy=!1}}}}}),o,[],!1,null,null,null);c.options.__file="registry/lib/components/utils/change-update-urls/Widget.vue";var l=c.exports}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){n.d(o,{component:function(){return e}});const e={name:"changeUpdateUrls",displayName:"更新链接替换",description:"批量更换已安装功能的更新链接的分支, 对本地安装的功能无效.",entry:none,tags:[componentsTags.utils],widget:{component:()=>Promise.resolve().then(n.bind(n,912)).then((e=>e.default))},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),o=o.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/change-update-urls"]=t():e["utils/change-update-urls"]=t()}(self,(function(){return function(){"use strict";var e={251:function(e,t,n){n.r(t),n.d(t,{default:function(){return a}});var o=function(){var e=this,t=e.$createElement;return(e._self._c||t)("DefaultWidget",{attrs:{name:"替换更新链接",icon:"mdi-file-replace-outline",disabled:e.busy},on:{click:function(t){return e.replaceBranch()}}})};o._withStripped=!0;var r=coreApis.settings,i=coreApis.toast,s=coreApis.utils.log,c=coreApis.ui;var l=function(e,t,n,o,r,i,s,c){var l,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=l):r&&(l=c?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(a.functional){a._injectStyles=l;var u=a.render;a.render=function(e,t){return l.call(t),u(e,t)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:a}}(Vue.extend({components:{DefaultWidget:c.DefaultWidget},data:()=>({busy:!1}),methods:{async replaceBranch(){const e=window.prompt("输入希望替换成的分支名称");if(e){this.busy=!0;try{const{options:t}=(0,r.getComponentSettings)("autoUpdate");Object.values(t.urls).forEach((t=>{Object.values(t).forEach((t=>{const n=/^(https:\/\/github\.com\/.+\/Bilibili-Evolved\/raw\/)(.+?)(\/)/;if(n.test(t.url))return void(t.url=t.url.replace(n,`$1${e}$3`));const o=/^(https:\/\/raw\.githubusercontent\.com\/.+\/Bilibili-Evolved\/)(.+?)(\/)/;if(o.test(t.url))return void(t.url=t.url.replace(o,`$1${e}$3`));const r=/^(https:\/\/cdn\.jsdelivr\.net\/gh\/.+\/Bilibili-Evolved@)(.+?)(\/)/;r.test(t.url)?t.url=t.url.replace(r,`$1${e}$3`):console.log("skip record",t)}))})),i.Toast.info("替换完成","替换更新链接",3e3)}catch(e){(0,s.logError)(e)}finally{this.busy=!1}}}}}),o,[],!1,null,null,null);l.options.__file="registry/lib/components/utils/change-update-urls/Widget.vue";var a=l.exports}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){n.d(o,{component:function(){return e}});const e={name:"changeUpdateUrls",displayName:"更新链接替换",description:"批量更换已安装功能的更新链接的分支, 对本地安装的功能无效.",entry:none,tags:[componentsTags.utils],widget:{component:()=>Promise.resolve().then(n.bind(n,251)).then((e=>e.default))},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),o=o.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/check-in-center"]=t():e["utils/check-in-center"]=t()}(self,(function(){return function(){"use strict";var e={813:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"multiple-widgets"},e._l(e.items,(function(t){return n("DefaultWidget",{key:t.name,attrs:{disabled:t.disabled,"data-name":t.name,name:t.displayName,icon:t.icon},on:{click:function(n){return e.runItemAction(t,n)}}})})),1)};i._withStripped=!0;var o=coreApis.ui,s=coreApis.ajax,r=coreApis.toast,a=n(109),c=coreApis.pluginApis.data;const l=[{name:"seeds-to-coins",displayName:"瓜子换硬币",icon:"mdi-seed-outline",action:async()=>{const e=await(0,s.postTextWithCredentials)("https://api.live.bilibili.com/xlive/revenue/v1/wallet/silver2coin",(0,a.formData)({csrf:(0,a.getCsrf)(),csrf_token:(0,a.getCsrf)()})),t=JSON.parse(e);0!==t.code?r.Toast.info(t.message,"瓜子换硬币",3e3):r.Toast.success(`${t.message}\n剩余银瓜子:${t.data.silver}`,"瓜子换硬币",3e3)}},{name:"live-check-in",displayName:"直播间签到",icon:"mdi-calendar-check",action:async()=>{const e=await(0,s.getJsonWithCredentials)("https://api.live.bilibili.com/xlive/web-ucenter/v1/sign/DoSign");if(0!==e.code)r.Toast.info(e.message,"直播间签到",3e3);else{const{text:t,specialText:n,allDays:i,hadSignDays:o}=e.data,s=`签到成功, 获得了${t} ${n}\n本月进度: ${o} / ${i}`;r.Toast.success(s,"直播间签到",3e3)}}}],[d]=(0,c.registerAndGetData)("checkInCenter.items",l);var u=function(e,t,n,i,o,s,r,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),r?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:o.DefaultWidget},data:()=>({items:d}),methods:{async runItemAction(e,t){try{this.$set(e,"disabled",!0);const n=this.$el.querySelector(`[data-name='${e.name}']`);await e.action(n,t)}finally{e.disabled=!1}}}}),i,[],!1,null,null,null);u.options.__file="registry/lib/components/utils/check-in-center/Widget.vue";var f=u.exports},109:function(e){e.exports=coreApis.utils}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){n.d(i,{component:function(){return t}});var e=n(109);const t={name:"checkInCenter",displayName:"签到助手",description:{"zh-CN":"在功能面板中提供一些可以每日进行的操作."},tags:[componentsTags.utils],entry:none,widget:{component:()=>Promise.resolve().then(n.bind(n,813)).then((e=>e.default)),condition:()=>Boolean((0,e.getUID)())},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/check-in-center"]=t():e["utils/check-in-center"]=t()}(self,(function(){return function(){"use strict";var e={181:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"multiple-widgets"},e._l(e.items,(function(t){return n("DefaultWidget",{key:t.name,attrs:{disabled:t.disabled,"data-name":t.name,name:t.displayName,icon:t.icon},on:{click:function(n){return e.runItemAction(t,n)}}})})),1)};i._withStripped=!0;var o=coreApis.ui,s=coreApis.ajax,r=coreApis.toast,a=n(109),c=coreApis.pluginApis.data;const l=[{name:"seeds-to-coins",displayName:"瓜子换硬币",icon:"mdi-seed-outline",action:async()=>{const e=await(0,s.postTextWithCredentials)("https://api.live.bilibili.com/xlive/revenue/v1/wallet/silver2coin",(0,a.formData)({csrf:(0,a.getCsrf)(),csrf_token:(0,a.getCsrf)()})),t=JSON.parse(e);0!==t.code?r.Toast.info(t.message,"瓜子换硬币",3e3):r.Toast.success(`${t.message}\n剩余银瓜子:${t.data.silver}`,"瓜子换硬币",3e3)}},{name:"live-check-in",displayName:"直播间签到",icon:"mdi-calendar-check",action:async()=>{const e=await(0,s.getJsonWithCredentials)("https://api.live.bilibili.com/xlive/web-ucenter/v1/sign/DoSign");if(0!==e.code)r.Toast.info(e.message,"直播间签到",3e3);else{const{text:t,specialText:n,allDays:i,hadSignDays:o}=e.data,s=`签到成功, 获得了${t} ${n}\n本月进度: ${o} / ${i}`;r.Toast.success(s,"直播间签到",3e3)}}}],[d]=(0,c.registerAndGetData)("checkInCenter.items",l);var u=function(e,t,n,i,o,s,r,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),r?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:o.DefaultWidget},data:()=>({items:d}),methods:{async runItemAction(e,t){try{this.$set(e,"disabled",!0);const n=this.$el.querySelector(`[data-name='${e.name}']`);await e.action(n,t)}finally{e.disabled=!1}}}}),i,[],!1,null,null,null);u.options.__file="registry/lib/components/utils/check-in-center/Widget.vue";var f=u.exports},109:function(e){e.exports=coreApis.utils}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){n.d(i,{component:function(){return t}});var e=n(109);const t={name:"checkInCenter",displayName:"签到助手",description:{"zh-CN":"在功能面板中提供一些可以每日进行的操作."},tags:[componentsTags.utils],entry:none,widget:{component:()=>Promise.resolve().then(n.bind(n,181)).then((e=>e.default)),condition:()=>Boolean((0,e.getUID)())},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/column-unlock"]=t():e["utils/column-unlock"]=t()}(self,(function(){return function(){"use strict";var e,t,o={163:function(e){e.exports=coreApis.style}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var c=n[e]={exports:{}};return o[e](c,c.exports,r),c.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var c=Object.create(null);r.r(c);var u={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((function(e){u[e]=function(){return o[e]}}));return u.default=function(){return o},r.d(c,u),c},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){r.d(c,{component:function(){return u}});let e=!1,t=!0;const o="column-unlock",n=async()=>{t=!0;const{addStyle:n}=await Promise.resolve().then(r.t.bind(r,163,23));n(".article-holder { user-select: text !important }",o),e||(e=!0,document.addEventListener("copy",(e=>{t&&e.stopImmediatePropagation()}),{capture:!0}))},u={name:"columnUnlock",displayName:"专栏文字选择",entry:n,reload:n,unload:async()=>{document.getElementById(o)?.remove(),t=!1},tags:[componentsTags.utils],description:{"zh-CN":"使专栏的文字可以选择."},urlInclude:["//www.bilibili.com/read/"],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),c=c.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/column-unlock"]=t():e["utils/column-unlock"]=t()}(self,(function(){return function(){"use strict";var e,t,o={163:function(e){e.exports=coreApis.style}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var c=n[e]={exports:{}};return o[e](c,c.exports,r),c.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var c=Object.create(null);r.r(c);var u={};e=e||[null,t({}),t([]),t(t)];for(var i=2&n&&o;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((function(e){u[e]=function(){return o[e]}}));return u.default=function(){return o},r.d(c,u),c},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return function(){r.d(c,{component:function(){return u}});let e=!1,t=!0;const o="column-unlock",n=async()=>{t=!0;const{addStyle:n}=await Promise.resolve().then(r.t.bind(r,163,23));n(".article-holder { user-select: text !important }",o),e||(e=!0,document.addEventListener("copy",(e=>{t&&e.stopImmediatePropagation()}),{capture:!0}))},u={name:"columnUnlock",displayName:"专栏文字选择",entry:n,reload:n,unload:async()=>{document.getElementById(o)?.remove(),t=!1},tags:[componentsTags.utils],description:{"zh-CN":"使专栏的文字可以选择."},urlInclude:["//www.bilibili.com/read/"],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),c=c.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/comments/copy-link"]=t():e["utils/comments/copy-link"]=t()}(self,(function(){return function(){"use strict";var e,t,n={169:function(e){e.exports=coreApis.componentApis.utils.commentApis}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return n}});var e=coreApis.utils,t=coreApis.utils.urls;const n={name:"copyCommentsLink",displayName:"复制评论链接",description:{"zh-CN":"开启后, 可在每条评论的菜单中选择复制链接."},entry:async()=>{const{forEachCommentItem:n,addMenuItem:o}=await Promise.resolve().then(r.t.bind(r,169,23));n({added:n=>{const r=n=>{n.forEach((n=>{o(n,{className:"copy-link",text:"复制链接",action:async()=>{const o=(n=>{if(document.URL.match(/\/\/t\.bilibili\.com\/(\d+)/))return"";if(t.feedsUrls.every((t=>!(0,e.matchUrlPattern)(t))))return"";let o=n;for(;null!==o&&o!==document.body;){if(o.hasAttribute("data-did"))return`https://t.bilibili.com/${o.getAttribute("data-did")}`;o=o.parentElement}return""})(n.element)||document.URL.replace(location.hash,"");await navigator.clipboard.writeText(`${o}#reply${n.id}`);const r=dq(n.element,".opera-list");r&&(r.style.display="none")}})}))};r([n,...n.replies]),n.onRepliesUpdate=e=>r(e)}})},tags:[componentsTags.utils],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/comments/copy-link"]=t():e["utils/comments/copy-link"]=t()}(self,(function(){return function(){"use strict";var e,t,n={169:function(e){e.exports=coreApis.componentApis.utils.commentApis}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var u=2&o&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){c[e]=function(){return n[e]}}));return c.default=function(){return n},r.d(i,c),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return n}});var e=coreApis.utils,t=coreApis.utils.urls;const n={name:"copyCommentsLink",displayName:"复制评论链接",description:{"zh-CN":"开启后, 可在每条评论的菜单中选择复制链接."},entry:async()=>{const{forEachCommentItem:n,addMenuItem:o}=await Promise.resolve().then(r.t.bind(r,169,23));n({added:n=>{const r=n=>{n.forEach((n=>{o(n,{className:"copy-link",text:"复制链接",action:async()=>{const o=(n=>{if(document.URL.match(/\/\/t\.bilibili\.com\/(\d+)/))return"";if(t.feedsUrls.every((t=>!(0,e.matchUrlPattern)(t))))return"";let o=n;for(;null!==o&&o!==document.body;){if(o.hasAttribute("data-did"))return`https://t.bilibili.com/${o.getAttribute("data-did")}`;o=o.parentElement}return""})(n.element)||document.URL.replace(location.hash,"");await navigator.clipboard.writeText(`${o}#reply${n.id}`);const r=dq(n.element,".opera-list");r&&(r.style.display="none")}})}))};r([n,...n.replies]),n.onRepliesUpdate=e=>r(e)}})},tags:[componentsTags.utils],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/download-audio"]=t():e["utils/download-audio"]=t()}(self,(function(){return function(){"use strict";var e,t,o={875:function(e,t,o){o.r(t),o.d(t,{default:function(){return c}});var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("DefaultWidget",{attrs:{disabled:e.disabled||e.downloading,name:e.progress||"下载音频",icon:"mdi-download"},on:{click:function(t){return e.download()}}})};n._withStripped=!0;var r=coreApis.spinQuery,i=coreApis.observer,s=coreApis.download,a=coreApis.ui;function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class l{constructor(){d(this,"progress",null),d(this,"sid",void 0)}async getDownloadUrl(){const{getJsonWithCredentials:e}=await Promise.resolve().then(o.t.bind(o,663,23)),{Toast:t}=await Promise.resolve().then(o.t.bind(o,141,23)),n=`https://www.bilibili.com/audio/music-service-c/web/url?sid=${this.sid}&privilege=2&quality=2`,r=await e(n);return 0!==r.code?(t.error("获取下载链接失败, 请确保当前账号有下载权限.","下载音频",1e4),null):r.data.cdns.shift()}async download(){const e=await this.getDownloadUrl();return new Promise(((t,o)=>{const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.addEventListener("load",(()=>t(n.response))),n.addEventListener("error",(()=>o(n.status))),n.addEventListener("progress",(e=>this.progress?.(100*e.loaded/e.total))),n.send()}))}}var u=function(e,t,o,n,r,i,s,a){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=d):r&&(d=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(e,t){return d.call(t),u(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:a.DefaultWidget},data:()=>({progress:"",disabled:!0,downloader:new l,downloading:!1}),async mounted(){const e=await(0,r.select)("#app"),t=this.downloader;t.progress=e=>{this.progress=`${Math.round(e)}%`},(0,i.childList)(e,(()=>{const e=document.URL.match(/bilibili\.com\/audio\/au([\d]+)/);e&&e[1]?(this.disabled=!1,[,t.sid]=e):this.disabled=!0}))},methods:{async download(){if(!this.downloading){this.downloading=!0;try{const e=this.downloader;if(null===e.sid)return;const t=await e.download(),o=`${(()=>{const e=document.querySelector(".song-title");return e?e.getAttribute("title"):"神秘音频"})()}.mp3`;this.progress="",await s.DownloadPackage.single(o,t)}finally{this.downloading=!1}}}}}),n,[],!1,null,null,null);u.options.__file="registry/lib/components/utils/download-audio/DownloadAudio.vue";var c=u.exports},663:function(e){e.exports=coreApis.ajax},141:function(e){e.exports=coreApis.toast}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){s[e]=function(){return o[e]}}));return s.default=function(){return o},r.d(i,s),i},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return e}});const e={name:"downloadAudio",displayName:"下载音频",entry:none,tags:[componentsTags.utils],description:{"zh-CN":"\n开启音频下载支持, 音频页面中可以在功能面板中下载当前音频.\n\n> 需要进入音频的详细信息页面才能下载, 在其他页面中此按钮将不可点击.\n ".trim()},widget:{component:()=>Promise.resolve().then(r.bind(r,875)).then((e=>e.default))},urlInclude:["//www.bilibili.com/audio/"],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/download-audio"]=t():e["utils/download-audio"]=t()}(self,(function(){return function(){"use strict";var e,t,o={917:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("DefaultWidget",{attrs:{disabled:e.disabled||e.downloading,name:e.progress||"下载音频",icon:"mdi-download"},on:{click:function(t){return e.download()}}})};n._withStripped=!0;var r=coreApis.spinQuery,i=coreApis.observer,s=coreApis.download,a=coreApis.ui;function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}class l{constructor(){d(this,"progress",null),d(this,"sid",void 0)}async getDownloadUrl(){const{getJsonWithCredentials:e}=await Promise.resolve().then(o.t.bind(o,663,23)),{Toast:t}=await Promise.resolve().then(o.t.bind(o,141,23)),n=`https://www.bilibili.com/audio/music-service-c/web/url?sid=${this.sid}&privilege=2&quality=2`,r=await e(n);return 0!==r.code?(t.error("获取下载链接失败, 请确保当前账号有下载权限.","下载音频",1e4),null):r.data.cdns.shift()}async download(){const e=await this.getDownloadUrl();return new Promise(((t,o)=>{const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.addEventListener("load",(()=>t(n.response))),n.addEventListener("error",(()=>o(n.status))),n.addEventListener("progress",(e=>this.progress?.(100*e.loaded/e.total))),n.send()}))}}var c=function(e,t,o,n,r,i,s,a){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=d):r&&(d=a?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,d):[d]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:a.DefaultWidget},data:()=>({progress:"",disabled:!0,downloader:new l,downloading:!1}),async mounted(){const e=await(0,r.select)("#app"),t=this.downloader;t.progress=e=>{this.progress=`${Math.round(e)}%`},(0,i.childList)(e,(()=>{const e=document.URL.match(/bilibili\.com\/audio\/au([\d]+)/);e&&e[1]?(this.disabled=!1,[,t.sid]=e):this.disabled=!0}))},methods:{async download(){if(!this.downloading){this.downloading=!0;try{const e=this.downloader;if(null===e.sid)return;const t=await e.download(),o=`${(()=>{const e=document.querySelector(".song-title");return e?e.getAttribute("title"):"神秘音频"})()}.mp3`;this.progress="",await s.DownloadPackage.single(o,t)}finally{this.downloading=!1}}}}}),n,[],!1,null,null,null);c.options.__file="registry/lib/components/utils/download-audio/DownloadAudio.vue";var u=c.exports},663:function(e){e.exports=coreApis.ajax},141:function(e){e.exports=coreApis.toast}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return o[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){s[e]=function(){return o[e]}}));return s.default=function(){return o},r.d(i,s),i},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){r.d(i,{component:function(){return e}});const e={name:"downloadAudio",displayName:"下载音频",entry:none,tags:[componentsTags.utils],description:{"zh-CN":"\n开启音频下载支持, 音频页面中可以在功能面板中下载当前音频.\n\n> 需要进入音频的详细信息页面才能下载, 在其他页面中此按钮将不可点击.\n ".trim()},widget:{component:()=>Promise.resolve().then(r.bind(r,917)).then((e=>e.default))},urlInclude:["//www.bilibili.com/audio/"],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["utils/image-resolution"]=e():t["utils/image-resolution"]=e()}(self,(function(){return function(){var t,e,n={425:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".favInfo-box .collection-cover img,\n.favInfo-box .favInfo-cover img {\n width: 100% !important;\n -o-object-position: left !important;\n object-position: left !important;\n}\n\n.bb-comment .sailing .sailing-img,\n.comment-bilibili-fold .sailing .sailing-img {\n width: 288px;\n}",""]),t.exports=o},645:function(t){"use strict";
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["utils/image-resolution"]=e():t["utils/image-resolution"]=e()}(self,(function(){return function(){var t,e,n={941:function(t,e,n){var o=n(645)((function(t){return t[1]}));o.push([t.id,".favInfo-box .collection-cover img,\n.favInfo-box .favInfo-cover img {\n width: 100% !important;\n -o-object-position: left !important;\n object-position: left !important;\n}\n\n.bb-comment .sailing .sailing-img,\n.comment-bilibili-fold .sailing .sailing-img {\n width: 288px;\n}",""]),t.exports=o},645:function(t){"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ e.i=function(t,n,o){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},519:function(t,e,n){var o=n(425);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},156:function(t){"use strict";t.exports=coreApis.observer}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return c}});var t=coreApis.componentApis.styledComponent;const e=/@(\d+)[Ww]_(\d+)[Hh]/,n=["#certify-img1","#certify-img2"],o=(t,e)=>{const n=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT);let o=n.nextNode();for(;o;)e(o),o=n.nextNode()},a=async(t,o)=>{const{attributes:i}=await Promise.resolve().then(r.t.bind(r,156,23)),a=(r,i)=>{const a=r(o);if(null===a)return;if(n.some((t=>o.matches(t))))return;const s=a.match(e);if(!s)return;const[,c,u]=s,f=parseInt(o.getAttribute("data-resolution-width")||"0");if(parseInt(c)>=f&&0!==f)return;null===o.getAttribute("width")&&null===o.getAttribute("height")&&(o.classList.contains("bili-avatar-img")?o.setAttribute("height",u):o.setAttribute("width",c));const l=Math.round(t*parseInt(c)).toString(),d=Math.round(t*parseInt(u)).toString();o.setAttribute("data-resolution-width",l),i(o,a.replace(e,`@${l}w_${d}h`))};i(o,(()=>{a((t=>t.getAttribute("src")),((t,e)=>t.setAttribute("src",e))),a((t=>t.style.backgroundImage),((t,e)=>t.style.backgroundImage=e))}))},s=(0,t.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,519,23))),(async({settings:t})=>{const{allMutations:e}=await Promise.resolve().then(r.t.bind(r,156,23)),n="auto"===t.options.scale?window.devicePixelRatio:parseFloat(t.options.scale);o(document.body,(t=>a(n,t))),e((t=>{t.forEach((t=>t.addedNodes.forEach((t=>{t instanceof HTMLElement&&(a(n,t),"IMG"!==t.nodeName.toUpperCase()&&o(t,(t=>a(n,t))))}))))}))})),c={name:"imageResolution",displayName:"高分辨率图片",tags:[componentsTags.utils],enabledByDefault:window.devicePixelRatio>1,entry:s,description:{"zh-CN":"根据屏幕 DPI 请求更高分辨率的图片, 例如 DPI 缩放 200% 则请求 2 倍的分辨率, 加载时间也会相应变长一些. (也会导致某些浏览器里出现图片闪动, 因为本质上是更换了图片源)"},options:{scale:{displayName:"缩放级别",defaultValue:"auto",hidden:!0}},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},972:function(t,e,n){var o=n(941);o&&o.__esModule&&(o=o.default),t.exports="string"==typeof o?o:o.toString()},156:function(t){"use strict";t.exports=coreApis.observer}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return n[t](i,i.exports,r),i.exports}e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return c}});var t=coreApis.componentApis.styledComponent;const e=/@(\d+)[Ww]_(\d+)[Hh]/,n=["#certify-img1","#certify-img2"],o=(t,e)=>{const n=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT);let o=n.nextNode();for(;o;)e(o),o=n.nextNode()},a=async(t,o)=>{const{attributes:i}=await Promise.resolve().then(r.t.bind(r,156,23)),a=(r,i)=>{const a=r(o);if(null===a)return;if(n.some((t=>o.matches(t))))return;const s=a.match(e);if(!s)return;const[,c,u]=s,f=parseInt(o.getAttribute("data-resolution-width")||"0");if(parseInt(c)>=f&&0!==f)return;null===o.getAttribute("width")&&null===o.getAttribute("height")&&(o.classList.contains("bili-avatar-img")?o.setAttribute("height",u):o.setAttribute("width",c));const l=Math.round(t*parseInt(c)).toString(),d=Math.round(t*parseInt(u)).toString();o.setAttribute("data-resolution-width",l),i(o,a.replace(e,`@${l}w_${d}h`))};i(o,(()=>{a((t=>t.getAttribute("src")),((t,e)=>t.setAttribute("src",e))),a((t=>t.style.backgroundImage),((t,e)=>t.style.backgroundImage=e))}))},s=(0,t.styledComponentEntry)((()=>Promise.resolve().then(r.t.bind(r,972,23))),(async({settings:t})=>{const{allMutations:e}=await Promise.resolve().then(r.t.bind(r,156,23)),n="auto"===t.options.scale?window.devicePixelRatio:parseFloat(t.options.scale);o(document.body,(t=>a(n,t))),e((t=>{t.forEach((t=>t.addedNodes.forEach((t=>{t instanceof HTMLElement&&(a(n,t),"IMG"!==t.nodeName.toUpperCase()&&o(t,(t=>a(n,t))))}))))}))})),c={name:"imageResolution",displayName:"高分辨率图片",tags:[componentsTags.utils],enabledByDefault:window.devicePixelRatio>1,entry:s,description:{"zh-CN":"根据屏幕 DPI 请求更高分辨率的图片, 例如 DPI 缩放 200% 则请求 2 倍的分辨率, 加载时间也会相应变长一些. (也会导致某些浏览器里出现图片闪动, 因为本质上是更换了图片源)"},options:{scale:{displayName:"缩放级别",defaultValue:"auto",hidden:!0}},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["utils/remove-promotions"]=n():e["utils/remove-promotions"]=n()}(self,(function(){return function(){var e,n,t={72:function(e,n,t){var o=t(645)((function(e){return e[1]}));o.push([e.id,"#slide_ad,\n.v-wrap .vcd,\n.ad-report,\n#home_popularize .l-con,\n#home_popularize .adpos,\n.gg-floor-module,\n.home-app-download,\n.bilibili-player-promote-wrap,\n.bili-header-m .nav-menu .nav-con .nav-item .text-red,\n.mobile-link-l,\n.video-page-game-card,\n.international-home .banner-card,\n.bypb-window .operate-card,\n.gg-window .operate-card,\n#reportFirst2 .extension,\n.video-page-special-card,\n.mascot,\n.rank-container .cm-module,\nbody:not(.preserve-event-banner) .activity-m,\nbody.remove-game-match-module .bili-wrapper > .home-match,\nbody.remove-game-match-module #reportFirst3,\n.home-content .ad-panel,\n.recommend-list .rec-list > :not(.video-page-card),\n.eva-extension-area,\n.eva-banner {\n display: none !important;\n}\n\n.recommend-list .rec-list > :not(.video-page-card) + .video-page-card {\n padding-top: 0 !important;\n}\n\n#home_popularize {\n position: relative !important;\n}\n\n.popularize-module .online,\n.gg-window .online {\n position: absolute !important;\n top: 50% !important;\n right: 0.5% !important;\n transform: translateY(-100%) !important;\n}\n\n.gg-window .online {\n right: 0 !important;\n padding: 0 16px !important;\n}\n\n#reportFirst2 {\n position: relative;\n margin-bottom: 4px;\n}\n\n.blocked-ads {\n width: 440px;\n height: 220px;\n display: flex;\n color: #888;\n background-color: rgba(136,136,136,0.13333);\n font-size: 24pt;\n font-weight: bold;\n align-items: center;\n justify-content: space-evenly;\n}\n\n.blocked-ads.new {\n width: 100%;\n height: 100%;\n background-color: #eee;\n}\n\nbody.dark .blocked-ads.new {\n background-color: #333;\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["utils/remove-promotions"]=n():e["utils/remove-promotions"]=n()}(self,(function(){return function(){var e,n,t={123:function(e,n,t){var o=t(645)((function(e){return e[1]}));o.push([e.id,"#slide_ad,\n.v-wrap .vcd,\n.ad-report,\n#home_popularize .l-con,\n#home_popularize .adpos,\n.gg-floor-module,\n.home-app-download,\n.bilibili-player-promote-wrap,\n.bili-header-m .nav-menu .nav-con .nav-item .text-red,\n.mobile-link-l,\n.video-page-game-card,\n.international-home .banner-card,\n.bypb-window .operate-card,\n.gg-window .operate-card,\n#reportFirst2 .extension,\n.video-page-special-card,\n.mascot,\n.rank-container .cm-module,\nbody:not(.preserve-event-banner) .activity-m,\nbody.remove-game-match-module .bili-wrapper > .home-match,\nbody.remove-game-match-module #reportFirst3,\n.home-content .ad-panel,\n.recommend-list .rec-list > :not(.video-page-card),\n.eva-extension-area,\n.eva-banner,\n.video-ad-creative-card,\n.bili-dyn-home--member .bili-dyn-ads {\n display: none !important;\n}\n\n.recommend-list .rec-list > :not(.video-page-card) + .video-page-card {\n padding-top: 0 !important;\n}\n\n#home_popularize {\n position: relative !important;\n}\n\n.popularize-module .online,\n.gg-window .online {\n position: absolute !important;\n top: 50% !important;\n right: 0.5% !important;\n transform: translateY(-100%) !important;\n}\n\n.gg-window .online {\n right: 0 !important;\n padding: 0 16px !important;\n}\n\n#reportFirst2 {\n position: relative;\n margin-bottom: 4px;\n}\n\n.blocked-ads {\n width: 440px;\n height: 220px;\n display: flex;\n color: #888;\n background-color: rgba(136,136,136,0.13333);\n font-size: 24pt;\n font-weight: bold;\n align-items: center;\n justify-content: space-evenly;\n}\n\n.blocked-ads.new {\n width: 100%;\n height: 100%;\n background-color: #eee;\n}\n\nbody.dark .blocked-ads.new {\n background-color: #333;\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ n.i=function(e,t,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);o&&r[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),n.push(c))}},n}},488:function(e,n,t){var o=t(72);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},407:function(e){"use strict";e.exports=coreApis.settings},569:function(e){"use strict";e.exports=coreApis.spinQuery}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var i=Object.create(null);r.r(i);var a={};e=e||[null,n({}),n([]),n(n)];for(var s=2&o&&t;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return t[e]}}));return a.default=function(){return t},r.d(i,a),i},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return e}});const e={name:"removePromotions",displayName:"删除广告",entry:async({settings:e,metadata:n})=>{const{addComponentListener:t}=await Promise.resolve().then(r.t.bind(r,407,23));if("https://www.bilibili.com/"===document.URL.replace(window.location.search,"")){const{selectAll:n,select:t}=await Promise.resolve().then(r.t.bind(r,569,23));t(".eva-extension-area").then((e=>{e&&(e.parentElement.style.margin="12px")})),n(".gg-pic").then((n=>{0!==n.length&&n.forEach((n=>{const t=n.parentElement;t.style.display="none";const o=[...t.parentElement.childNodes].indexOf(t)+1,r=t.parentElement.parentElement.querySelector(`.pic li:nth-child(${o})`);if(r){r.style.display="flex";const n=r.querySelector("a:not(.more-text)");n.insertAdjacentHTML("afterend",`\n <div class="blocked-ads">${e.options.showPlaceholder?"🚫已屏蔽广告":""}</div>\n `),n.style.visibility="hidden";[r.querySelector("a.more-text"),r.querySelector("img")].forEach((e=>e.style.display="none"))}}))})),t(".focus-carousel.home-slide").then((n=>{n&&dqa(n,".gg-icon,.bypb-icon").map((e=>e.parentElement.parentElement)).forEach((n=>{n.style.display="none",n.insertAdjacentHTML("afterend",`\n <div class="blocked-ads new">${e.options.showPlaceholder?"🚫已屏蔽广告":""}</div>\n `)}))}))}t(`${n.name}.preserveEventBanner`,(e=>{document.body.classList.toggle("preserve-event-banner",e)}),!0)},instantStyles:[{name:"removePromotions",style:()=>Promise.resolve().then(r.t.bind(r,488,23))}],tags:[componentsTags.utils],description:{"zh-CN":'\n删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 `占位文本` 选项.\n\n- `占位文本`: 删除首页推广模块的广告后显示"🚫已屏蔽广告"来替代空白区域.\n- `保留活动横幅`: 保留视频页面的活动横幅.\n'.trim()},options:{showPlaceholder:{displayName:"占位文本",defaultValue:!0},preserveEventBanner:{displayName:"保留活动横幅",defaultValue:!1}},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);o&&r[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},775:function(e,n,t){var o=t(123);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()},407:function(e){"use strict";e.exports=coreApis.settings},569:function(e){"use strict";e.exports=coreApis.spinQuery}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var i=Object.create(null);r.r(i);var a={};e=e||[null,n({}),n([]),n(n)];for(var c=2&o&&t;"object"==typeof c&&!~e.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return t[e]}}));return a.default=function(){return t},r.d(i,a),i},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return e}});const e={name:"removePromotions",displayName:"删除广告",entry:async({settings:e,metadata:n})=>{const{addComponentListener:t}=await Promise.resolve().then(r.t.bind(r,407,23));if("https://www.bilibili.com/"===document.URL.replace(window.location.search,"")){const{selectAll:n,select:t}=await Promise.resolve().then(r.t.bind(r,569,23));t(".eva-extension-area").then((e=>{e&&(e.parentElement.style.margin="12px")})),n(".gg-pic").then((n=>{0!==n.length&&n.forEach((n=>{const t=n.parentElement;t.style.display="none";const o=[...t.parentElement.childNodes].indexOf(t)+1,r=t.parentElement.parentElement.querySelector(`.pic li:nth-child(${o})`);if(r){r.style.display="flex";const n=r.querySelector("a:not(.more-text)");n.insertAdjacentHTML("afterend",`\n <div class="blocked-ads">${e.options.showPlaceholder?"🚫已屏蔽广告":""}</div>\n `),n.style.visibility="hidden";[r.querySelector("a.more-text"),r.querySelector("img")].forEach((e=>e.style.display="none"))}}))})),t(".focus-carousel.home-slide").then((n=>{n&&dqa(n,".gg-icon,.bypb-icon").map((e=>e.parentElement.parentElement)).forEach((n=>{n.style.display="none",n.insertAdjacentHTML("afterend",`\n <div class="blocked-ads new">${e.options.showPlaceholder?"🚫已屏蔽广告":""}</div>\n `)}))}))}t(`${n.name}.preserveEventBanner`,(e=>{document.body.classList.toggle("preserve-event-banner",e)}),!0)},instantStyles:[{name:"removePromotions",style:()=>Promise.resolve().then(r.t.bind(r,775,23))}],tags:[componentsTags.utils],description:{"zh-CN":'\n删除站内的各种广告. 包括首页的推广模块, 手机 app 推荐, 视频页面右侧的广告等. 注意: 首页推广模块删除后留下空白区域是正常现象, 如果觉得怪可以开启 `占位文本` 选项.\n\n- `占位文本`: 删除首页推广模块的广告后显示"🚫已屏蔽广告"来替代空白区域.\n- `保留活动横幅`: 保留视频页面的活动横幅.\n'.trim()},options:{showPlaceholder:{displayName:"占位文本",defaultValue:!0},preserveEventBanner:{displayName:"保留活动横幅",defaultValue:!1}},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/url-params-clean"]=t():e["utils/url-params-clean"]=t()}(self,(function(){return function(){"use strict";var e,t,r={270:function(e){e.exports=coreApis.lifeCycle},156:function(e){e.exports=coreApis.observer}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},n.d(a,i),a},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){n.d(a,{component:function(){return r}});var e=coreApis.pluginApis.data,t=coreApis.utils;const r={name:"urlParamsClean",displayName:"网址参数清理",entry:async()=>{if((0,t.isNotHtml)())return;const[r]=(0,e.registerAndGetData)("urlParamsClean.noClean",["videocard_series"]),[o]=(0,e.registerAndGetData)("urlParamsClean.params",["spm_id_from","from_source","from_spmid","from","seid","share_source","share_medium","share_plat","share_tag","share_session_id","bbid","ts","timestamp","unique_k","rt","tdsourcetag","accept_quality","broadcast_type","current_qn","current_quality","playurl_h264","playurl_h265","quality_description","network","network_status","platform_network_status","p2p_type","referfrom","visit_id","bsource","spm","hotRank","-Arouter"]),[a]=(0,e.registerAndGetData)("urlParamsClean.siteSpecifiedParams",[{match:/\/\/www\.bilibili\.com\/audio\/(au[\d]+|mycollection)/,param:"type"},{match:/\/\/live\.bilibili\.com\//,param:"session_id"},{match:/\/\/www\.bilibili\.com\/bangumi\//,param:"theme"}]),[i]=(0,e.registerAndGetData)("urlParamsClean.tailingSlash",[]),{fullyLoaded:s}=await Promise.resolve().then(n.t.bind(n,270,23)),{urlChange:c}=await Promise.resolve().then(n.t.bind(n,156,23));s((()=>{c((()=>(()=>{const e=window.location.search.substring(1).split("&");if(e.some((e=>r.some((t=>e.includes(t))))))return;const n=e.filter((e=>!o.some((t=>e.startsWith(`${t}=`)))&&!a.some((({match:t,param:r})=>document.URL.match(t)&&e.startsWith(`${r}=`))))).join("&");let s=document.URL.replace(window.location.search,"");i.forEach((({match:e})=>{(0,t.matchPattern)(s,e)&&s.endsWith("/")&&(s=s.slice(0,s.length-1))}));const c=s+(n?`?${n}`:"");c!==document.URL&&(console.log("[URL params clean]",document.URL,c),window.history.replaceState({},document.title,c))})()))}))},description:{"zh-CN":"自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址)."},tags:[componentsTags.utils],urlExclude:[/game\.bilibili\.com\/fgo/,/live\.bilibili\.com\/p\/html\/live-app-hotrank\//],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),a=a.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/url-params-clean"]=t():e["utils/url-params-clean"]=t()}(self,(function(){return function(){"use strict";var e,t,r={270:function(e){e.exports=coreApis.lifeCycle},156:function(e){e.exports=coreApis.observer}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return r[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(i,a),i},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){n.d(i,{component:function(){return a}});var e=coreApis.pluginApis.data,t=coreApis.utils;const r="网址参数清理",o=(0,coreApis.utils.log.useScopedConsole)(r),a={name:"urlParamsClean",displayName:r,entry:async()=>{if((0,t.isNotHtml)()||(0,t.isIframe)())return;const[r]=(0,e.registerAndGetData)("urlParamsClean.noClean",["videocard_series"]),[i]=(0,e.registerAndGetData)("urlParamsClean.params",["spm_id_from","from_source","from_spmid","from","seid","share_source","share_medium","share_plat","share_tag","share_session_id","bbid","ts","timestamp","unique_k","rt","tdsourcetag","accept_quality","broadcast_type","current_qn","current_quality","playurl_h264","playurl_h265","quality_description","network","network_status","platform_network_status","p2p_type","referfrom","visit_id","bsource","spm","hotRank","-Arouter"]),[a]=(0,e.registerAndGetData)("urlParamsClean.siteSpecifiedParams",[{match:/\/\/www\.bilibili\.com\/audio\/(au[\d]+|mycollection)/,param:"type"},{match:/\/\/live\.bilibili\.com\//,param:"session_id"},{match:/\/\/www\.bilibili\.com\/bangumi\//,param:"theme"}]),[s]=(0,e.registerAndGetData)("urlParamsClean.tailingSlash",[]),{fullyLoaded:c}=await Promise.resolve().then(n.t.bind(n,270,23)),{urlChange:u}=await Promise.resolve().then(n.t.bind(n,156,23));c((()=>{u((()=>(()=>{const e=window.location.search.substring(1).split("&");if(e.some((e=>r.some((t=>e.includes(t))))))return;const n=e.filter((e=>!i.some((t=>e.startsWith(`${t}=`)))&&!a.some((({match:t,param:r})=>document.URL.match(t)&&e.startsWith(`${r}=`))))).join("&");let c=document.URL.replace(window.location.search,"");s.forEach((({match:e})=>{(0,t.matchPattern)(c,e)&&c.endsWith("/")&&(c=c.slice(0,c.length-1))}));const u=c+(n?`?${n}`:"");u!==document.URL&&(o.log(document.URL,u),window.history.replaceState({},document.title,u))})()))}))},description:{"zh-CN":"自动删除网址中的多余跟踪参数. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址)."},tags:[componentsTags.utils],urlExclude:[/game\.bilibili\.com\/fgo/,/live\.bilibili\.com\/p\/html\/live-app-hotrank\//],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/view-cover"]=t():e["utils/view-cover"]=t()}(self,(function(){return function(){"use strict";var e={568:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("DefaultWidget",{staticClass:"view-cover",attrs:{disabled:!e.imageUrl,name:"查看封面",icon:"mdi-image-outline"},on:{click:function(t){return e.viewCover()}}})};n._withStripped=!0;var i=coreApis.ajax,r=coreApis.observer,s=coreApis.spinQuery,a=coreApis.utils.log,c=coreApis.ui,l=coreApis.componentApis.video.videoInfo;var d=function(e,t,o,n,i,r,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:c.DefaultWidget},data:()=>({imageUrl:""}),async mounted(){if(document.URL.includes("live.bilibili.com")){const e=".header-info-ctnr .room-cover, .header-info-ctnr .avatar",t=await(0,s.select)(e);if(!t)return;const o=t.getAttribute("href").match(/space\.bilibili\.com\/([\d]+)/);if(o&&o[1]){const e=`https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${o[1]}`,t=await(0,i.getJson)(e);this.imageUrl=t.data.cover.replace("http:","https:")}}else(0,r.videoChange)((async()=>{const{aid:e}=unsafeWindow,t=new l.VideoInfo(e);try{await t.fetchInfo()}catch(e){throw(0,a.logError)(e),e}this.imageUrl=t.coverUrl.replace("http:","https:")}))},methods:{async viewCover(){(0,c.showImage)(this.imageUrl)}}}),n,[],!1,null,null,null);d.options.__file="registry/lib/components/utils/view-cover/ViewCover.vue";var u=d.exports}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){o.d(n,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"viewCover",displayName:"查看封面",tags:[componentsTags.utils,componentsTags.video],entry:none,reload:none,unload:none,widget:{component:()=>Promise.resolve().then(o.bind(o,568)).then((e=>e.default))},description:{"zh-CN":"在视频页面中, 可从功能面板中查看封面."},urlInclude:[...e.videoAndBangumiUrls],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),n=n.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/view-cover"]=t():e["utils/view-cover"]=t()}(self,(function(){return function(){"use strict";var e={761:function(e,t,o){o.r(t),o.d(t,{default:function(){return d}});var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("DefaultWidget",{staticClass:"view-cover",attrs:{disabled:!e.imageUrl,name:"查看封面",icon:"mdi-image-outline"},on:{click:function(t){return e.viewCover()}}})};n._withStripped=!0;var i=coreApis.ajax,r=coreApis.observer,s=coreApis.spinQuery,a=coreApis.utils.log,c=coreApis.ui,l=coreApis.componentApis.video.videoInfo;var u=function(e,t,o,n,i,r,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):i&&(c=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}(Vue.extend({components:{DefaultWidget:c.DefaultWidget},data:()=>({imageUrl:""}),async mounted(){if(document.URL.includes("live.bilibili.com")){const e=".header-info-ctnr .room-cover, .header-info-ctnr .avatar",t=await(0,s.select)(e);if(!t)return;const o=t.getAttribute("href").match(/space\.bilibili\.com\/([\d]+)/);if(o&&o[1]){const e=`https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld?mid=${o[1]}`,t=await(0,i.getJson)(e);this.imageUrl=t.data.cover.replace("http:","https:")}}else(0,r.videoChange)((async()=>{const{aid:e}=unsafeWindow,t=new l.VideoInfo(e);try{await t.fetchInfo()}catch(e){throw(0,a.logError)(e),e}this.imageUrl=t.coverUrl.replace("http:","https:")}))},methods:{async viewCover(){(0,c.showImage)(this.imageUrl)}}}),n,[],!1,null,null,null);u.options.__file="registry/lib/components/utils/view-cover/ViewCover.vue";var d=u.exports}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){o.d(n,{component:function(){return t}});var e=coreApis.utils.urls;const t={name:"viewCover",displayName:"查看封面",tags:[componentsTags.utils,componentsTags.video],entry:none,reload:none,unload:none,widget:{component:()=>Promise.resolve().then(o.bind(o,761)).then((e=>e.default))},description:{"zh-CN":"在视频页面中, 可从功能面板中查看封面."},urlInclude:[...e.videoAndBangumiUrls],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),n=n.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/watchlater-redirect"]=t():e["utils/watchlater-redirect"]=t()}(self,(function(){return function(){"use strict";var e,t,o={539:function(e){e.exports=coreApis.componentApis.video.watchlater},156:function(e){e.exports=coreApis.observer},569:function(e){e.exports=coreApis.spinQuery}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&r&&o;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return o[e]}}));return a.default=function(){return o},n.d(i,a),i},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){n.d(i,{component:function(){return e}});const e={name:"watchlaterRedirect",displayName:"稍后再看重定向",description:{"zh-CN":"将稍后再看的链接重定向为普通播放网址."},entry:async({settings:e})=>{if(e.options.page){const{select:e}=await Promise.resolve().then(n.t.bind(n,569,23)),{childList:t}=await Promise.resolve().then(n.t.bind(n,156,23)),{getWatchlaterList:o}=await Promise.resolve().then(n.t.bind(n,539,23)),r=await o(!0),i=await e(".watch-later-list .list-box > span");if(!i)return;const a=(e,t)=>{try{const o=r[t],{bvid:n,cid:i,pages:a}=o,c=a.find((e=>e.cid===i))?.page??1,s=c>1?`https://www.bilibili.com/video/${n}?p=${c}`:`https://www.bilibili.com/video/${n}`,l=e.querySelector(".av-pic");l.target="_blank",l.href=s;const f=e.querySelector(".av-about .t");f.target="_blank",f.href=s}catch(o){console.error(`[watchlater redirect] error at index ${t}`,e,o)}},c=()=>{i.querySelectorAll(".av-item").forEach(a)};t(i,(e=>{e.forEach((e=>{e.removedNodes.forEach((e=>{if(e instanceof HTMLElement&&!e.classList.contains("itemlist-move")){const t=parseInt(dq(e,".key").textContent)-1;console.log("remove index",t),r.splice(t,1)}}))})),c()}))}},options:{page:{displayName:"重定向页面",defaultValue:!0},navbar:{displayName:"重定向顶栏",defaultValue:!0}},urlInclude:["https://www.bilibili.com/watchlater/#/list"],tags:[componentsTags.utils,componentsTags.video],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["utils/watchlater-redirect"]=t():e["utils/watchlater-redirect"]=t()}(self,(function(){return function(){"use strict";var e,t,o={539:function(e){e.exports=coreApis.componentApis.video.watchlater},156:function(e){e.exports=coreApis.observer},569:function(e){e.exports=coreApis.spinQuery}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e](i,i.exports,n),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var c={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){c[e]=function(){return o[e]}}));return c.default=function(){return o},n.d(i,c),i},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){n.d(i,{component:function(){return e}});const e={name:"watchlaterRedirect",displayName:"稍后再看重定向",description:{"zh-CN":"将稍后再看的链接重定向为普通播放网址."},entry:async({settings:e})=>{if(e.options.page){const{select:e}=await Promise.resolve().then(n.t.bind(n,569,23)),{childList:t}=await Promise.resolve().then(n.t.bind(n,156,23)),{getWatchlaterList:o}=await Promise.resolve().then(n.t.bind(n,539,23)),r=await o(!0),i=await e(".watch-later-list .list-box > span");if(!i)return;const c=(e,t)=>{try{const o=r[t],{bvid:n,cid:i,pages:c}=o,a=c.find((e=>e.cid===i))?.page??1,s=a>1?`https://www.bilibili.com/video/${n}?p=${a}`:`https://www.bilibili.com/video/${n}`,l=e.querySelector(".av-pic");l.target="_blank",l.href=s;const u=e.querySelector(".av-about .t");u.target="_blank",u.href=s}catch(o){console.error(`[watchlater redirect] error at index ${t}`,e,o)}},a=()=>{i.querySelectorAll(".av-item").forEach(c)};t(i,(e=>{e.forEach((e=>{e.removedNodes.forEach((e=>{if(e instanceof HTMLElement&&!e.classList.contains("itemlist-move")){const t=parseInt(dq(e,".key").textContent)-1;console.log("remove index",t),r.splice(t,1)}}))})),a()}))}},options:{page:{displayName:"重定向页面",defaultValue:!0},navbar:{displayName:"重定向顶栏",defaultValue:!0}},urlInclude:["https://www.bilibili.com/watchlater/#/list"],tags:[componentsTags.utils,componentsTags.video],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

View File

@ -1 +1 @@
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/av-url"]=o():e["video/av-url"]=o()}(self,(function(){return function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o={};e.d(o,{component:function(){return c}});var t=coreApis.lifeCycle,n=coreApis.observer,r=coreApis.spinQuery,i=coreApis.utils.urls;const c={name:"avUrl",displayName:"网址AV号转换",description:{"zh-CN":"当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址)."},entry:()=>{(0,t.fullyLoaded)((()=>{(0,n.urlChange)((async()=>{const e=await(0,r.select)((()=>unsafeWindow.aid));if(!e)return;if(document.URL.includes("videocard_series"))return void console.log("skip video series");const o=document.URL.replace(/\/(video|bangumi)\/(BV[\w]+)/i,((o,t)=>`/${t}/av${e}`));document.URL!==o&&window.history.replaceState({},document.title,o)}))}))},tags:[componentsTags.video,componentsTags.utils],urlInclude:i.videoUrls,commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"};return o=o.component}()}));
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/av-url"]=o():e["video/av-url"]=o()}(self,(function(){return function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o={};e.d(o,{component:function(){return c}});var t=coreApis.lifeCycle,n=coreApis.observer,r=coreApis.spinQuery,i=coreApis.utils.urls;const c={name:"avUrl",displayName:"网址AV号转换",description:{"zh-CN":"当视频的链接是BV号时, 自动转换为AV号. 请注意这会导致浏览器历史记录出现重复的标题 (分别是转换前后的网址)."},entry:()=>{(0,t.fullyLoaded)((()=>{(0,n.urlChange)((async()=>{const e=await(0,r.select)((()=>unsafeWindow.aid));if(!e)return;if(document.URL.includes("videocard_series"))return void console.log("skip video series");const o=document.URL.replace(/\/(video|bangumi)\/(BV[\w]+)/i,((o,t)=>`/${t}/av${e}`));document.URL!==o&&window.history.replaceState({},document.title,o)}))}))},tags:[componentsTags.video,componentsTags.utils],urlInclude:i.videoUrls,commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"};return o=o.component}()}));

View File

@ -1 +1 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/biliplus-redirect"]=t():e["video/biliplus-redirect"]=t()}(self,(function(){return function(){"use strict";var e={492:function(e,t,o){o.r(t),o.d(t,{default:function(){return a}});var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("a",{attrs:{href:e.url,target:"_blank",tabindex:"-1"}},[o("DefaultWidget",{attrs:{name:"转到BiliPlus",icon:"biliplus",disabled:!e.url}})],1)};i._withStripped=!0;var n=coreApis.observer,r=coreApis.ui;const c=/\/(video|medialist\/play)\/([^\/]+\/)?(av[\d]+|BV.+)/i,s=[{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>document.URL.includes("/bangumi/play"),getUrl:(e,t)=>((0,n.videoChange)((()=>{const o=unsafeWindow.aid||document.querySelector(".av-link,.info-sec-av").innerText.replace(/[aAvV]/g,""),i=`https://${e}/video/av${o}/`;document.URL!==i?t(i):t("")})),`https://${e}${window.location.pathname}${window.location.search}`)},{condition:()=>c.test(document.URL),getUrl:e=>`https://${e}/video/${document.URL.match(c)[3]}/`}];var l=function(e,t,o,i,n,r,c,s){var l,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=o,a._compiled=!0),i&&(a.functional=!0),r&&(a._scopeId="data-v-"+r),c?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},a._ssrRegister=l):n&&(l=s?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(a.functional){a._injectStyles=l;var d=a.render;a.render=function(e,t){return l.call(t),d(e,t)}}else{var u=a.beforeCreate;a.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:a}}(Vue.extend({components:{DefaultWidget:r.DefaultWidget},data:()=>({url:""}),created(){const e="www.biliplus.com",t=e=>this.url=e,o=s.find((e=>e.condition()));o?t(o.getUrl(e,t)):(0,n.videoChange)((()=>{this.url=document.URL.replace(window.location.host,e)}))}}),i,[],!1,null,null,null);l.options.__file="registry/lib/components/video/biliplus-redirect/BiliplusRedirect.vue";var a=l.exports}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,o),r.exports}o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){o.d(i,{component:function(){return e}});const e={name:"biliplusRedirect",displayName:"BiliPlus 跳转支持",description:{"zh-CN":"在视频 / 番剧 / 空间中, 可以从功能中的按钮点击转到 BiliPlus 上对应的页面."},urlInclude:[...coreApis.utils.urls.videoAndBangumiUrls,"//space.bilibili.com"],entry:none,tags:[componentsTags.video,componentsTags.utils],widget:{component:()=>Promise.resolve().then(o.bind(o,492)).then((e=>e.default))},commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/biliplus-redirect"]=t():e["video/biliplus-redirect"]=t()}(self,(function(){return function(){"use strict";var e={556:function(e,t,o){o.r(t),o.d(t,{default:function(){return a}});var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("a",{attrs:{href:e.url,target:"_blank",tabindex:"-1"}},[o("DefaultWidget",{attrs:{name:"转到BiliPlus",icon:"biliplus",disabled:!e.url}})],1)};i._withStripped=!0;var n=coreApis.observer,r=coreApis.ui;const c=/\/(video|medialist\/play)\/([^\/]+\/)?(av[\d]+|BV.+)/i,s=[{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>"space.bilibili.com"===window.location.host,getUrl:e=>document.URL.replace("space.bilibili.com/",`${e}/space/`)},{condition:()=>document.URL.includes("/bangumi/play"),getUrl:(e,t)=>((0,n.videoChange)((()=>{const o=unsafeWindow.aid||document.querySelector(".av-link,.info-sec-av").innerText.replace(/[aAvV]/g,""),i=`https://${e}/video/av${o}/`;document.URL!==i?t(i):t("")})),`https://${e}${window.location.pathname}${window.location.search}`)},{condition:()=>c.test(document.URL),getUrl:e=>`https://${e}/video/${document.URL.match(c)[3]}/`}];var l=function(e,t,o,i,n,r,c,s){var l,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=o,a._compiled=!0),i&&(a.functional=!0),r&&(a._scopeId="data-v-"+r),c?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},a._ssrRegister=l):n&&(l=s?function(){n.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(a.functional){a._injectStyles=l;var d=a.render;a.render=function(e,t){return l.call(t),d(e,t)}}else{var u=a.beforeCreate;a.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:a}}(Vue.extend({components:{DefaultWidget:r.DefaultWidget},data:()=>({url:""}),created(){const e="www.biliplus.com",t=e=>this.url=e,o=s.find((e=>e.condition()));o?t(o.getUrl(e,t)):(0,n.videoChange)((()=>{this.url=document.URL.replace(window.location.host,e)}))}}),i,[],!1,null,null,null);l.options.__file="registry/lib/components/video/biliplus-redirect/BiliplusRedirect.vue";var a=l.exports}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,o),r.exports}o.d=function(e,t){for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){o.d(i,{component:function(){return e}});const e={name:"biliplusRedirect",displayName:"BiliPlus 跳转支持",description:{"zh-CN":"在视频 / 番剧 / 空间中, 可以从功能中的按钮点击转到 BiliPlus 上对应的页面."},urlInclude:[...coreApis.utils.urls.videoAndBangumiUrls,"//space.bilibili.com"],entry:none,tags:[componentsTags.video,componentsTags.utils],widget:{component:()=>Promise.resolve().then(o.bind(o,556)).then((e=>e.default))},commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/danmaku/airborne"]=t():e["video/danmaku/airborne"]=t()}(self,(function(){return function(){var e,t,n={654:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,".bilibili-player-video-danmaku .b-danmaku.airborne {\n text-decoration: underline;\n cursor: pointer;\n pointer-events: initial;\n}",""]),e.exports=o},645:function(e){"use strict";
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["video/danmaku/airborne"]=t():e["video/danmaku/airborne"]=t()}(self,(function(){return function(){var e,t,n={16:function(e,t,n){var o=n(645)((function(e){return e[1]}));o.push([e.id,".bilibili-player-video-danmaku .b-danmaku.airborne {\n text-decoration: underline;\n cursor: pointer;\n pointer-events: initial;\n}",""]),e.exports=o},645:function(e){"use strict";
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
@ -6,4 +6,4 @@ t.i=function(e,n,o){"string"==typeof e&&(
// eslint-disable-next-line no-param-reassign
e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){
// eslint-disable-next-line prefer-destructuring
var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},851:function(e,t,n){var o=n(654);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return c}});var e=coreApis.componentApis.styledComponent,t=coreApis.componentApis.video.playerAgent,n=coreApis.componentApis.video.videoDanmaku,o=coreApis.observer,a=coreApis.utils.urls;const c={displayName:"启用弹幕空降",author:{name:"kdxcxs",link:"https://github.com/kdxcxs"},description:{"zh-CN":"为可能含有时间点的弹幕添加下划线, 点击可以跳到视频对应时间."},tags:[componentsTags.video],urlInclude:a.playerUrls,...(0,e.toggleStyle)("danmakuAirborne",(()=>Promise.resolve().then(r.t.bind(r,851,23))),(async({settings:e})=>{const{enabled:r}=e,i=e=>{if(!e)return NaN;const t=e.match(/(\d+)[ ]*[::时分][ ]*(\d+)([ ]*[::分][ ]*(\d+))?/);if(!t)return NaN;if(t[3]){const[,n,o,,r]=t.map((e=>parseInt(e)));return[n,o,r].some((e=>Number.isNaN(e)))||e.includes("分")&&!e.includes("时")?NaN:3600*n+60*o+r}const[,n,o]=t.map((e=>parseInt(e)));return[n,o].some((e=>Number.isNaN(e)))?NaN:60*n+o},a=e=>{if(!r)return;const t=e.target;if(!t.classList.contains("b-danmaku"))return;const n=i(t.textContent);Number.isNaN(n)||unsafeWindow.player.seek(n,!1)};(0,n.forEachVideoDanmaku)({added:e=>{const t=!Number.isNaN(i(e.text));e.element.classList.toggle("airborne",t)}}),(0,o.videoChange)((async()=>{const e=await t.playerAgent.query.video.wrap();e.classList.contains("airborne-enabled")||(e.classList.add("airborne-enabled"),e.addEventListener("click",a))}))})),commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"}}(),i=i.component}()}));
var a=this[i][0];null!=a&&(r[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);o&&r[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},978:function(e,t,n){var o=n(16);o&&o.__esModule&&(o=o.default),e.exports="string"==typeof o?o:o.toString()}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,r),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";r.d(i,{component:function(){return c}});var e=coreApis.componentApis.styledComponent,t=coreApis.componentApis.video.playerAgent,n=coreApis.componentApis.video.videoDanmaku,o=coreApis.observer,a=coreApis.utils.urls;const c={displayName:"启用弹幕空降",author:{name:"kdxcxs",link:"https://github.com/kdxcxs"},description:{"zh-CN":"为可能含有时间点的弹幕添加下划线, 点击可以跳到视频对应时间."},tags:[componentsTags.video],urlInclude:a.playerUrls,...(0,e.toggleStyle)("danmakuAirborne",(()=>Promise.resolve().then(r.t.bind(r,978,23))),(async({settings:e})=>{const{enabled:r}=e,i=e=>{if(!e)return NaN;const t=e.match(/(\d+)[ ]*[::时分][ ]*(\d+)([ ]*[::分][ ]*(\d+))?/);if(!t)return NaN;if(t[3]){const[,n,o,,r]=t.map((e=>parseInt(e)));return[n,o,r].some((e=>Number.isNaN(e)))||e.includes("分")&&!e.includes("时")?NaN:3600*n+60*o+r}const[,n,o]=t.map((e=>parseInt(e)));return[n,o].some((e=>Number.isNaN(e)))?NaN:60*n+o},a=e=>{if(!r)return;const t=e.target;if(!t.classList.contains("b-danmaku"))return;const n=i(t.textContent);Number.isNaN(n)||unsafeWindow.player.seek(n,!1)};(0,n.forEachVideoDanmaku)({added:e=>{const t=!Number.isNaN(i(e.text));e.element.classList.toggle("airborne",t)}}),(0,o.videoChange)((async()=>{const e=await t.playerAgent.query.video.wrap();e.classList.contains("airborne-enabled")||(e.classList.add("airborne-enabled"),e.addEventListener("click",a))}))})),commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"}}(),i=i.component}()}));

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/danmaku/expand"]=o():e["video/danmaku/expand"]=o()}(self,(function(){return function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o={};e.d(o,{component:function(){return s}});var t=coreApis.observer,n=coreApis.spinQuery,i=coreApis.utils,a=coreApis.utils.urls;const s={name:"expandDanmakuList",displayName:"展开弹幕列表",entry:async({settings:{options:e}})=>{(0,t.videoChange)((async()=>{if(a.mediaListUrls.some((e=>(0,i.matchUrlPattern)(e)))&&e.ignoreMediaList)return;const o=await(0,n.select)(".bui-collapse-wrap");if(o&&o.classList.contains("bui-collapse-wrap-folded")){(await(0,n.select)(".bui-collapse-header"))?.click()}}))},tags:[componentsTags.video],description:{"zh-CN":"每次加载视频时自动展开弹幕列表."},options:{ignoreMediaList:{defaultValue:!0,displayName:"合集类页面不自动展开"}},urlInclude:[...a.videoAndBangumiUrls,...a.mediaListUrls],commitHash:"03af3fac2fa27b4af88b8219ade89af08e2b1509",coreVersion:"2.1.6"};return o=o.component}()}));
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["video/danmaku/expand"]=o():e["video/danmaku/expand"]=o()}(self,(function(){return function(){"use strict";var e={d:function(o,t){for(var n in t)e.o(t,n)&&!e.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:t[n]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o={};e.d(o,{component:function(){return s}});var t=coreApis.observer,n=coreApis.spinQuery,i=coreApis.utils,a=coreApis.utils.urls;const s={name:"expandDanmakuList",displayName:"展开弹幕列表",entry:async({settings:{options:e}})=>{(0,t.videoChange)((async()=>{if(a.mediaListUrls.some((e=>(0,i.matchUrlPattern)(e)))&&e.ignoreMediaList)return;const o=await(0,n.select)(".bui-collapse-wrap");if(o&&o.classList.contains("bui-collapse-wrap-folded")){(await(0,n.select)(".bui-collapse-header"))?.click()}}))},tags:[componentsTags.video],description:{"zh-CN":"每次加载视频时自动展开弹幕列表."},options:{ignoreMediaList:{defaultValue:!0,displayName:"合集类页面不自动展开"}},urlInclude:[...a.videoAndBangumiUrls,...a.mediaListUrls],commitHash:"37b21bf92e2ca5a587e436753c5b9c4ab3027348",coreVersion:"2.1.9"};return o=o.component}()}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More