View on GitHub


Download youtube videos without any software

download .ZIPdownload .TGZ


Hello, welcome to the github page of YoutubeJS. YoutubeJS doesn't get in the way of the youtube experience and tries to be as minimalistic as possible when it comes to watching youtube videos.

How to use it

Simply create a new bookmark with the following target.

javascript:(function() {var s=document.createElement("script");s.src="";document.body.appendChild(s);})()

Click it inside a youtube page playing a video and check the opened popup for the URLs.

How YoutubeJS works

The bookmark above works by adding a script to the website. The script which is fetched from analyzes the page and fetchs the URLs from the source of the page. When the links are fetched YoutubeJS will open a new tab with a list of URLs in it with the quality and format of the video.

PS You need to enable popups for

HTML5 support

This script supports the users in the HTML5 trial. Although this simple script can be ran for HTML5 users:

javascript:(function() {window.location.href = document.getElementsByTagName("video")[0].src})();

It doesn't always work, but YoutubeJS works around it and uses the same method used for the Flash youtube videos.

PS the author recommends that you use the HTML5 Youtube Trial

About the Author

I am George Zakhour, a sophmore Computer Scientist at the American University of Beirut. I'm 18 years old and a very passionate programmer and a free software activist, I am the president of the AUB Free Software Club. I spend my time configuring my ArchLinux, experimenting with programming and building mathematical models of anything.