User:AzaToth/twinklebatchdelete.js: Difference between revisions

Content deleted Content added
removed summary parameter specific to this script
m Undid revision 266758919 by Ioeth (talk)
Line 10:
if( typeof( TwinkleConfig.summaryAd ) == 'undefined' ) {
TwinkleConfig.summaryAd = " using [[WP:TW|TW]]";
}
 
/**
TwinkleConfig.deletionSummaryAd (string)
If ad should be added or not to deletion summary, default [[WP:TWINKLE|TWINKLE]]
*/
if( typeof( TwinkleConfig.deletionSummaryAd ) == 'undefined' ) {
TwinkleConfig.deletionSummaryAd = " using [[WP:TW|TW]]";
}
 
Line 306 ⟶ 314:
form = this.responseXML.getElementsByTagName( 'form' )[0];
var postData = {
'wpReason': "Speedy deleted per ([[WP:CSD#R1|CSD R1]]), Redirect to deleted page \"" + self.params.page + "\"." + TwinkleConfig.summaryAddeletionSummaryAd,
'wpEditToken': form.wpEditToken.value
}
Line 313 ⟶ 321:
var postData = {
'wpWatch': form.wpWatch.checked ? '' : undefined,
'wpReason': "Speedy deleted per ([[WP:CSD#R1|CSD R1]]), Redirect to deleted page \"" + self.params.page + "\"." + TwinkleConfig.summaryAddeletionSummaryAd,
'wpEditToken': form.wpEditToken.value
}
Line 323 ⟶ 331:
var postData = {
'wpWatch': form.wpWatch.checked ? '' : undefined,
'wpReason': "Deleted because \"" + self.params.reason + "\"." + TwinkleConfig.summaryAddeletionSummaryAd,
'wpEditToken': form.wpEditToken.value
}
Line 421 ⟶ 429:
'wpEditToken': form.wpEditToken.value,
'wpSection': '',
'wpSummary': 'Removing backlinks to page ' + self.params.page + " that has been deleted because \"" + self.params.reason + "\")" + "; " + TwinkleConfig.summaryAddeletionSummaryAd,
'wpTextbox1': text
};