08/04/14 15:48:21 nFBivYe0
なんかよくわからんがこれで動いた
// ==UserScript==
// @name Download YouTube Videos as MP4
// @description Adds an option to download YouTube videos.
// @namespace URLリンク(googlesystem.blogspot.com)<)
// @include URLリンク(youtube.com)
// @version 0.2
// ==/UserScript==
if (document.getElementById('download-youtube-video')==null && !!(document.location.href.match(/http:\/\/[a-zA-Z\.]*youtube\.com\/watch/))) {
var yt_mp4_path='URLリンク(www.youtube.com)'+swfArgs['video_id']+'&t='+swfArgs['t'];
var div_embed=document.getElementById('watch-embed-div');
div_embed.innerHTML=
div_embed.innerHTML+
'<br /> <span id=\'download-youtube-video\'><a href=\''+
yt_mp4_path+
'\'>Download as MP4</a> (right-click and select <i>Save '+
(navigator.appName=='Microsoft Internet Explorer'?'target':'link')+
' as</i>)</span>';
}