My favorites | Sign in
Logo
             
Search
for
Updated Jul 03, 2009 by aavindraa
Labels: Release
0998  

0.99.8

New option: Hide ratings

YouTube 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 pages

Turns 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 RegExp

I 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 code

if(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 solution

if(unsafeWindow.isHDAvailable && !opts.useHD)
 swfArgs.fmt_map = "35/640000" + swfArgs.fmt_map.substring(10); 

Other

General code optimizations, reduce calls, etc.


Sign in to add a comment
Hosted by Google Code