window.onload = function() { videos = document.querySelectorAll('video'); [].forEach.call(videos, function(video) { video.setAttribute("controlsList", "nodownload"); }); };