0.99.8New option: Hide ratingsYouTube now adds warnings before "mature" content videos. You can skip them now with my script. if(opts.hideRate) {
ads.push("ratings");
ads.push("ratings_module");
} Added super HQ FLV format to HD pagesTurns out you can get HD videos in a really crystal FLV format (#35) (which I also use alternatively if the user of my script doesn't want HD videos). Optimize use of RegExpI deleted a couple of local variables and used RegExp.$\d instead. Ex: if(a.responseText.match(/\/\/ @version (\S+)/) == null) return;
if (RegExp.$1 != thisVer) {
...Added Shadow effects just because#opts label:hover {
text-shadow: 1px 2px 1px yellow !important;
}
#opts label.on {
text-shadow : 1px 2px 1px red;
color : white;
}Took advantage of "start" argument to optimize codeif(location.hash.match(/t=(?:(\d+)m)?(?:(\d+)s)?/)) {
var start=0;
if(RegExp.$1)
start += Number(RegExp.$1) * 60;
if(RegExp.$2)
start += Number(RegExp.$2);
swfArgs.start = --start;
}Implemented a working non-HD but HQ solutionif(unsafeWindow.isHDAvailable && !opts.useHD)
swfArgs.fmt_map = "35/640000" + swfArgs.fmt_map.substring(10); OtherGeneral code optimizations, reduce calls, etc.
|