|
Post by Ron White on Mar 31, 2006 0:51:29 GMT -5
Goes in the Top of the Global Footer
This code will multiply every users karma by a number you specify. Edit where specified.
<script> //Karma Multiplier v1.0
//Copyright 12-26-2005 ~Wonder //May be reposted anywhere as long as this header remains in tact //Put at top of Global Footer
//Edit the karma multiplier karmaMultiplier=2;
if(location.href.match(/action=(display|goto|viewprofile|pmview|recent)/)) { var td=document.getElementsByTagName("td"); for(i=1;i<td.length;i++) { if((td[i-1].width=="25%" && td[i-1].innerHTML.match(/Karma:/) && td[i].firstChild.innerHTML.match(/^(-?([\d\,]+))/)) || (td[i].width=="20%" && td[i].className.match(/windowbg/) && td[i].innerHTML.match(/(Karma: -?([\d\,]+))/)!=-1)) { t=RegExp.$1; k=(karmaMultiplier*parseInt(t.replace(/\D/g,""),10)).toString(); var r = /(\d+)(\d{3})/; while (r.test(k)) { k = k.replace(r, '$1' + ',' + '$2'); } if(td[i-1].width=="25%") td[i].firstChild.innerHTML=td[i].firstChild.innerHTML.replace(t.replace(/[^\d,]/g,""),k); else td[i].innerHTML=td[i].innerHTML.replace(t.replace(/[^\d,]/g,""),k); } } } </script>
-+-Win32##Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (VAUSSU03)##1280 × 768##1-+-
|
|