User:AzaToth/twinklebatchdelete.js: Difference between revisions

Content deleted Content added
hopefullt bug fix
bugfix
Line 188:
'bllimit': userIsInGroup( 'sysop' ) ? 5000 : 500 // 500 is max for normal users, 5000 for bots and sysops
};
var wikipedia_api = new Wikipedia.api( 'Grabbing backlinks', query, twinklebatchdelete.callbacks.unlinkBacklinksMain, function( self ) { ;
--twinklebatchdelete.currentUnlinkCounter;
var link = document.createElement( 'a' );
link.setAttribute( 'href', wgArticlePath.replace( '$1', self.query['title'] ) );
link.setAttribute( 'title', self.query['title'] );
link.appendChild( document.createTextNode( self.query['title'] ) );
self.statelem.info( [ 'completed (' , link , ')' ] );
 
} );
wikipedia_api.params = self.params;
wikipedia_api.post();
Line 318 ⟶ 310:
 
if( snapshot.snapshotLength == 0 ) {
--twinklebatchdelete.currentUnlinkCounter;
return;
}
Line 333 ⟶ 326:
if( self.params.current >= total ) {
obj.info( now + ' (completed)' );
--twinklebatchdelete.currentUnlinkCounter;
Wikipedia.removeCheckpoint();
}
Line 344 ⟶ 338:
if( snapshot.snapshotLength == 0 ) {
statusIndicator.info( '100% (completed)' );
--twinklebatchdelete.currentUnlinkCounter;
Wikipedia.removeCheckpoint();
return;