User:Choocolatiah/common.js

massRenameDelay = 1000; // Optional massRenameSummary = 'mass rename'; // Optional

if (mw.config.get("wgNamespaceNumber") === 14) { window.autoPurgePages = [mw.config.get("wgPageName")]; }

importArticles({   type: 'script',    articles: [		'u:dev:MediaWiki:MassEdit/code.js',    ] }); // revamped from u:dev:ImageCategory/code.js (function {	var page = mw.config.get('wgCanonicalSpecialPageName');	if ( window.ImageCategoryLoaded || !(/Upload|MultipleUpload/g.test(page)) ) {       return;	}	window.ImageCategoryLoaded = true;	var queryString = window.location.search;	var urlParams = new URLSearchParams(queryString);

if (urlParams.get('wpForReUpload') != 1) { $('#wpUploadDescription').val(window.ImageCategory || '{'+'{file \n|related = \n|chars in img = \n}}'); } }); /*for load a filter element*/ $(function{ var $btns = $('.btn').click(function{		if (this.id == 'all') {			$('#parent > div').fadeIn(450);		} else {			var $el = $('.' + this.id).fadeIn(450);			$('#parent > div').not($el).hide;		}		$btns.removeClass('active');		$(this).addClass('active');	}); });