Installation & Setup Guide
Overview
This guide provides step-by-step instructions for installing and setting up both components of the YouTube download toolkit: the Chrome extension for collecting video links and the Java application for downloading them.
Prerequisites
Before installing the toolkit, ensure you have the following software installed on your system:
Required Software
- 
Google Chrome Browser
- Version 88 or higher (for Manifest V3 support)
 - Available at: https://www.google.com/chrome/
 
 - 
Java Runtime Environment (JRE) 11 or higher
- Download from: https://adoptium.net/ or https://www.oracle.com/java/
 - Verify installation: 
java -version 
 - 
youtube-dl Command-Line Tool
- Download from: https://youtube-dl.org/
 - Alternative: yt-dlp (faster, more features): https://github.com/yt-dlp/yt-dlp
 - Verify installation: 
youtube-dl --version 
 - 
ffmpeg Media Processing Tool
- Download from: https://ffmpeg.org/download.html
 - Required for merging video and audio streams
 - Verify installation: 
ffmpeg -version 
 
System Requirements
- Operating System: Windows 10/11, macOS 10.14+, or Linux
 - Disk Space: At least 1GB free space for downloads
 - Internet Connection: Required for downloading videos
 - RAM: Minimum 4GB recommended
 
Part 1: Chrome Extension Installation
Method 1: Developer Mode Installation (Recommended)
Since this extension is not published on the Chrome Web Store, you'll need to install it in developer mode:
- 
Download the Extension
git clone https://github.com/your-repo/youtube-download-tools.git
cd youtube-download-tools/YoutubeCopyLinkChromeExtension - 
Open Chrome Extensions Page
- Open Google Chrome
 - Navigate to 
chrome://extensions/ - Or go to Menu → More Tools → Extensions
 
 - 
Enable Developer Mode
- Toggle the "Developer mode" switch in the top-right corner
 - This enables the ability to load unpacked extensions
 
 - 
Load the Extension
- Click "Load unpacked" button
 - Navigate to the 
YoutubeCopyLinkChromeExtensionfolder - Select the folder and click "Select Folder"
 
 - 
Verify Installation
- The extension should appear in your extensions list
 - You should see "Youtube Links Copy" with version 1.1
 - Pin the extension to your toolbar for easy access
 
 
Method 2: Manual File Installation
If you have the extension files without Git:
- 
Extract Files
- Download and extract the extension files to a folder
 - Ensure all files are in the same directory
 
 - 
Follow Steps 2-5 from Method 1 above
 
Extension Permissions
The extension will request the following permissions:
- activeTab: Access to the current YouTube tab
 - contextMenus: Add right-click menu options
 - storage: Save your preferences and collected links
 - unlimitedStorage: Store large lists of video links
 
Part 2: Java Application Setup
Download and Build
- 
Download the Application
git clone https://github.com/your-repo/youtube-download-tools.git
cd youtube-download-tools/YoutubeDownloader - 
Build with Maven (if building from source)
mvn clean installThis creates
target/YoutubeDownloader.jar - 
Alternative: Use Pre-built JAR
- If available, download the pre-built JAR file
 - Place it in your desired directory
 
 
Configuration Setup
- 
Create Working Directory
mkdir youtube-downloads
cd youtube-downloads - 
Copy JAR File
cp path/to/YoutubeDownloader.jar . - 
First Run Configuration
java -jar YoutubeDownloader.jarOn first run, the application will:
- Create a default 
config.propertiesfile - Set up the default download directory
 - Display the configuration menu
 
 - Create a default 
 - 
Configure Download Settings
- Choose option 5 (Change Configuration Settings)
 - Set your preferred download directory
 - Customize file naming template if desired
 
 
Windows Batch File Setup
For easier execution on Windows, create a batch file:
- 
Create
run.bat@echo off
java -jar YoutubeDownloader.jar
pause - 
Make it Executable
- Save the file in the same directory as the JAR
 - Double-click to run the application
 
 
Part 3: External Dependencies Setup
Installing youtube-dl
Windows
# Using pip (recommended)
pip install youtube-dl
# Or download executable
# Download youtube-dl.exe from https://youtube-dl.org/
# Place in PATH or same directory as JAR
macOS
# Using Homebrew
brew install youtube-dl
# Using pip
pip3 install youtube-dl
Linux
# Ubuntu/Debian
sudo apt install youtube-dl
# Or using pip
pip3 install youtube-dl
Installing ffmpeg
Windows
- Download from https://ffmpeg.org/download.html
 - Extract to a folder (e.g., 
C:\ffmpeg) - Add 
C:\ffmpeg\binto your PATH environment variable 
macOS
# Using Homebrew
brew install ffmpeg
Linux
# Ubuntu/Debian
sudo apt install ffmpeg
# CentOS/RHEL
sudo yum install ffmpeg
Verify Installation
Test that all dependencies are working:
# Test Java
java -version
# Test youtube-dl
youtube-dl --version
# Test ffmpeg
ffmpeg -version
# Test the application
java -jar YoutubeDownloader.jar
Part 4: Initial Configuration
Chrome Extension Setup
- 
Open the Extension Popup
- Click the extension icon in your Chrome toolbar
 - You should see the "Youtube Links Copy" interface
 
 - 
Configure Categories
- In the "Params" text area, enter your desired categories:
 
music
tutorials
entertainment
education
news - 
Save Configuration
- Click the "Save All" button
 - Your categories are now available in right-click menus
 
 
Java Application Configuration
- 
Set Download Directory
Configuration Menu:
1. View Configuration
2. Change Configuration Value
3. Save and Exit
Enter your choice: 2
Enter the key: destinationFolderName
Enter the new value: C:\Users\YourName\Downloads\YouTube - 
Configure File Naming
Enter the key: downloadedFileName
Enter the new value: %(channel)s-%(title)s-%(resolution)s.%(ext)s - 
Set Default List File
Enter the key: defaultListFile
Enter the new value: my-videos.txt 
Part 5: Verification and Testing
Test Chrome Extension
- 
Visit YouTube
- Go to https://www.youtube.com
 - Find any video thumbnail
 
 - 
Test Right-Click Menu
- Right-click on a video thumbnail
 - You should see your configured categories in the context menu
 
 - 
Test Collection
- Select a category from the context menu
 - Open the extension popup
 - Verify the video appears in the "List Links" area
 
 
Test Java Application
- 
Test Single Video Download
- Run the Java application
 - Choose option 1 (One video MP4 format)
 - Enter a YouTube URL
 - Choose a resolution (e.g., 720)
 
 - 
Test List Processing
- Create a test file with the collected links from the extension
 - Choose option 4 (Download list from file)
 - Verify videos download to correct folders
 
 
Troubleshooting
Common Issues
Extension not appearing in context menu:
- Refresh the YouTube page
 - Check that the extension is enabled
 - Verify you're right-clicking on video thumbnails, not other elements
 
Java application can't find youtube-dl:
- Ensure youtube-dl is in your system PATH
 - Try placing youtube-dl.exe in the same directory as the JAR file
 
Downloads failing:
- Check your internet connection
 - Verify youtube-dl is up to date: 
youtube-dl -U - Some videos may be region-restricted or private
 
Permission errors:
- Ensure the download directory is writable
 - Run with administrator privileges if necessary
 
Getting Help
If you encounter issues:
- Check the console output for error messages
 - Verify all dependencies are properly installed
 - Test with a simple, public YouTube video first
 - Check the project's issue tracker for known problems
 
Next Steps
Once everything is installed and configured:
- Read the Usage Guide for detailed workflow instructions
 
Your YouTube download toolkit is now ready to use!