Skip to content

Commit

Permalink
update: item details
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jun 25, 2024
1 parent 8efe239 commit 78c469c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/rules/bangumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ if (isPageBangumi()) {
itemCSSPlaceholder: '???',
}),
]
bangumiGroupList.push(new Group('player-mode', '播放设定(实验功能)', playerInitItems))
bangumiGroupList.push(new Group('player-mode', '播放设定', playerInitItems))

// 播放器
const playerItems = [
Expand Down
11 changes: 9 additions & 2 deletions src/rules/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ if (isPageHomepage()) {
description: '增大 视频载入 视频数量 (实验功能)',
itemCSS: `
/* 扩增载入后会产生奇怪的骨架空位 */
.floor-single-card:has(.skeleton, .skeleton-item) {
:not(.load-more-anchor) .floor-single-card:has(.skeleton, .skeleton-item) {
display: none;
}`,
enableFunc: async () => {
Expand Down Expand Up @@ -521,7 +521,14 @@ if (isPageHomepage()) {
const simulateScroll = () => window.dispatchEvent(new Event('scroll'))
simulateScroll()
window.addEventListener('wheel', (e: WheelEvent) => {
e.deltaY > 0 && simulateScroll()
if (e.deltaY > 0) {
let cnt = 0
const id = setInterval(() => {
simulateScroll()
cnt++
cnt > 3 && clearInterval(id)
}, 50)
}
})
},
enableFuncRunAt: 'document-end',
Expand Down
2 changes: 1 addition & 1 deletion src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ if (isPageVideo() || isPagePlaylist()) {
itemCSSPlaceholder: '???',
}),
]
videoGroupList.push(new Group('player-mode', '播放设定(实验功能)', playerInitItems))
videoGroupList.push(new Group('player-mode', '播放设定', playerInitItems))

// 视频信息
const infoItems = [
Expand Down

0 comments on commit 78c469c

Please sign in to comment.