User:I JethroBT/vector.js

importScript('User:Mr.Z-man/closeAFD.js');

//-- New delsort (for vector.js) importScript('User:Gene93k/delsort.js');

/***** Begin deletion-sorting code *************************************** Substituted from Template:Deltab From code by raylu, updates made by User:Dinoguy1000 This script adds a " Deletion" tab to the top of XfD pages when in edit mode. function addDelsortMessage { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.rtrim; document.editform.wpTextbox1.value += '\{\{subst:deletion sorting|| -- \~\~\~\~\}\}\n'; if( document.editform.wpSummary.value.match(/[^\*\/\s][^\/\s]?\s*$/) ){ document.editform.wpSummary.value += '; '; } document.editform.wpSummary.value += 'tagged as a -related deletion (script-assisted)'; document.editform.wpMinoredit.checked = true; document.editform.submit; } $(function {   if( mw.config.get('wgNamespaceNumber') == 4 && mw.config.get('wgTitle').match( / for d(elet|iscuss)ion/ ) && ( mw.config.get('wgAction') == "edit" || mw.config.get('wgAction') == "submit" ) ) {        mw.util.addPortletLink( 'p-cactions', 'javascript:addDelsortMessage', ' deletion', 'ca-deletion', ' Deletion', '' );    } }); /***** End deletion-sorting code *****************************************/