Skip to content

Commit

Permalink
update: simpleShare
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Mar 26, 2024
1 parent 91c20e8 commit 0c4c93e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 3.2.2

- 新增:播放页隐藏接下来播放
- 更新:净化分享适配新版标题

## 3.2.1

Expand Down
2 changes: 1 addition & 1 deletion src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const simpleShare = () => {
// 新增click事件
// 若replace element, 会在切换视频后无法更新视频分享数量, 故直接新增click事件覆盖剪贴板
shareBtn.addEventListener('click', () => {
let title = document.querySelector('#viewbox_report > h1')?.textContent
let title = document.querySelector('.video-info-title .video-title, #viewbox_report > h1')?.textContent
if (!title) {
// 尝试稍后再看or收藏夹列表
title = document.querySelector('.video-title-href')?.textContent
Expand Down

0 comments on commit 0c4c93e

Please sign in to comment.