Skip to content

A lightweight Firefox extension that extracts video URLs from any YouTube playlist and formats into a simple list for easy copying.

License

Notifications You must be signed in to change notification settings

jonathanhoss/Firefox_YT_Link_Grabber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Playlist Link Grabber

Extension Icon

A lightweight Firefox extension (Add-on) that extracts video URLs from any YouTube playlist and formats them into a simple list for easy copying.

Built with Manifest V3.

Project Structure

  • manifest.json - Configuration file defining permissions and extension details (Manifest V3).
  • popup.html - The user interface (UI) for the extension window.
  • popup.js - The logic that handles button clicks and injects the scraper script.
  • icon-48.png / icon-96.png - Extension icons.

Installation (Developer Mode)

Since this extension is not on the Mozilla Add-ons Store, you can install it manually:

  1. Download or Clone this repository to your computer.
  2. Open Firefox and type about:debugging in the address bar.
  3. Click on "This Firefox" in the left sidebar.
  4. Click the "Load Temporary Add-on..." button.
  5. Navigate to the folder where you downloaded this code and select the manifest.json file.

How to Use

  1. Navigate to a YouTube Playlist page (or a video that is part of a playlist).
  2. Click the extension icon (Puzzle piece or the custom icon) in your Firefox toolbar.
  3. Click the "Extract URLs" button.
  4. The text area will fill with links. Click "Copy to Clipboard" to save them.

Script Logic

The core logic uses querySelectorAll to find YouTube renderer elements:

// Looks for the playlist video renderers
document.querySelectorAll("ytd-playlist-panel-video-renderer").forEach(function(element) {
    // Extracts and cleans the URL
    urls += element.querySelector("#wc-endpoint").href.split("&")[0] + "\n";
});

📄 License

This project is open source and available under the MIT License.


About

A lightweight Firefox extension that extracts video URLs from any YouTube playlist and formats into a simple list for easy copying.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published