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.
- 🚀 One-Click Extraction: Just click the extension icon to download your cookies instantly.
- 📄 Netscape Format: Automatically generates a valid
cookies.txtfile 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.
- Download the latest release
.zipfrom the Releases page. - Unzip the folder.
- Open
chrome://extensions/. - Enable Developer mode (top right).
- Click Load unpacked and select the unzipped folder.
- Download the latest
.xpifile from the Releases page. - For Desktop: Open
about:addons, click the gear icon, and select Install Add-on From File.... - For Android: Follow the Mozilla guide to install custom add-ons via a Collection.
git clone https://github.com/a-lberto/ytcookie.git
cd ytcookie
npm installThe project uses Playwright for automated testing of the cookie extraction logic.
npm testTo 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