This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addDownloadButtonsToVideos() { | |
const addButton = (video) => { | |
// Check if a download button already exists for this video | |
if (video.parentElement.querySelector('.download-button')) return; | |
// Create the download button | |
const button = document.createElement('button'); | |
button.textContent = 'Download'; | |
button.className = 'download-button'; | |
Object.assign(button.style, { |
OlderNewer