JS Rank calculator
Posted: Thu Mar 03, 2016 5:56 pm
Well not to surprise everyone, but the "Rank" does not equal the row you're on, in the top list.
This annoyed me so much that I made a js script that adds the row number to the table.
It would be a lot nicer, if the mods could build this into the system
This annoyed me so much that I made a js script that adds the row number to the table.
Code: Select all
if(location.href.substr(-7) == 'top.php'){
alert("this could take up to 10 sec");
var tbody = document.getElementsByTagName('tbody')[document.getElementsByTagName('tbody').length-1].getElementsByTagName('tr');
for(var i=0;i<tbody.length;i++){
tbody[i].innerHTML += "<td>"+i+"</td>";
}
}