Skip to content

a-lberto/ytcookie

Repository files navigation

▶🍪⬇ YouTube Cookie Downloader

GitHub Release Chrome Web Store Firefox Add-ons

A lightweight, modern browser extension to extract your YouTube cookies into a Netscape-formatted text file. Perfect for use with tools like yt-dlp, curl, and wget.

✨ Features

  • 🚀 One-Click Extraction: Just click the extension icon to download your cookies instantly.
  • 📄 Netscape Format: Automatically generates a valid cookies.txt file compatible with industry-standard tools.
  • 🔒 Privacy First: Processes everything locally in your browser. No data ever leaves your machine.
  • 🌐 Cross-Browser: Built with Manifest V3, supporting Chrome, Firefox, Edge, and Firefox for Android.
  • 🛠️ Developer Friendly: Clean, modular code with automated Playwright tests.

🚀 Installation

Chrome / Edge / Brave

  1. Download the latest release .zip from the Releases page.
  2. Unzip the folder.
  3. Open chrome://extensions/.
  4. Enable Developer mode (top right).
  5. Click Load unpacked and select the unzipped folder.

Firefox (Desktop & Android)

  1. Download the latest .xpi file from the Releases page.
  2. For Desktop: Open about:addons, click the gear icon, and select Install Add-on From File....
  3. For Android: Follow the Mozilla guide to install custom add-ons via a Collection.

🛠️ Development

Prerequisites

Setup

git clone https://github.com/a-lberto/ytcookie.git
cd ytcookie
npm install

Running Tests

The project uses Playwright for automated testing of the cookie extraction logic.

npm test

📦 Building

To package the extension for different browsers:

Chrome:

# Zip the root files (excluding node_modules, tests, etc.)
zip -r ytcookie-chrome.zip . -x "node_modules/*" "tests/*" ".git/*" ".github/*"

Firefox:

npx web-ext build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors