User:Kuhlau/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:PageCreator/code2.js',    	'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:CodeQuickLinks/code.js',    	'u:dev:MediaWiki:CategoryQuickRemove.js',    	'u:dev:MediaWiki:MinimalTemplateClassification.js',        'u:dev:MediaWiki:TemplatesUsedModule.js',        'u:dev:MediaWiki:MobileEdittools.js',        'u:dev:MediaWiki:UCXSearchBar.js',        'u:dev:MediaWiki:DataTables.js',        'u:dev:MediaWiki:BlockSummary.js',        'u:dev:MediaWiki:OriginalImages.js',        'u:dev:MediaWiki:InterwikisOnSpecialPages.js',        'u:dev:MediaWiki:ListFiles/code.js',        'u:dev:MediaWiki:MassNullEdit/code.js',    ] });

/* commas in edit count */ $(function { var selector = '#userProfileApp .user-identity-stats strong';  function prettify(strongs) {    strongs.forEach(function(strong, i) { var text = strong.textContent; if (text.length > 3 && text.indexOf(',') === -1) { strong.textContent = parseInt(text).toLocaleString('en', {useGrouping:true}); }   })  }  mw.hook('wikipage.content').add(function($content) { var strongs = document.querySelectorAll(selector); if (strongs.length) { prettify(strongs); } else { // alternatively, run a setInterval or setTimeout. new MutationObserver(function(mutations, observer) {       var strongs = document.querySelectorAll(selector);        if (strongs.length) {          observer.disconnect;          prettify(strongs);        }      }).observe(document.querySelector('.page__main'), {        childList: true, // observe direct children        subtree: true, // and lower descendants too      }); } }); });

importScriptPage('User:Mikevoir/lib.js', 'community'); // Load all custom scripts when library is in place var libcheck = setInterval(function{	if (window._LIB) {		clearInterval(libcheck);		importScriptPage('User:Mikevoir/betterLinkSuggest.js', 'community');		importScriptPage('User:Mikevoir/betterCodeMirror.js', 'community');

} },100);