User:Nanaki/global.js

function add_purge { 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'); purge.getElementsByTagName('img')[0].className = 'sprite refresh' var link = purge.getElementsByTagName('a')[0] link.title = '' link.accesskey = '' link.innerHTML = 'Przeładuj stronę' controls.appendChild(purge); } addOnloadHook(add_purge);