Skip to content

Commit

Permalink
feat(player): hotkey q
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Mar 31, 2024
1 parent 6cbcfb1 commit 25811fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/player.player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ const __player_metadata__ = (function () {
case 68: // D
if (P.elements.danmakuToggle) P.elements.danmakuToggle.click();
break;
case 81: // Q
console.log(P.video.currentTime);
P.toast(`Time: ${P.fCurrentTime()} (${P.video.currentTime})`);
break;
default:
break;
}
Expand Down

0 comments on commit 25811fd

Please sign in to comment.