MediaWiki:Gadget-Massblock.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
+Nuovo accessorio. Crono mantenuta in Utente:Daimona Eaytoy/Massblock.js (e non spostata perché abbastanza lunga) |
m lint min |
||
Riga 1:
/* jshint maxerr: 10000, esversion:6 */
/* global mediaWiki, jQuery, OO, window, document */
/**
* Tool for mass-blocking a list of IPs/users.
Riga 88:
'result-alert': 'Blocked $1 users. Edited $2 talk pages and $3 user pages. Protected $4 talk pages and $5 user pages.',
'failed-actions': 'Failed actions with errors:',
'failure-help': 'help'
};
Riga 206:
if ( wpMassBlockMessage !== "" ) {
doEditPage( talkPage, wpMassBlockMessage, wpMassBlockSummaryTalk, !isInfty )
.done( function(
talkpageedited++;
if ( wpMassBlockProtectTalk ) {
doProtectPage( talkPage, 'edit=sysop|move=sysop' )
.done( function(
talkpageprotected++;
} )
Riga 236:
prType = exists ? 'edit=sysop|move=sysop' : 'create=sysop';
doProtectPage( talkPage, prType )
.done( function(
talkpageprotected++;
} )
Riga 256:
if ( wpMassBlockTag !== "" ) {
doEditPage( userPage, wpMassBlockTag, wpMassBlockSummaryUser )
.done( function(
userpageedited++;
if ( wpMassBlockProtectUser ) {
doProtectPage( userPage, 'edit=sysop|move=sysop' )
.done( function(
userpageprotected++;
} )
Riga 286:
prType = exists ? 'edit=sysop|move=sysop' : 'create=sysop';
doProtectPage( userPage, prType )
.done( function(
userpageprotected++;
} )
Riga 407:
protections: protections,
reason: $( "#wpMassBlockProtectReason input" ).val().trim(),
watchlist: 'nochange'
} );
}
Line 426 ⟶ 425:
*/
function massblockform() {
var reasons = mw.msg( 'Ipbreason-dropdown' ).split( '
// OOUI elements
talkTextField, userTextField, talkProtectCb, talkSummaryField,
Line 434 ⟶ 433:
blockAllowsTalkEdit = window.___location.href.indexOf( 'it.wikipedia' ) === -1;
document.title = msg( 'document-title' );
Line 718 ⟶ 717:
if ( mw.config.get( "wgNamespaceNumber" ) === -1 &&
( mw.config.get( "wgTitle" ) == "Massblock" || mw.config.get( "wgTitle" ) === "MassBlock" ) &&
( /sysop/ ).test( mw.config.get( "wgUserGroups" ) )
) {
mw.loader.using( [ 'mediawiki.util', 'mediawiki.api', 'mediawiki.jqueryMsg', 'oojs-ui-core', 'oojs-ui-widgets', 'oojs-ui-windows' ], $.ready )
|