MediaWiki:Common.js

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

if (queryString('showmep')) addOnloadHook(show_mep) else addOnloadHook(show_all)

function show_mep { var mep = decodeURIComponent(queryString('showmep')); if (mep) { var tr = document.getElementById(mep); if (tr) tr.style.display = ''; else show_all }   else show_all }

function show_all { var rows = document.getElementsByTagName('tr'); for(var tr=1; tr<rows.length; tr++) { rows[tr].style.display = ''; } }

function queryString(p) { var re = RegExp('[&?]' + p + '=([^&#]*)'); var matches; if (matches = re.exec(document.location)) { try { return decodeURI(matches[1]); } catch (e) { } }  return null; }