YouTube Download Button with Cobalt API

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

2024-06-13 기준 버전입니다. 최신 버전을 확인하세요.

작성자
yodaluca23
평점
0 0 0
버전
0.1
생성일
2024-06-13
갱신일
2024-06-13
크기
11.4KB
라이선스
GNU GPLv3
적용 사이트

YouTube Download Button with Cobalt API

Description

This userscript 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.

Usage

  1. Install a userscript manager like Tampermonkey.
  2. Add this userscript 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