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.
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.
Since this extension is not on the Mozilla Add-ons Store, you can install it manually:
- Download or Clone this repository to your computer.
- Open Firefox and type
about:debuggingin the address bar. - Click on "This Firefox" in the left sidebar.
- Click the "Load Temporary Add-on..." button.
- Navigate to the folder where you downloaded this code and select the
manifest.jsonfile.
- Navigate to a YouTube Playlist page (or a video that is part of a playlist).
- Click the extension icon (Puzzle piece or the custom icon) in your Firefox toolbar.
- Click the "Extract URLs" button.
- The text area will fill with links. Click "Copy to Clipboard" to save them.
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";
});This project is open source and available under the MIT License.