MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

function stripeTables { var tables = document.getElementsByTagName("table"); for (var i = 0; i < tables.length; i += 1) { if (tables[i].className == "ghyllidx") { var trs = tables[i].getElementsByTagName("tr"); for (var j = 0; j < trs.length; j += 2) { if (typeof trs[j].bgColor == 'undefined' || trs[j].bgColor == '') { trs[j].className += " even"; }     }    }  } }

addOnloadHook( stripeTables );

/* */