inherit
Handsome Devil
20992
0
Oct 26, 2012 20:34:21 GMT -8
ⓦ৹₪deⓡ
No animals were harmed in the feeding of this human.
925
March 2004
chickenturkeybacon
|
Post by ⓦ৹₪deⓡ on Dec 26, 2005 0:11:30 GMT -8
This code will multiply every users karma by a number you specify. Edit where indicated. Do NOT PM me for support or requests, that's what the coding boards are for. Enjoy. ~Wonder
Top of Global Footer<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>
|
|