Utente:Sanjilops/monobook.js: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
mNessun oggetto della modifica
Nessun oggetto della modifica
Riga 69: Riga 69:
}
}


disablehideEdit=1;
var disabledisableEdit = 0;
function disableEdit () {
if(disabledisableEdit) return;
if (!document.getElementById('ca-edit') || !document.getElementById('disable-edit')) return;
editLink = document.getElementById('ca-edit').firstChild;
editLink.removeAttribute('href', 0);
editLink.style.color = 'gray';
editLink.innerHTML = 'X';
}
addOnloadHook(disableEdit);