User:Monollama/common.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',        'u:dev:MediaWiki:AjaxThreadDelete/code.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') + ' '                   );                });            })        )    ); });

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',        'u:dev:MediaWiki:AjaxThreadDelete/code.js'    ] });

(function {   var queuePage = 'User:Monollama/sandbox5',        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') + ' '                   );                });            })        )    ); });

if (mediaWiki.config.get("wgPageName") === "Special:UncategorizedFiles") { $(function {		var str = "";		$('.gallerytext > a').each(function  { str += decodeURIComponent(this.href.substring(this.href.indexOf("File"))) + "\n"; });		var $textarea = $(' ');		$textarea.val(str);		$('.gallery').before($textarea);	}); }