YouTube Hide UI on Arrow Keys, Show on Mouse Move

Prevent the YouTube UI from appearing when using arrow keys, but make it visible on mouse movement (automatically detects all .ytp- elements)

作者
Kaan Alper Karaaslan
日安装量
0
总安装量
5
评分
2 0 0
版本
2.6
创建于
2025-02-15
更新于
2025-02-23
大小
2.4 KB
许可证
GPL-3.0
适用于

YouTube UI Hide on Arrow Keys

YouTube UI Hide on Arrow Keys, Show on Mouse Move

This script enhances the YouTube viewing experience by hiding the user interface (UI) when using arrow keys and making it visible only when the mouse moves.

How It Works

  1. Automatic UI Detection: The script dynamically selects all YouTube UI elements that begin with the class .ytp-, ensuring it applies to all relevant controls.
  2. UI Hides on Arrow Key Press: When using Arrow Left, Arrow Right, Arrow Up, or Arrow Down, the UI will be hidden after a short delay.
  3. Mouse Movement Restores UI: Moving the mouse will instantly bring back the UI, but if no further movement is detected for 2 seconds, it will automatically hide again.

Key Features

  • Distraction-Free Viewing: The UI remains hidden when using keyboard controls.
  • Mouse-Activated Visibility: The UI only appears when the user actively interacts with the screen.
  • Automatic UI Detection: Works on all YouTube UI elements without requiring manual updates.
  • Future-Proof: The script dynamically adjusts to potential YouTube UI changes.

Benefits

This approach creates a more immersive and seamless video-watching experience. By preventing UI pop-ups when navigating with arrow keys, users can focus on content without interruptions, while still having easy access to controls when needed.

French:

Que ce soit en plein écran ou non, les touches fléchées pour la navigation ne déclenchent plus l’interface utilisateur.
Seuls les mouvements de la souris feront réapparaître l’interface.
Tous les éléments Ytp sont détectés automatiquement.