|
Post by MonsterControl on Jan 27, 2012 19:49:30 GMT -4
<script> /*Resize YouTube videos (with aspect ratio keeping) Created By Wrighty Do Not: Rip, Repost or Claim*/
var y = { w: 200, 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>
|
|