Skip to content

Instantly share code, notes, and snippets.

View m45k174's full-sized avatar
🏠
Working from home

Rajarshi Bhadra m45k174

🏠
Working from home
View GitHub Profile
@Amitind
Amitind / YouTubNow.com
Last active January 22, 2023 10:04
Download YouTube Video Using Bookmarklet
javascript: var regeX = /^.*(youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#&\?]*).*/,
getYTURL = location.href,
video_id, match = getYTURL.match(regeX);
if (match && 11 == match[2].length) {
video_id = match[2];
var url = "https://www.youtubnow.com/watch/?v=" + escape(video_id);
(w = open(url, "w", "location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=800,modal=yes,dependent=yes")) ? setTimeout("w.focus()", 1E3): location = url
} else alert(" That's Not a Valid YouTube URL, \n Need URL like this \n http://youtube.com/watch?v=KuUYePG6ygQ ");