Utente:Daimona Eaytoy/Massblock.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m fix |
localizzazione per un paio di msg mancanti, fix sintassi |
||
Riga 108:
function getMessages() {
var defaultMsg = {
'page-title': 'Tim\'s mass-blocking tool',
'abuse-disclaimer': '<b>If you abuse this tool, it\'s <i>your</i> fault, not mine.</b>',
'blockusers': 'Users to block (one on each line, please):',
Riga 135 ⟶ 137:
// Not an optimal way to localise, but better than hardcoded inside the HTML
localMsg = {
'document-title': 'Il mass-blocker attira-trote',
'page-title': 'L\'attira-trote',
'abuse-disclaimer': '<b>Se abusi di questo strumento, è colpa tua e non mia!</b>',
'blockusers': 'Utenti da bloccare (uno per riga):',
Riga 154 ⟶ 158:
};
return localMsg
}
function massblockform() {
var bodyContent = ( mw.config.get( 'skin' ) === "cologneblue" ? "article" : "bodyContent" );
document.getElementsByTagName( "h1" )[ 0 ].textContent = "Tim's mass-blocking tool";▼
▲ document.title = "Tim's mass-blocking tool - Wikipedia, the free encyclopedia";
var reasons = mw.msg( 'Ipbreason-dropdown' ).split( '\*\*' ),
msg = getMessages();
▲ document.getElementsByTagName( "h1" )[ 0 ].textContent =
document.title = msg['document-title'];
var content =
|