Utente:Daimona Eaytoy/Massblock.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
alert
m altro msg
Riga 6:
function doMassBlock() {
document.getElementById( "wpMassBlockSubmit" ).disabled = true;
var users = document.getElementById( "wpMassBlockUsers" ).value.split( "\n" );,
msg = getMessages();
if ( users.length === 0 ) {
return;
Riga 64 ⟶ 65:
}
 
var alertMsg = getMessages()['result-alert'];
// Hackeroni ripperoni
alertMsgalert( = alertMsgmsg['result-alert'].replace( '$1', blocked ).replace( '$2', talkpageedited ).replace( '$3', userpageedited ) );
alert( alertMsg );
 
document.getElementById( "wpMassBlockSubmit" ).value = "(" + blocked + "/" + talkpageedited + "/" + userpageedited + ")";
if ( failed.length > 0 ) {
var linkedList = "";
for ( x = 0; x < failed.length; x++ ) {
linkedList += "<li><a href=\"" + wgScript + "?title=" + encodeURIComponent( failed[ x ] ) + "\">" + failed[ x ] + "</a>: " + error[ x ] + "</li>"; //Links the titles in the "failed" array
linkedList += "<li><a href=\"" + mw.config.get('wgScript') + "?title=" + encodeURIComponent( failed[ x ] ) + "\">" + failed[ x ] + "</a>: " + error[ x ] + "</li>";
}
document.getElementById( "wpMassBlockFailedContainer" ).innerHTML += '<br /><b>Failed' + msg['failed-actions:'] + '</b><ul>' + linkedList + '</ul>';
}
}
Riga 132 ⟶ 131:
'override': 'Override existing blocks:',
'submit-text': 'Block',
'result-alert': 'Blocked $1 users, edited $2 talk pages and $3 user pages.',
'failed-actions': 'Failed actions:'
};
 
Riga 164:
'override': 'Sovrascrivi eventuali blocchi:',
'submit-text': 'Scatena l\'inferno!',
'result-alert': 'Bloccati $1 utenti, modificate $2 talk e $3 pagine utente.',
'failed-actions': 'Azioni non riuscite:'
};