10000 captions: provide "w", "o", "-", "+" keydowns for player from YT by epicsam123 · Pull Request #5188 · iv-org/invidious · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

captions: provide "w", "o", "-", "+" keydowns for player from YT #5188

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

epicsam123
Copy link
Contributor
@epicsam123 epicsam123 commented Feb 20, 2025

Added additional keydown events missing from YouTube's interface, including:

  • toggle the size of the captions with "-", "+" ("+" is recognized as "=")
  • toggle the opacity of the captions with "o"
  • toggle the caption window with "w"

Big thanks to the Invidious team for all their work. Please keep this project alive!

@epicsam123 epicsam123 requested a review from a team as a code owner February 20, 2025 02:11
@epicsam123 epicsam123 requested review from syeopite and removed request for a team February 20, 2025 02:11
@@ -5,6 +5,9 @@ var video_data = JSON.parse(document.getElementById('video_data').textContent);
var options = {
liveui: true,
playbackRates: [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0],
fontPercent: [0.5, 0.75, 1.25, 1.5, 1.75, 2, 3, 4],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I verified that these are the only values that are accepted by videojs for each of the three caption properties.

@epicsam123 epicsam123 requested a review from syeopite March 20, 2025 14:15
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.

3 participants
0