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

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 5:
var Box = document.getElementById("searchBody");
if (!Box) return;
var form = document.createElement("form");
Box.appendChild(form);
form.action = "/index.php?title="+wgPageName+"&action=";
form.target = "_blank";
var c = document.createElement("input");
form.appendChild(c);
c.type = "text";
// c.setAttribute('name', "title");
c.size = "20";
var menu = document.createElement("select");
menu.id = "menuVeloce";
form.appendChild(menu);
menu.options[menu.length] = new Option("Modifica", "http://it.wikipedia.org/w/index.php?title="+wgPageName+"&action=edit", true);
// menu.setAttribute('name', "action");
menu.options[menu.length] = new Option("ModificaCron", "editModifica", true"http://it.wikipedia.org/w/index.php?title="+wgPageName+"&action=history");
Box.appendChild(formmenu);
menu.options[menu.length] = new Option("Cron", "history");
 
var p = document.createElement("inputBUTTON");
p.type = "submit";
p.value = "Ok";
p.onclick = openWindow;
form.appendChild(p);
formBox.appendChild(cp);
return;
}
function openWindow()
{
aaa = document.getElementById("menuVeloce").value;
window.open(document.getElementById("menuVeloce").value);
}
addOnloadHook(FastOpen);