From 9bf584f435d3d1a67fa0e3f60b5bd83270767b35 Mon Sep 17 00:00:00 2001 From: Mike Lei Date: Mon, 5 Dec 2022 23:17:39 +0000 Subject: [PATCH 01/18] fix(fold-comments): use smooth scrolling when folding comments --- registry/lib/components/feeds/fold-comments/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/lib/components/feeds/fold-comments/index.ts b/registry/lib/components/feeds/fold-comments/index.ts index e75971bd5..2b845e510 100644 --- a/registry/lib/components/feeds/fold-comments/index.ts +++ b/registry/lib/components/feeds/fold-comments/index.ts @@ -24,7 +24,7 @@ const entry = async () => { button.innerHTML = '收起评论' button.addEventListener('click', () => { clickHandler() - card.scrollIntoView() + card.scrollIntoView({ behavior: 'smooth' }) }) commentBox.insertAdjacentElement('beforeend', button) } From c658cd67e59fe6b7c454a6e69b3e10eb33465d44 Mon Sep 17 00:00:00 2001 From: the1812 Date: Sat, 10 Dec 2022 21:04:31 +0800 Subject: [PATCH 02/18] Add rollback doc --- README.md | 2 ++ doc/rollback.md | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 doc/rollback.md diff --git a/README.md b/README.md index b0234f047..eb8344af8 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | [安装](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master-cdn/dist/bilibili-evolved.user.js) | [安装](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/dist/bilibili-evolved.user.js) | [安装](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/dist/bilibili-evolved.preview.user.js) | +> 如果处于某种原因只能停在旧版, 可以参考[旧版本回退指南](./doc/rollback.md). + # 设置 脚本启用后, 在网页左侧中央会有功能面板和设置面板的入口. 功能面板中包含适用于当前页面的一些功能入口, 设置面板中可以管理组件的开启/关闭, 修改组件选项, 以及安装/卸载组件和插件等. diff --git a/doc/rollback.md b/doc/rollback.md new file mode 100644 index 000000000..6f15fabb8 --- /dev/null +++ b/doc/rollback.md @@ -0,0 +1,21 @@ +# 旧版本回退指南 + +> ⚠警告: 使用旧版本产生的不兼容 / 功能失效等问题需要自行承担, 本仓库只受理最新版脚本的反馈. + +在 [Release](https://github.com/the1812/Bilibili-Evolved/releases) 中找到要回退的版本, 并记住发布的时间. + +前往 https://github.com/the1812/Bilibili-Evolved/commits/master/dist/bilibili-evolved.user.js, 找到相同日期中的第一个 `CI Build`, 并点击查看详情. + +![image](https://user-images.githubusercontent.com/26504152/206855808-27c0d501-0c98-4f9c-be30-53ad0db715ab.png) + +在详情页中右键 `Raw`, 选择 `Save link as...` (链接另存为), 会下载脚本的内容. + +![image](https://user-images.githubusercontent.com/26504152/206855884-4a704c4c-4020-47fc-aa04-0f855d73b19b.png) + +将脚本内容粘贴覆盖到油猴中, 并删掉这两行检查更新用的配置. + +![image](https://user-images.githubusercontent.com/26504152/206856196-fbde3ef9-eddf-4b3f-a12f-12547f2f0494.png) + +保存后, 进入 b 站, 从脚本设置中关闭 `自动更新器`. + +![image](https://user-images.githubusercontent.com/26504152/206856445-ce5ebeb1-7d58-4602-8c3b-c506efdd5f32.png) From 9dc2ad58f47d804578f343cad813204c5dfc6b6b Mon Sep 17 00:00:00 2001 From: the1812 Date: Sat, 10 Dec 2022 22:10:56 +0800 Subject: [PATCH 03/18] Refactor navbar history filters (fix #3676, #2729) --- .../style/custom-navbar/CustomNavbarItem.vue | 4 +- .../favorites/NavbarFavorites.vue | 2 +- .../custom-navbar/history/NavbarHistory.vue | 81 ++++++++++++------- .../style/custom-navbar/history/history.ts | 2 +- .../style/custom-navbar/history/types.ts | 34 ++++++-- .../custom-navbar/settings/NavbarSettings.vue | 2 +- .../subscriptions/SubscriptionsList.vue | 2 +- .../custom-navbar/user-info/UserInfoPopup.vue | 6 +- .../watchlater/NavbarWatchlater.vue | 2 +- src/ui/CheckBox.vue | 2 +- 10 files changed, 90 insertions(+), 47 deletions(-) diff --git a/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue b/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue index d61166464..6bb5f51c0 100644 --- a/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue +++ b/registry/lib/components/style/custom-navbar/CustomNavbarItem.vue @@ -155,6 +155,8 @@ export default Vue.extend({