User:Splarka/monobook.js

function numerateCreateList { if(!document.getElementById('createwiki')) return var sel = document.getElementById('createwiki').req_id; var ln = sel.length; for(var i=0; i < ln; i++) { sel.options[i].innerHTML = sel.options[i].value + ' ' + sel.options[i].innerHTML }

if((document.getElementById('createwiki').load_id)&&(sel.selectedIndex == 0)) { if(document.getElementById('createwiki').wpCreateWikiName.value!='') { sel.value = document.getElementById('createwiki').load_id.value; } } } addOnloadHook(numerateCreateList);