User:Random832/standard.js

function Debug(x,context) { if(x.name != undefined && x.message != undefined) x = x.name+": "+x.message; if(context) x = context + " — " + x   if(Debug.done == undefined || !Debug.done) { Debug.div = document.createElement("PRE"); Debug.div.id = "debugcons"; document.body.appendChild(Debug.div); Debug.done = true; }   Debug.div.appendChild(document.createTextNode(x+'\n')); } addOnloadHook(function { try {   var t = document.getElementsByTagName("TD");   for(var i=0;i<t.length;i++) {      if(!/\btop\b/.test(t[i].className)) continue;      if(!/In other languages:/.test(t[i].textContent)) continue;      var t2 = t[i].getElementsByTagName("A");      for(var j=0;j<t.length;j++) {         t2[j].textContent = t2[j].title.split(':')[0];      }   }  } catch(x) { alert(x.message) } })