2,413
edits
(Created page with "// * @name Quickdel.js // * @dependencies jquery.dialog, mediawiki // * @source // * @revision 2.1.0 // * @revision date Jan 19, 2021 // * @author: Celeste (https://celeste...") |
No edit summary |
||
Line 13:
var boxId = '#qdel-box',
comment = '',
pageName = mw.config.get( 'wgPageName' ).replace( /_/g, ' ' ),
hasHistory = !!$( '#ca-history' ).length,
Line 65:
function run( e, title ) {
e.preventDefault();
$( '#qdel-box' ).dialog( 'close' );
Line 120:
var $xml = $( xml ),
sectionText,
line = ' ' + ( isRedirect ? '{{redirect|' +
+ ( comment ? ' — ' + comment : '' );
output( 'info', 'Checking', 'QDEL for selected page...' );
if ( isListed( $xml,
output( 'fail', 'Page', 'already on QDEL!' );
addBackButtons();
Line 135:
'section': 1,
'token': $xml.find( 'page' ).attr( 'edittoken' ),
'summary': '+[[' +
'text': sectionText,
'watchlist': 'nochange',
|