YouTube Hide UI on Arrow Keys, Show on Mouse Move

Ok tuşları UI'yi açmasın ama mouse hareketinde görünsün (tüm .ytp- elemanları otomatik algılanır)

2025/02/15のページです。最新版はこちら。

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
Kaan Alper Karaaslan
評価
0 0 0
バージョン
2.0
作成日
2025/02/15
更新日
2025/02/15
大きさ
2.82KB
ライセンス
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.