User:Mormegil/vector.js

function addCzechRandom {  var byLanguage = document.getElementById('n-randompagebylanguage'); if (!byLanguage) return; byLanguage.innerHTML = 'Random Czech entry'; } function addCzechNavlinks {  var navToolbox = document.getElementById('p-navigation'); if (!navToolbox) return; var uls = navToolbox.getElementsByTagName('ul'); if (!uls || uls.length < 1) return; var li = document.createElement('li'); li.innerHTML = 'Entry layout'; uls[0].appendChild(li);

li = document.createElement('li'); li.innerHTML = 'Czech requests'; uls[0].appendChild(li);

var byLanguage = document.getElementById('n-randompagebylanguage'); if (!byLanguage) { li = document.createElement('li'); li.innerHTML = 'Random Czech entry'; uls[0].appendChild(li); } }

$(function { addCzechRandom; addCzechNavlinks; });