|
Post by Isa The Great on Aug 15, 2009 22:47:44 GMT -5
Global Footer:
<script type="text/javascript"> <!-- /* Remove avatar size limits for everyone by california */ var img=document.getElementsByTagName("img"); if(location.href.match(/=(display|viewprofile|search2|pmview|recent)/)){ for(i=0;i<img.length;i++){ if(img[i].alt=="[avatar]"){ var t=img[i].parentNode; var s=t.innerHTML.replace(/width=.?\d+?.?/i,''); t.innerHTML=s.replace(/height=.?\d+?.?/i,''); } } } // --> </script>
If you want to increase the avatar size limit (100x100) instead of removing it completely, put this code in the Global Footer, below the code above.
<script type="text/javascript"> <!-- /* avatar size limit by california */
var maxWidth=200; var maxHeight=200;
var img=document.getElementsByTagName("img"); for(i=0;i<img.length;i++){ if(img[i].width>maxWidth && img[i].alt.match(/\[avatar\]/i)){ img[i].style.height=""+(img[i].height*maxWidth/img[i].width)+"px"; img[i].style.width=""+maxWidth+"px"; } if(img[i].height>maxHeight && img[i].alt.match(/\[avatar\]/i)){ img[i].style.width=""+(img[i].width*maxHeight/img[i].height)+"px"; img[i].style.height=""+maxHeight+"px"; } } // --> </script>
|
|