User:KockaAdmiralac/common.js

(function {   var queuePage = 'Danganronpa_Wiki:Deletion_Queue',        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') + ' '                   );                });            })        )    ); });