By TheAceOfFire
Has 9 other scripts.
// ==UserScript==
// @name Online Video Stripper 4
// @namespace http://theaceoffire.8k.com/Version4
// @description Shows link to flv file for download using Keepvid.com. Works on youtube, veoh, megavideo, google video, zippy videos, myspace, break, dailymotion, lulu, metacafe, collegehumor, funnyordie, and 5min.
// @include *youtube.com/watch?*
// @include *veoh.com/videos/*
// @include *megavideo.com/?v=*
// @include *video.google.com/videoplay?*
// @include *zippyvideos.com/*
// @include *vids.myspace.com/*videoid=*
// @include *break.com/index/*
// @include *dailymotion.com/video/*
// @include *lulu.tv/?p=*
// @include *metacafe.com/watch/*
// @include *collegehumor.com/video/*
// @include *funnyordie.com/videos/*
// @include *5min.com/Video/*
// @exclude *zippyvideos.com/
// @exclude *zippyvideos.com/video_search_form.z
// @exclude *zippyvideos.com/browse.z
// ==/UserScript==
var init=function(y){
var temp=document.getElementById("myShell");
if(temp==null){//If we are not done.
var origURL=location.href.split("#")[0];//String to be used.
data="";//Container for other sites responce.
var title=document.title;//Get the title.
if(title.length>=30){title=title.slice(0,29);}//Trim it down.
try{
GM_xmlhttpRequest({
method: "POST",
url: "http://megaupload.net/keepvid.php",
headers:{
"User-agent": "Mozilla/4.0 (compatible) Greasemonkey",
"Accept": "application/xml,text/xml",
"Content-type":"application/x-www-form-urlencoded"
},
data: "url="+origURL+"&site=aa",
onload: function(stuff){
data=stuff.responseText;//Save data.
next();//We got the data, lets move on.
}
});
}catch(x){alert("Error with GM_xmlhttpRequest for keepvid.com");}
function next(){//This part won't get called till data is ready.
//Remove all spaces, find a url.
data=data.replace(/[\t\v\n\r\f]/g,"").replace(/.*href\=[\"\'](.*)[\"\']\>\<b\>.*/i,"$1");
var shellShim=document.createElement("iframe");
shellShim.setAttribute("name","shim");
shellShim.setAttribute("id","shim");
shellShim.setAttribute("style","position:absolute;left:0;top:0;width:30%;height:2.5em;background-color:transparent;");
shellShim.setAttribute("src","javascript:;");
shellShim.setAttribute("frameBorder","0");
shellShim.setAttribute("scrolling","no");
var shell=document.createElement("div");
shell.setAttribute("id","myShell");
shell.setAttribute("style","z-index:100!important;margin:0.2em;padding:.2em .3em;background-color:#aaa;color:#ccf;position:absolute;left:.2em;top:.2em;border:1px #000 solid;text-align:center;");
shell.innerHTML="<a href=\""+data+"\" style=\"text-decoration:none;\">Download flv: "+title+"</a>";
document.body.appendChild(shellShim);
document.body.appendChild(shell);
}
}
}
init(document.title);//If not done, do it.