Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bittricky/yt-random-video

A user script for adding a "Random Video" button to YouTube to watch a random video.
https://github.com/bittricky/yt-random-video

fun javascript tampermonkey userscript

Last synced: about 1 month ago
JSON representation

A user script for adding a "Random Video" button to YouTube to watch a random video.

Awesome Lists containing this project

README

        

# YouTube Random Video Button

A Tampermonkey userscript that adds a "Random Video" button to YouTube's navigation bar, allowing users to discover random YouTube videos with a single click.

## Prerequisites

Before you can use the script, ensure the following:

**Install a Userscript Manager**:

- You need a userscript manager like [TamperMonkey](https://www.tampermonkey.net/) or [Greasemonkey](https://www.greasespot.net/).
- 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.

## Installation Steps

**Install TamperMonkey**:

- Visit the [official TamperMonkey website](https://www.tampermonkey.net/) 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 Enhancer script code provided below and paste it into the TamperMonkey script editor:

**Save the Script**:

- Click the **Save** button or press `Ctrl + S` (`Cmd + S` on 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](https://www.youtube.com) to see the "Random Video" button appear in the navigation bar.

## More Information

- Learn more about TamperMonkey: [Official Documentation](https://www.tampermonkey.net/documentation.php)
- Understand how userscripts work: [Greasemonkey Userscript Guide](https://wiki.greasespot.net/Main_Page)
- Explore more TamperMonkey script ideas: [GreasyFork](https://greasyfork.org/)

Enjoy exploring random videos with the click of a button! 🎉

@Author: Mitul Patel