Do you ever find a great YouTube playlist — coding tutorials, workout mixes, study music — and wish you could download all the videos at once for offline viewing?
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => if (request.action === "getPlaylist") sendResponse( videos: getPlaylistData() );