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.
-
Automatic UI Detection
- The script dynamically selects all YouTube UI elements that begin with the class
.ytp-
, ensuring it applies to all relevant controls.
- The script dynamically selects all YouTube UI elements that begin with the class
-
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.
-
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.
- 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.
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.
- Install ViolentMonkey or TemperMonkey or another script extension for your browser.
- Click "Create a new script" in the ViolentMonkey dashboard, or you can install it directly from GreasyFork
- Copy and paste the script code into the editor.
- Save and enable the script.
- Enjoy a cleaner YouTube experience!
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.