Bilibili-Evolved icon indicating copy to clipboard operation
Bilibili-Evolved copied to clipboard

安装”播放器位置动作“导致“夜间模式跟随系统”无效

Open chsbuffer opened this issue 2 years ago • 3 comments

对应功能

夜间模式跟随系统 77d4e04d0 播放器位置动作 77d4e04d0

问题描述

  1. 安装 播放器位置动作 夜间模式跟随系统 夜间模式
  2. 系统设置-个性化-从浅色主题切换为深色主题
  3. 刷新任意打开的bilibili页面

预期

夜间模式组件被启用

实际行为

夜间模式组件没有被启用

*反之从深色模式切换为浅色模式同理

  1. 禁用 播放器位置动作 组件后再次刷新页面,夜间模式正常跟随系统

脚本版本

v2.1.7-preview

浏览器版本

Google Chrome 99.0.4844.82 / Microsoft Edge 99.0.1150.46

播放器版本

No response

播放策略

No response

错误信息

无脚本日志

附加截图

No response

chsbuffer avatar Mar 22 '22 09:03 chsbuffer

组件 Commit: 84b92e6e4 Edge 100.0.1185.39 x64

https://user-images.githubusercontent.com/33744752/163563287-32a24e80-a114-462d-86fa-a108d3cd4b02.mp4

chsbuffer avatar Apr 15 '22 11:04 chsbuffer

https://github.com/the1812/Bilibili-Evolved/blob/54b2c9bf1cc508572c8394464fe14988e105c734/registry/lib/components/video/player/intersection-actions/index.ts#L28 https://github.com/the1812/Bilibili-Evolved/blob/54b2c9bf1cc508572c8394464fe14988e105c734/registry/lib/components/style/dark-mode/follow-system/index.ts#L9

播放器位置动作在不存在播放器的页面上(如主页)等待播放器元素造成阻塞脚本完成直至超时(或者不会超时一直等待),此时夜间模式跟随系统才能开始判断

chsbuffer avatar Jun 02 '22 02:06 chsbuffer

播放器位置动作 组件缺了个 urlInclude

chsbuffer avatar Jun 02 '22 03:06 chsbuffer