User:Nanaki/global.js

function modify_controls { var controls = document.getElementById('page_controls'); var edit = document.getElementById('control_edit'); var purge = document.createElement('li'); purge.innerHTML = edit.innerHTML.replace('action=edit','action=purge'); var img = purge.getElementsByTagName('img')[0]; var img2 = img.cloneNode(false); img.className = ''; img2.className = 'sprite refresh'; var link = purge.getElementsByTagName('a')[0] link.innerHTML = '' link.title = '' link.accesskey = '' link.appendChild(img2); purge.innerHTML += ' ' controls.appendChild(purge);

document.getElementById('ca-history').innerHTML = 'Historia'; document.getElementById('ca-edit').innerHTML = 'Edytuj'; } addOnloadHook(modify_controls);