User:Pequezero/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:UploadMultipleFiles.js',    ] });

mw.config.set('UMFBypassLicenseCheck', true);

$(function {    window.onbeforeunload = function(e)    {		if ($(".EditorForm .rich-text-editor__content").not('.is-empty').length)		{          return '';        }	}; });

$(function {    var config = mw.config.get(['wgCanonicalSpecialPageName']);	if(config.wgCanonicalSpecialPageName == 'Recentchanges' && (!($(".mw-changeslist-legend > .mw-collapsible-toggle-default").hasClass("mw-collapsible-toggle-collapsed"))))	{		($(".mw-changeslist-legend .mw-collapsible-toggle").trigger('click'));	} });