Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/**
 * Speedy deletion script
 * Based on https://wikimediafoundation.org/wiki/User:MZMcBride/prod.js
 * @author Legoktm, MZMcBride
 * Public domain; 2013
 */

var prodlink = mw.util.addPortletLink( 'p-cactions',
                                       '#',
                                       'CSD',
                                       'ca-csd',
                                       'CSD G6' );

// Bind click handler
$( prodlink ).click( function () {
    var page_title = mw.config.get('wgPageName');
    prod( page_title );
});

function prod( page_title ) {
    var api = new mw.Api();

    api.get( { action: 'query',
               prop: 'info',
               intoken: 'edit',
               titles: 'beepboop', // Hello. I'm here.
               format: 'json'
             } ).done( 

    function( data ) {
        var edit_token = data.query.pages['-1'].edittoken;
        console.log(edit_token);
        api.post( { action: 'edit',
                    title: page_title,
                    text: '{'+'{db-g6|rationale=cleanup following [[bugzilla:53670]]}}',
                    summary: '[[WP:CSD#G6|CSD G6]]',
                    token: edit_token
                  } ).done(

    function( data ) {
        window.location = '/wiki/'+page_title;
                     }    );
                     }
                     );     }