|
Post by MonsterControl on Feb 15, 2012 1:50:45 GMT -4
<script> /*Resize YouTube videos (with aspect ratio keeping) Created By Wrighty Do Not: Rip, Repost or Claim*/
var y = { w: 500, i: function(){ if(location.href.match(/action=(display|(calendar|pm)?view)/) || document.title.match(/\s-\s(Search|Preview)/i)){ this.t(); } }, t: function(){ for(a = 0, e = document.getElementsByTagName('embed'); a < e.length; a++){ if(e[a].src.match(/http:\/\/www.youtube.com\/v\//i) && e[a].height == '287' && e[a].width == '350'){ var h = (this.w/e[a].width) * e[a].height; with(e[a]){ height = h; width = this.w; parentNode.width = this.w; parentNode.height = h; parentNode.parentNode.width = this.w; } } } } }; y.i(); </script>
Read more: http://smangii.proboards.com/index.cgi?board=pbsupport&action=display&thread=12008#ixzz1mQVCXg00
|
|