By TheAceOfFire
Has 9 other scripts.
// ==UserScript==
// @name Online Video Stripper 3.1: Stream Ripper Edition
// @namespace http://theaceoffire.8k.com/Version3.1
// @description If you are on a video page, this sends a copy of your current url to keepvid.com, and requests a link to the file being streamed. It then creates a new body for the page with a link to the original page and a direct link to the FLV, MP4, or whatever source was being streamed. Sites tested and working include youtube, veoh, megavideo, google video, zippyvideos, putfile, myspace, break, dailymotion, lulu.tv, and metacafe..
// @include *veoh.com/videos/*
// @include *megavideo.com/?v=*
// @include *video.google.com/videoplay?*
// @include *zippyvideos.com/*
// @include *youtube.com/watch?v=*
// @include *media.putfile.com/*
// @include *vids.myspace.com/*videoid=*
// @include *break.com/index/*
// @include *dailymotion.com/video/*
// @include *lulu.tv/?p=*
// @include *metacafe.com/watch/*
// @exclude *media.putfile.com/
// @exclude *zippyvideos.com/
// @exclude *zippyvideos.com/video_search_form.z
// @exclude *zippyvideos.com/browse.z
// ==/UserScript==
var again=true;
var init=function(y){
if(location.href.indexOf("XnoJump")===-1&&again===true){//If they request not to jump here.
again=false;
function randN(s){return Math.round(Math.random()*(s-1));}
var origURL=location.href;//Test string.
origURL=origURL.split("#")[0];//Remove the rest of the junk.
var editedURL=origURL;
data="";//Container for other sites responce.
var xSite="";//Site used for saving video.
var xRandom=0;//Randomly picks which site to use.
var title=document.title;
var site=origURL.split("\/")[2].split(".");
site=(site[2])?site[1]:site[0];//If the third dot is an extension.
site=site.toLowerCase();
try{
switch(site){
case "veoh":
//Only Clip Nabber and leechvid can handle these. Leechvid can't do it correctly though.
xRandom=1;break;
case "none yet":
//only Keepvid.com can handle these.
xRandom=2;break;
default:xRandom=randN(3);//Everyone can handle it, so pick from anyone.
}
switch(xRandom){//xRandom){//Increase this when I find more sites like clipnabber.
case 0://download.leechvideo.com
GM_xmlhttpRequest({
method: "GET",
url: "http://download.leechvideo.com/php/getVideoUrl.php?url="+encodeURIComponent(origURL)+"&attachment=123&nocache="+Math.random(),
onload: function(stuff){
data=stuff.responseText;//Save data.
var temp=data.split("\n")[0];
data="Click this to Download this video directly: <a href=\""+temp+"\" target=_blank>>>Link<<</a>";
xSite="<a href=\"http\:\/\/download.leechvideo.com\/\">leechvideo</a>";
next();//We got the data, lets move on.
}
});
/*download.leechvideo.com can handle these.
toodou.com, seehaha.com, yingku.com, 6rooms.com, 100tv.com, mofile.com, mop.com,
uume.com, tvix.com, 56.com, vvlogger.com, cnboo.com, maitix.com, yoqoo.com,
uuzoom.com, 51bo.com, 163888.net, podko.com, quxiu.com, nipai.com.cn, www.cool8.tv,
vlog.im.tv, wangyou.com, aeeboo.com, sina.com.cn, sohu.com, cctv.com, imai8.com,
ucast.com.cn, gbaopan.com, qq.com, 91vc.com, 5show.com, 365cast.com, youtube.com,
myspace.com, google.com, aol.com, vsocial.com, metacafe.com, ifilm.com,
dailymotion.com, revver.com, angryalien.com, vidiac.com, beedeo.com, blastro.com,
blennus.com, bofunk.com, bolt.com, borednet.com, break.com, castpost.com,
www.current.tv, dailysixer.com, daum.net, devilducky.com, doubleagent.com,
dumpalink.com, eefoof.com, ejbdotcom.com, evideoshare.com, eyespot.com, filecabi.net,
freevideoblog.com, grindtv.com, grandvideos.com, gkko.com, gofish.com, gorillamask.net,
gorillamask.net, guba.com, hiphopdeal.com, hqindex.com, ifashiontv.com,
infectiousvideos.com, jibjab.com, jumpcut.com, lemonzoo.com, linkdump.com, lostbum.com,
www.lulu.tv, mobuzz.com, mojoflix.com, motionbox.com, myspacevideocode.com, myvideo.de,
myvideokaraoke.com, nearlygood.com, newgrounds.com, nopers.com, nothingtoxic.com,
openvlog.com, ourmedia.org, panjea.com, pcplanets.com, pixparty.com, plsthx.com,
porkolt.com, putfile.com, sharkle.com, smithappens.com, stickam.com, streetfire.net,
thatvideosite.com, ugoto.com, tikibartv.com, turnhere.com, veoh.com, videoclipped.com,
videocodes4u.com, videocodezone.com, vidilife.com, vidking.com, viralx.com, vmix.com,
web62.com, yikers.com, www.youare.tv, yourdailymedia.com
*/
break;
case 1:
GM_xmlhttpRequest({
method: "POST",
url: "http://clipnabber.com/gethint.php",
headers:{
"User-agent": "Mozilla/4.0 (compatible) Greasemonkey",
"Accept": "application/xml,text/xml",
"Content-type":"application/x-www-form-urlencoded"
},
data: "mode=1&url="+editedURL.replace(/&/g,"?")+"&sid="+Math.random(),
onload: function(stuff){
data=stuff.responseText;//Save data.
xSite="<a href=\"http\:\/\/www.clipnabber.com\/\">clipnabber.com</a>";
next();//We got the data, lets move on.
}
});
/*Clip Nabber can handle these.
56.com, 5min, 9you, Bofunk, Break, ClipFish.de, ClipLife.jp, ClipJunkie, ClipShack,
CollegeHumor, CrunchyRoll, Dailymotion, DoubleAgent, ExpertVillage, Flurl, FunnyJunk,
FunnyorDie, Glumbert, GoFish, Google Video, Hallpass, HowCast, IndiaFM, iShare.Rediff,
Izlesene, ku6, LiveVideo, LiveLeak, lulu.tv, Megavideo, Metacafe, MilkandCookies,
MusicMaza, Myspace, MyVideo.de, PokerTube, Putfile, SantaBanta, Sharkle, Shoutfile,
Spike, Stage6, StupidVideos, SuperNovaTube, TeacherTube, Tudou, Twango, Veoh, Videa.hu,
Vidiac, Vidivodo, Vimeo, WeWin, Yahoo Videos, Yikers, Youku, Youtube, ZippyVideos
*/
break;
case 2://Keepvid.com can not handle veoh sites.
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.
xSite="<a href=\"http\:\/\/www.keepvid.com\/\">KeepVid.com</a>";
next();//We got the data, lets move on.
}
});
/*Keepvid.com can handle these.
Angry Alien, ArtistDirect, Blastro, Blennus, Blip.tv, Bofunk, Bolt, Break.com, Castpost,
Current TV, Dailymotion, DevilDucky, FindVideos, Free Video Blog, Grinvi, grouper,
Hiphopdeal, iFilm, LuluTV, Metacafe, Midis.biz, Music.com, MusicVideoCodes.info, Myspace,
MySpace Video Code, Newgrounds, PcPlanets, Pixparty, Putfile, REVVER, sharkle, StreetFire,
That Video Site, The One Network, VideoCodes4U, VideoCodesWorld, VideoCodeZone, vidiLife,
VIDNET.com, Vimeo, vSocial, Web62.com, Youtube, ZippyVideos
*/
break;
default:alert("Error, No Web Stripper Selected By Script.");
}
}catch(x){alert("Unable to get valid responce.");}
document.body.innerHTML+="<loveTracy></loveTracy>";//Add this to keep it from going twice.
function next(){//This part won't get called till data is ready.
//data=data.replace(/[\t\v\n\r\f]/g,"").replace(/.*href\=[\"\'](.*)[\"\']\>\<b\>.*/i,"$1");
//data=data.replace(/[\t\v\n\r\f]/g,"").replace(/.*(http\:\/\/.*)\<\/div\>.*\"(http\:\/\/.*)\"\>\<strong\>.*/,"$2");
//Ok, time to build the page!
origURL+="#XnoJump";
temp="<html><head><title>"+title+"</title>";//Put in original title.
temp+="<style>*{background-color:#000 !important;color:#aaf;}</style></head><body>";//Add style.
temp+="<div><loveTracy>View</loveTracy> without script: <a href=\""+origURL+"\">"+document.title+"</a>"
+"<br/><br/>Data from "+xSite+":<br/><br/><div style=\"border:1px solid #777;margin:.25em;padding:1em .5em;\">"+data+"</div></body></html>";
document.open();
document.write(temp);//Change body only.
document.close();
}}}
init(document.title);//If not done, do it.