Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Download ANY Video from YouTube

This addon adds a link to download .mp4 videos from You Tube

Download youtube video's as mp4 format.

Photobucket

Credits:
Improved script from
http://userscripts.org/scripts/show/28918

Now supports .mp4 format

Moved the download button to the left of views.






1 point
login to vote
KayKay scriptwright
Posted Jun 28, 2008

There is no need to improve my script??! Just a simple copy! (You may rename MY variable names, at least!! Buffoon!)

Same script (with auto-update + multilingual + multi format support [mp4, aswell as high quality flv + normal flv!!]):
http://userscripts.org/scripts/show/28918

1 point
login to vote
Brandyn script's author
Posted Jun 26, 2008

My script should work now.

1 point
login to vote
fungo user
Posted Jun 25, 2008

Or... you could use this script, which does work:

http://userscripts.org/scripts/show/28178

1 point
login to vote
Booboo scriptwright
Posted Jun 25, 2008

Hi people,

I've done the same as you, but i looked behind the scenes so there were some problems in the code, i've tried to sove:

      // ==UserScript==
      // @name          Download ANY Video from YouTube
      // @namespace     http://userscripts.org/users/37550
      // @description   adds a link to download flv from You Tube
      // @source        http://userscripts.org/scripts/show/28937
      // @identifier    http://userscripts.org./scripts/source/28937.user.js
      // @version     5
      // @date          2008-06-62
      // @creator       Sn1p1ng Guy117
      // @include       *youtube.*/*v=*
      // ==/UserScript==
      
      
      
       var download_url = 'http://www.youtubemp4.com/video/';
       var playerDiv = document.getElementById('movie_player');
       var flashvars = document.evaluate("attribute::flashvars", playerDiv, null, XPathResult.STRING_TYPE, null).stringValue;
       var video_id = flashvars.match(/video_id=([^(\&|$)]*)/)[1];
       var video_format = '.mp4'; 
       var video_url = download_url + video_id + video_format;
      
      function getEl(w){
      	return document.getElementById(w);
      }
      
      
      
      autoupdate();
             desc = getEl("watch-views-div");
             descP = desc.parentNode;
             dv = document.createElement("a");
             dv.innerHTML=" Download MP4 ";
             dv.setAttribute("rel", "nofollow");
             dv.setAttribute("class", "actionLink");
             dv.href=video_url;
             descP.insertBefore(dv, desc);
      
      function autoupdate() {
      var day = GM_getValue('day');
      if(day == undefined){
      	GM_setValue('day',new Date().getDay());
      }else{
      	if(day != new Date().getDay()){
      
      		GM_xmlhttpRequest({
      			method:"GET",
      			url:'http://userscripts.org./scripts/source/28937.user.js',
      			onload:function(result) {
      				if (result.responseText.indexOf('@version     1') == -1) {
      					var div = document.createElement("div");
      			div.setAttribute("style", "background-color: #00FF00;");
      					div.appendChild(document.createTextNode('There is a new version of the "Download ANY Video from YouTube" userscript.'));
      					div.appendChild(document.createElement("br"));
      
      					var a1 = document.createElement("a");
      					a1.setAttribute("href", "http://userscripts.org/scripts/source/28937.user.js");
      					a1.appendChild(document.createTextNode('Click here to install the script update'));
      					div.appendChild(a1);
      
      					document.body.insertBefore(div, document.body.firstChild);
      			GM_setValue('version',version + 1);
      				}
      			}
      		});
      		GM_setValue('day',new Date().getDay());
      	}else{
      
      	}
      	}
      }
      

I don't guaranty anything but the syntax errors are gone. ;)

1 point
login to vote
fungo user
Posted Jun 24, 2008

Ditto for me - I've installed and re-installed, but never see the "Download MP4" link. Too bad... this sounds like exactly the script I wanted. I've got very little use for low-res FLVs, but would love a quick and easy way to grab the MP4s.

1 point
login to vote
JoeSimmons scriptwright
Posted Jun 24, 2008

Np. By the way Author, your include should be correctly put as http://*youtube.com/watch?=v*

Script isn't even working now, at all, no matter how many times I re-install.

1 point
login to vote
KayKay scriptwright
Posted Jun 23, 2008

Oh! ^^ Sry for that one dude... I missunderstood! ;-D

Yea... looks like that... Well... just use...
http://userscripts.org/scripts/show/28918
Now available in over 10 languages! :-)

1 point
login to vote
JoeSimmons scriptwright
Posted Jun 23, 2008

Not yours. His.

1 point
login to vote
KayKay scriptwright
Posted Jun 23, 2008

Yea... For sure! If my script was uploaded first, it has to be a copy!?! *eye-roll*

FLV because not all videos are available as mp4!

1 point
login to vote
JoeSimmons scriptwright
Posted Jun 22, 2008

haha yea script copy. and this isn't mp4 format, it's flv....

1 point
login to vote
KayKay scriptwright
Posted Jun 22, 2008

Same script (with auto-update + multilingual) already exists at:
http://userscripts.org/scripts/show/28918

1 point
login to vote
Hot Soup0 user
Posted Jun 22, 2008

Whereabouts should this link be? I've installed it three times total, haven't seen it yet...

*EDIT* Whooops, found it.

1 point
login to vote
Brandyn script's author
Posted Jun 22, 2008

Some users report this as not displaying the download link, if this happens reinstall.

You could comment on this script if you were logged in.