Leadboard banner design 2

Youtube Playlist =link= Downloader Chrome Extension (2024)

); Your extension will call http://localhost:3000/download?url=VIDEO_URL

chrome.runtime.onMessage.addListener((request, sender, sendResponse) => if (request.action === "getPlaylist") sendResponse( videos: getPlaylistData() );

That’s where a custom comes in.

<!-- popup.html --> <button id="fetchBtn">Get Playlist Videos</button> <ul id="videoList"></ul> <button id="downloadAllBtn" style="display:none;">Download All (MP4)</button> // popup.js document.getElementById("fetchBtn").addEventListener("click", async () => const [tab] = await chrome.tabs.query( active: true, currentWindow: true ); const response = await chrome.tabs.sendMessage(tab.id, action: "getPlaylist" ); const videoList = document.getElementById("videoList"); videoList.innerHTML = "";

Write a response

Leave a Reply

Close
Copyright © 2020 WPGM. Website Developed by WeDoWebApps.
Close