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]; img.className = 'sprite refresh'; var link = purge.getElementsByTagName('a')[0] link.innerHTML = '' link.title = '' link.accesskey = '' link.appendChild(img); controls.appendChild(purge);

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