mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix toolbar actions
This commit is contained in:
parent
612790bda5
commit
f9378718ae
@ -136,13 +136,13 @@ export const builtInActions: Record<string, KeyBindingAction> = {
|
||||
coin: {
|
||||
displayName: '投币',
|
||||
run: useClickElement(
|
||||
'.video-toolbar .coin, .tool-bar .coin-info, .video-toolbar-module .coin-box, .play-options-ul > li:nth-child(2), .video-toolbar-v1 .coin, .toolbar .coin',
|
||||
'.video-toolbar .coin, .tool-bar .coin-info, .video-toolbar-module .coin-box, .play-options-ul > li:nth-child(2), .video-toolbar-v1 .coin, .toolbar .coin, .video-toolbar-container .video-coin',
|
||||
),
|
||||
},
|
||||
favorite: {
|
||||
displayName: '收藏',
|
||||
run: useClickElement(
|
||||
'.video-toolbar .collect, .video-toolbar-module .fav-box, .play-options-ul > li:nth-child(3), .video-toolbar-v1 .collect',
|
||||
'.video-toolbar .collect, .video-toolbar-module .fav-box, .play-options-ul > li:nth-child(3), .video-toolbar-v1 .collect, .video-toolbar-container .video-fav',
|
||||
),
|
||||
},
|
||||
pause: {
|
||||
@ -157,7 +157,7 @@ export const builtInActions: Record<string, KeyBindingAction> = {
|
||||
return (context: KeyBindingActionContext) => {
|
||||
const { event } = context
|
||||
const likeButton = dq(
|
||||
'.video-toolbar .like, .tool-bar .like-info, .video-toolbar-v1 .like, .toolbar .like',
|
||||
'.video-toolbar .like, .tool-bar .like-info, .video-toolbar-v1 .like, .toolbar .like, .video-toolbar-container .video-like',
|
||||
) as HTMLSpanElement
|
||||
if (!likeButton) {
|
||||
return false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user