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: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      }); } }); });

// Customization window.dev.betterFandom = { //Custom insert buttons on source editor toolbar thanks mike customInsert: [ {			button:'MAP', insert: '==Summary==\n\n\n==Licensing==\n', replaceAll: true },		{			button:'FILE', insert: '==Summary==\n\n\n==Licensing==\n', replaceAll: true },	] };

importScriptPage('User:Mikevoir/lib.js', 'community'); importScriptPage('User:Mikevoir/betterLinkSuggest.js', 'community'); importScriptPage('User:Mikevoir/SourceTemplateData.js', 'community');