Do you ever feel like youtube knows you too well? This script lets you explore random videos with a single click. 🎲
A Tampermonkey userscript that adds a "Random Video" button to YouTube's navigation bar, allowing users to discover random YouTube videos.
Before you can use the script, ensure the following:
Install a Userscript Manager:
- You need a userscript manager like TamperMonkey or Greasemonkey.
- TamperMonkey is highly recommended as it is widely supported and user-friendly.
Supported Browsers:
- Chrome, Firefox, Edge, Safari, or any browser compatible with TamperMonkey or similar extensions.
Install TamperMonkey:
- Visit the official TamperMonkey website and download the extension for your browser.
- Follow the installation prompts specific to your browser.
Create a New Script:
- Open TamperMonkey by clicking its icon in your browser's toolbar.
- Select "Create a New Script" from the menu.
Add the Script Code:
- Copy the YouTube Random Video script code provided below and paste it into the TamperMonkey script editor:
Save the Script:
- Click the Save button or press
Ctrl + S(Cmd + Son macOS) in the TamperMonkey editor.
Enable the Script:
- Ensure the script is enabled in TamperMonkey by checking the toggle switch next to its name in the dashboard.
Reload YouTube:
- Open or refresh YouTube to see the "Random Video" button appear in the navigation bar.
- Learn more about TamperMonkey: Official Documentation
- Understand how userscripts work: Greasemonkey Userscript Guide
- Explore more TamperMonkey script ideas: GreasyFork
Enjoy exploring random videos with the click of a button! 🎉
@Author: Mitul Patel
This is an exercise to learn more about: