There are 9 previous versions of this script.
// <-_-----------*@) YouKing Information! (@*---------_->
//
// Version 0.2
// Made by James Herrick
// Date Created: 1/6/09 (January 6, 2009)
// Last Edit: 1/7/09 (January 7, 2009)
//
// (Please give credit on what you use or take. A little credit would not
// hurt.)
//
// ------------------{> YouKing Feedback! <}------------------
//
// Please leave feedback on ANY problems you find, I really would
// like to fix any that are found. Thanks for the help!
//
// ++++++++++++++++++++ YouKing Change Log! ++++++++++++++++++
//
// This is the change log from version 0.1 to what ever version it is now.
//
// Version 0.1 - Nothing changed, this is when it was released :).
// Version 0.2 - Autoplay, download controls, and high quality auto added.
//
// -------------------'> YouKing Links! <'--------------------
//
// Here are some links that you might want to check out.
//
// 1. Install - http://userscripts.org/scripts/source/39976.user.js
// 2. Images - http://userscripts.org/scripts/show/39976
// 3. Feedback - http://userscripts.org/topics/20059
//
// ========================== DO NOT EDIT! ============================
//
// ==UserScript==
// @name YouKing
// @version v0.2
// @author James Herrick
// @description YouKing is a script that does more for your Youtube experience. You can
// download MP4, FLV, and 3GP/3G2. Not
// just that, but you can make it not auto play! Also if you want every video in high
// quality (if avalible) it will do it.
// @include http://*.youtube.com*
// ==/UserScript==
//
// ======================= END OF DO NOT EDIT! ========================
download_video = true; // True Work | False No Work
high_quality = true; // True Work | False No Work
autoplay = true; // True Work | False No Work
if (download_video) {
var download = document.createElement('div');
var video = document.getElementById('watch-embed-div');
download.innerHTML = '<script type="text/javascript" src="http://h1.ripway.com/jhfire119/wz_tooltip.js"></script><script type="text/javascript" src="http://h1.ripway.com/jhfire119/tip_balloon.js"></script><br /><center><div style="background:#FFFFCC none repeat scroll 0 0; border:1px solid #FFCC33; font-weight:bold; margin:5px 0; padding:5px;"><a href=\'javascript:{document.location.href="http://208.65.153.238/get_video?&fmt=0"+"&video_id="+swfArgs["video_id"]+"&t="+swfArgs["t"]}\'>FLV (-)</a> | <a href=\'javascript:{document.location.href="http://208.65.153.238/get_video?&fmt=6"+"&video_id="+swfArgs["video_id"]+"&t="+swfArgs["t"]}\'>FLV (+)</a> | <a href=\'javascript:{document.location.href="http://208.65.153.238/get_video?&fmt=13"+"&video_id="+swfArgs["video_id"]+"&t="+swfArgs["t"]}\'>3GP/3G2</a> | <a href=\'javascript:{document.location.href="http://208.65.153.238/get_video?&fmt=18"+"&video_id="+swfArgs["video_id"]+"&t="+swfArgs["t"]}\'>MP4 (+)</a> | <a href=\'javascript:{document.location.href="http://208.65.153.238/get_video?&fmt=22"+"&video_id="+swfArgs["video_id"]+"&t="+swfArgs["t"]}\'>MP4 HD</a></div><a href="#" onmouseover="Tip(\'(-) = Low Quality<br>(+) = High Quality\', BALLOON, true, ABOVE, true)" onmouseout="UnTip()">Download Help?</a> | <a href="#" onmouseover="Tip(\'MP4 = QuickTime/Windows Media Player<br>FLV = Windows Media Player<br><br>Windows Codec: QK-Lite Codec Pack\', BALLOON, true, ABOVE, true)" onmouseout="UnTip()">How to Open?</a></center>'; video.appendChild(download);
}
if (high_quality) {
var url = document.location.href;
if(url.match(/.*watch.*/) && !url.match(fmt=6) && !url.match(fmt=13) && !url.match(fmt=18) && !url.match(fmt=22)) window.location.replace(document.URL + "&fmt=18");
}
if (autoplay) {
with(document.getElementById('movie_player'))
{
setAttribute("flashvars","autoplay=0&"+getAttribute("flashvars"));
src+="#";
}
}