Use youtube-dl directly to download the video (thanks @meepybub!) Example:
youtube-dl -u <youremailaddress@example.com> "https://vimeo.com/ondemand/<video>"
http://www.youtube.com/watch?v=-wtIMTCHWuI | |
http://youtube.com/watch?v=-wtIMTCHWuI | |
http://m.youtube.com/watch?v=-wtIMTCHWuI | |
https://www.youtube.com/watch?v=lalOy8Mbfdc | |
https://youtube.com/watch?v=lalOy8Mbfdc | |
https://m.youtube.com/watch?v=lalOy8Mbfdc | |
http://www.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail | |
http://youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail | |
http://m.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail |
Use youtube-dl directly to download the video (thanks @meepybub!) Example:
youtube-dl -u <youremailaddress@example.com> "https://vimeo.com/ondemand/<video>"
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
//change this selector accordingly | |
selectors=['header', 'logo']; | |
(function(selectors){ | |
function hideByTag(tag){ | |
var tags = document.getElementsByTagName(tag); | |
if (tags.length){ | |
tags.forEach(function(element){ | |
element.hidden = true; | |
}); | |
} |