User:SlyCooperFan1/global.js

// Auto Update Recent Changes // See http://dev.wikia.com/wiki/AjaxRC AjaxRCRefreshText = 'Auto-Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"];

importArticles({	type: 'script',	articles: [		'u:dev:AjaxRC/code.js',		'u:dev:NoImageLightbox/code.js',		'u:dev:MediaWiki:MassCategorization/code.js',		'u:dev:MediaWiki:MinimalTestModeAlert.js',		'u:dev:MediaWiki:UserAccountAge/code2.js',		'u:dev:MediaWiki:TVMH.js',		'u:dev:MediaWiki:Nuke/code.js',		'u:dev:MediaWiki:ArchivePoll.js',		'u:dev:MediaWiki:NullEditButton/code.js'	] });

/* Add line numbers to modules */ // Source: https://river.me/blog/line-numbers-modules/ $(function {	$('.ns-828 pre').each(function { // Module:Teamnames on Leaguepedia is like 10,000 lines long. let's not do this there if (mw.config.get('wgTitle') == 'Teamnames') return; var lines = $(this).html.split('\n'); $(this).html(			lines				.map(function(str) { return "" + str + " " })				.join('\n')		); }); });