Greasy Fork is available in English.

YouTube Cobalt Tools Download Button

Adds a download button to YouTube videos using Cobalt API for downloading videos or audio.

Autor
Luca LeBlanc
Denne inštalácií
5
Celkový počet inštalácií
73
Hodnotenie
1 0 0
Verzia
0.4
Vytvorené
13.06.2024
Aktualizované
25.06.2024
Licencia
GNU GPLv3
Spustiť na

YouTube Download Button with Cobalt API

Description

This user script adds a download button to YouTube videos, allowing users to download videos or audio using the Cobalt API.

How It Works

The script integrates a download button into YouTube's UI, enabling users to download video or audio in their preferred format and quality. It leverages the Cobalt API to facilitate the downloading process.

Key Functions

  1. Cobalt API Request: Sends a request to the Cobalt API to generate a download link.
  2. Fetch Video Qualities: Retrieves available video qualities from the YouTube page.
  3. Show Quality Popup: Displays a popup for the user to select the format and quality before downloading.
  4. Remove Native YouTube Download Button: Removes the native YouTube Premium Download button, whether it be in overflow or not.

Usage

  1. Install a userscript manager like Tampermonkey.
  2. Add this user script to the manager.
  3. Visit any YouTube video page.
  4. Click the newly added "Download" button.
  5. Select the desired format and quality from the popup.
  6. Click "Download" to start the download process.

Credits

  • API: Cobalt API
  • Userscript Functions: GM.xmlHttpRequest, GM_notification