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

Vai alla navigazione Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
Nessun oggetto della modifica
mNessun oggetto della modifica
Riga 133: Riga 133:
param += "&token=" + document.getElementsByName("wpEditToken")[0].value.replace(/\+\\/, '%2B%5C');
param += "&token=" + document.getElementsByName("wpEditToken")[0].value.replace(/\+\\/, '%2B%5C');
temp = document.getElementById("wpSummary").value;
temp = document.getElementById("wpSummary").value;
if (temp) param += "&summary=" + encodeURI(temp);
if (temp) param += "&summary=" + encodeURI(temp).replace(/&/g, "%26").replace(/\+/g, "%2B");
temp = document.getElementById("wpCaptchaId");
temp = document.getElementById("wpCaptchaId");
if (temp) param += "&captchaid=" + temp.value + "&captchaword=" + encodeURI(document.getElementById("wpCaptchaWord").value);
if (temp) param += "&captchaid=" + temp.value + "&captchaword=" + encodeURI(document.getElementById("wpCaptchaWord").value);