Skip to content

Commit

Permalink
Merge branch 'preview-features' into preview
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Oct 22, 2024
2 parents c6ace25 + 32b6440 commit f6de22a
Show file tree
Hide file tree
Showing 60 changed files with 938 additions and 148 deletions.
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,58 @@
<!-- spell-checker: disable -->
# 更新日志

## v2.9.4-preview
`2024-10-22`

包含 [v2.9.4](https://github.com/the1812/Bilibili-Evolved/releases/tag/v2.9.4) 的所有更新内容.

✨新增
- 新增组件 `隐藏头像框`.
> 隐藏页面中用户的头像框 (包括角标), 目前支持动态和视频页面.
- 新增组件 `隐藏直播马赛克`. (#4634)
> 移除直播画面中的马赛克区域.
- 优化了搜索框的搜索建议精准度. (#4833)
- 新增组件 `删除动态`. (PR #4915 by [gouzil](https://github.com/gouzil))
> 删除动态, 可选转发抽奖, 和全部删除.
- `保存视频元数据` 增加 FFMETADATA 字段选项. (PR #4943 by [WakelessSloth56](https://github.com/WakelessSloth56))
- 新增组件 `评论内容替换`. (#4072)
> 替换评论中的内容.
> 可以添加多个替换配置, 每项配置可将一个关键词替换为其他文本. 若替换的目标是一个链接, 则视作替换为表情.
>
- `直播信息扩充` 更换新的 API 接口. (PR #4964 by [Oxygenくん](https://github.com/oxygenkun))

## v2.9.4
`2024-10-22`

✨新增
- `屏蔽黑名单up主` 去除了登录校验. (#4917, PR #4926 by [snowraincloud](https://github.com/snowraincloud))
- `图片批量导出` 适配新型的图片动态. (#4830)
- 更新评论区的 `夜间模式`. (#4931)

🐛修复
- 修复 StreamSaver 和 ffmpeg WASM 的 SRI 校验问题. (#4913, #4864)
- 修复下载合集时 BV 号命名重复. (#4818)
- 修复 `删除广告` 去除首页广告时没有遵循 `占位文本` 选项. (#4836)
- 修复 `自定义顶栏` 历史面板中的多余 title 提示. (#4962)
- 修复下载弹幕时播放器设置没有正确读取. (#4824)

🗑️废弃
- `自定义顶栏` 删除 `相簿` 入口.

☕开发者相关
- 修复 DevClient 无法重载 Shadow DOM 样式.

## v2.9.3-preview
`2024-09-15`

主要是各种修复, 见 [v2.9.3](https://github.com/the1812/Bilibili-Evolved/releases/tag/v2.9.3).

## v2.9.3
`2024-09-15`

<details>
<summary>正式版用户将获得 v2.9.1-preview ~ v2.9.2-preview 的所有改动, 点击展开查看</summary>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

> 之前的支付宝付款码有点问题, 现已弃用 (不必担心, 转账均已收到), 在爱发电中仍然可以选择支付宝作为付款方式.
<a href="https://afdian.net/@the1812" target="_blank">
<a href="https://afdian.com/a/the1812" target="_blank">
<img alt="爱发电" src="./images/compressed/afdian.jpg" width="400">
</a>

Expand Down
7 changes: 6 additions & 1 deletion doc/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## 爱发电

https://afdian.net/@the1812?tab=sponsor
https://afdian.com/a/the1812?tab=sponsor

## 微信/支付宝收款

Expand All @@ -30,6 +30,11 @@ https://afdian.net/@the1812?tab=sponsor

| 时间 | 用户名 | 单号后4位 | 金额 |
| ------------------- | --------------------- | --------- | ------- |
| 2024.10.11 11:19:52 | 匿名 | 8738 | ¥100.00 |
| 2024.09.28 22:43:29 | 匿名 | 7519 | ¥20.00 |
| 2024.09.28 17:45:29 | *| 7998 | ¥20.00 |
| 2024.09.23 14:19:17 | 匿名 | 1799 | ¥2.33 |
| 2024.09.10 00:19:41 | 匿名 | 1484 | ¥20.00 |
| 2024.09.06 16:05:23 | 匿名 | 0752 | ¥5.00 |
| 2024.09.03 23:08:43 | *| 3956 | ¥20.00 |
| 2024.08.25 16:55:07 | 匿名 | 6595 | ¥10.00 |
Expand Down
32 changes: 32 additions & 0 deletions doc/features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
"fullRelativePath": "../../registry/dist/components/feeds/copy-link.js",
"fullAbsolutePath": "registry/dist/components/feeds/copy-link.js"
},
{
"type": "component",
"name": "deleteFeeds",
"displayName": "删除动态",
"description": "删除动态, 可选转发抽奖, 和全部删除.\r\n",
"fullRelativePath": "../../registry/dist/components/feeds/del-feeds.js",
"fullAbsolutePath": "registry/dist/components/feeds/del-feeds.js"
},
{
"type": "component",
"name": "disableFeedsDetails",
Expand Down Expand Up @@ -135,6 +143,14 @@
"fullRelativePath": "../../registry/dist/components/live/hide-gift-fullscreen.js",
"fullAbsolutePath": "registry/dist/components/live/hide-gift-fullscreen.js"
},
{
"type": "component",
"name": "hideLivePlayerBlur",
"displayName": "隐藏直播马赛克",
"description": "移除直播画面中的马赛克区域.\r\n",
"fullRelativePath": "../../registry/dist/components/live/hide-player-blur.js",
"fullAbsolutePath": "registry/dist/components/live/hide-player-blur.js"
},
{
"type": "component",
"name": "liveHomeMute",
Expand Down Expand Up @@ -295,6 +311,14 @@
"fullRelativePath": "../../registry/dist/components/style/hide/user-card.js",
"fullAbsolutePath": "registry/dist/components/style/hide/user-card.js"
},
{
"type": "component",
"name": "hideUserPendent",
"displayName": "隐藏头像框",
"description": "隐藏页面中用户的头像框 (包括角标), 目前支持动态和视频页面.\r\n",
"fullRelativePath": "../../registry/dist/components/style/hide/user-pendent.js",
"fullAbsolutePath": "registry/dist/components/style/hide/user-pendent.js"
},
{
"type": "component",
"name": "hideVideoNotes",
Expand Down Expand Up @@ -527,6 +551,14 @@
"fullRelativePath": "../../registry/dist/components/utils/column-unlock.js",
"fullAbsolutePath": "registry/dist/components/utils/column-unlock.js"
},
{
"type": "component",
"name": "commentContentReplace",
"displayName": "评论内容替换",
"description": "替换评论中的内容.\r\n\r\n可以添加多个替换配置, 每项配置可将一个关键词替换为其他文本. 若替换的目标是一个链接, 则视作替换为表情, 留空则会移除命中的关键词.\r\n",
"fullRelativePath": "../../registry/dist/components/utils/comments/content-replace.js",
"fullAbsolutePath": "registry/dist/components/utils/comments/content-replace.js"
},
{
"type": "component",
"name": "copyCommentsLink",
Expand Down
38 changes: 38 additions & 0 deletions doc/features/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@

开启后, 可在每条动态的菜单中选择复制链接.

### [删除动态](../../registry/dist/components/feeds/del-feeds.js)
`deleteFeeds`

**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/feeds/del-feeds.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/feeds/del-feeds.js)

**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/feeds/del-feeds.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/feeds/del-feeds.js)

删除动态, 可选转发抽奖, 和全部删除.

### [禁止跳转动态详情](../../registry/dist/components/feeds/disable-details.js)
`disableFeedsDetails`

Expand Down Expand Up @@ -170,6 +179,15 @@ by [@TimmyOVO](https://github.com/TimmyOVO)

移除全屏观看直播时的底部礼物栏

### [隐藏直播马赛克](../../registry/dist/components/live/hide-player-blur.js)
`hideLivePlayerBlur`

**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/live/hide-player-blur.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/live/hide-player-blur.js)

**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/live/hide-player-blur.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/live/hide-player-blur.js)

移除直播画面中的马赛克区域.

### [直播首页静音](../../registry/dist/components/live/home-mute.js)
`liveHomeMute`

Expand Down Expand Up @@ -389,6 +407,15 @@ by [@WakelessSloth56](https://github.com/WakelessSloth56)

隐藏鼠标指向用户名或用户头像时弹出的浮动用户信息卡片

### [隐藏头像框](../../registry/dist/components/style/hide/user-pendent.js)
`hideUserPendent`

**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/style/hide/user-pendent.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/style/hide/user-pendent.js)

**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/style/hide/user-pendent.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/style/hide/user-pendent.js)

隐藏页面中用户的头像框 (包括角标), 目前支持动态和视频页面.

### [隐藏记笔记](../../registry/dist/components/style/hide/video/notes.js)
`hideVideoNotes`

Expand Down Expand Up @@ -695,6 +722,17 @@ by [@snowraincloud](https://github.com/snowraincloud)

避免专栏的文字复制后在最后带上出处信息, 更贴近原生的复制行为.

### [评论内容替换](../../registry/dist/components/utils/comments/content-replace.js)
`commentContentReplace`

**jsDelivr:** [`Stable`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/utils/comments/content-replace.js) / [`Preview`](https://cdn.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/utils/comments/content-replace.js)

**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/utils/comments/content-replace.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/utils/comments/content-replace.js)

替换评论中的内容.

可以添加多个替换配置, 每项配置可将一个关键词替换为其他文本. 若替换的目标是一个链接, 则视作替换为表情, 留空则会移除命中的关键词.

### [复制评论链接](../../registry/dist/components/utils/comments/copy-link.js)
`copyCommentsLink`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"pnpm": {
"overrides": {
"caniuse-lite": "1.0.30001609",
"caniuse-lite": "1.0.30001668",
"consolidate": "1.0.1"
}
},
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions registry/lib/components/feeds/del-feeds/Widget.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<template>
<div class="multiple-widgets">
<DefaultWidget
v-for="item in items"
:key="item.name"
:disabled="item.disabled"
:data-name="item.name"
:name="item.displayName"
:icon="item.icon"
@click="runItemAction(item, $event)"
>
</DefaultWidget>
</div>
</template>

<script lang="ts">
import { DefaultWidget } from '@/ui'
import { CheckInItem, checkInItems } from './check-in-item'
export default Vue.extend({
components: {
DefaultWidget,
},
data() {
return {
items: checkInItems,
}
},
methods: {
async runItemAction(item: CheckInItem, event: MouseEvent) {
try {
// 一开始可能是 undefined
this.$set(item, 'disabled', true)
const button = this.$el.querySelector(`[data-name='${item.name}']`) as HTMLDivElement
await item.action(button, event)
} finally {
item.disabled = false
}
},
},
})
</script>
Loading

0 comments on commit f6de22a

Please sign in to comment.