Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复获取用户名称后未去除空白字符导致黑名单无法匹配的问题 #4353

Closed
wants to merge 55 commits into from

Conversation

CrazyboyQCD
Copy link
Contributor

No description provided.

lovelyCARDINAL and others added 30 commits July 30, 2023 16:17
- feat: 播放器顶部留白自定义数值
- fix: 限制组件仅在播放页执行 减少无意义DOM操作
- 动态创建自定义事件并通过dispatchEvent派发
- 仅在播放器模式发生变化时派发事件
- 监听全局事件playerModeChange 并修改样式
- 为什么不用静态CSS:弹幕列表的marginTop在不同宽度设备是不同的,具体规则并不确定,需要用JS即时获取
- #4178
- 之前是通过获取`#danmukuBox`原始`marginTop`来设置UP主信息的`marginTop`的
- 现在可以通过实时计算 获得目标`marginTop`值
- 用于计算的代码来自B站混淆后的内联JS 做了一些适应性修改
- 之前展示的是完整路径 当路径过长时会导致提示信息过长 选取体验很差
- 做统一截取处理 只展示能够区分当前组件的部分
const likeButton = e.closest('.bili-dyn-item__main').querySelector('.bili-dyn-action.like')
return likeButton && !likeButton.classList.contains('active') ? likeButton : []
})
// 固定dom路径,提升性能
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这么改提升不了多少性能, b 站要是哪天多套个 div 这一段代码就要炸了

@CrazyboyQCD CrazyboyQCD closed this Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants