Skip to content

Prevent the YouTube UI from appearing when using arrow keys, but make it visible on mouse movement.

License

Notifications You must be signed in to change notification settings

KaanAlper/Youtube-Ui-Hider-userscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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.

Installation

  1. Install ViolentMonkey or TemperMonkey or another script extension for your browser.
  2. Click "Create a new script" in the ViolentMonkey dashboard, or you can install it directly from GreasyFork
  3. Copy and paste the script code into the editor.
  4. Save and enable the script.
  5. Enjoy a cleaner YouTube experience!

License

This project is licensed under the Kaan Alper Karaaslan Personal & Academic Use License (v1.1).

🔹 Summary of the License: ✅ You are free to use, modify, and distribute this software for personal and academic purposes. ❌ Commercial use is strictly prohibited. You may not sell, license, or integrate this software into any commercial product or service. ✅ If you modify and share this software, you must provide proper attribution and retain this license. 📧 If you wish to use this software for commercial purposes, you must obtain explicit permission from the author by contacting: kaanalperkaraaslan@gmail.com. For full details, please refer to the complete license text included in this repository.

About

Prevent the YouTube UI from appearing when using arrow keys, but make it visible on mouse movement.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published