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

Contenuto cancellato Contenuto aggiunto
m min
fix nome funzione, +caricamento di qualcosa che potrebbe tornare utile
Riga 110:
document.getElementsByTagName("h1")[0].textContent = "Tim's mass-blocking tool";
document.title = "Tim's mass-blocking tool - Wikipedia, the free encyclopedia";
var reasons = mw.mwgmsg('Ipbreasons-dropdown').split('\*\*');
 
var content = '<h3 id="siteSub">From Wikipedia, the free encyclopedia</h3><br /><br />' +
Riga 168:
/sysop/.test(mw.config.get("wgUserGroups"))
) {
mw.loader.using( [ 'mediawiki.util','mediawiki.api', 'mediawiki.jqueryMsg' ], $.ready )
$(massblockform);
.then( function loadMsg () {
return new mw.Api().loadMessagesIfMissing( [ 'Ipbreason-dropdown' ] );
} )
$ .then( massblockform );
}