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 8: | Riga 8: | ||
function Main() { |
function Main() { |
||
FastOpen(); |
FastOpen(); |
||
editcurrentid(); |
|||
if (document.getElementById('alert-load')) alert("alert onload presenti"); |
if (document.getElementById('alert-load')) alert("alert onload presenti"); |
||
if (document.getElementById('alert-unload')) alert("alert onunload presenti"); |
if (document.getElementById('alert-unload')) alert("alert onunload presenti"); |
||
Riga 90: | Riga 90: | ||
p.value = "vai"; |
p.value = "vai"; |
||
form.appendChild(p); |
form.appendChild(p); |
||
} |
|||
function editcurrent () { |
|||
var b = document.getElementById('ca-edit'); |
|||
if (!b) return; |
|||
if (getElementsByClass(document, 'diff', 'table').length == 0) return; |
|||
var l = b.firstChild; |
|||
l.href = l.href.replace(/&oldid=\d+/, ''); |
|||
appendText(l, '*'); |
|||
return; |
|||
} |
} |
||