User:Scottier/common.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',        'u:dev:MediaWiki:AjaxThreadDelete/code.js'    ] }); (function {   var queuePage = 'User:Scottier/DRtA_Episode',        config = mw.config.get([ 'wgArticleId', 'wgPageName' ]);   if (config.wgPageName !== queuePage) {        return;    }    $('.page-header__contribution-buttons .wds-dropdown ul').append( $('').append(           $('', { href: '#', text: 'Check queue' }).click(function { $.get(mw.util.wikiScript('api'), {                   action: 'query',                    titles: queuePage,                    prop: 'images',                    imlimit: 'max',                    format: 'json'                }, function(d) {                    mw.util.$content.html( ' ' +                       d.query.pages[config.wgArticleId].images.map(function(i) {                            return i.title;                        }).join('\n') + ' '                   );                });            })        )    ); });