User:Lenni009/global.js

window.globalNavButtons = [ {		text: 'No Mans Sky', url: 'https://nomanssky.fandom.com/wiki/', isMain: false, whoIsMain: false, shortName: 'NMS' },	{		text: 'No Mans Sky DE', url: 'https://nomanssky.fandom.com/de/wiki/', isMain: false, whoIsMain: false, shortName: 'NMS/DE' },	{		text: 'Community', url: 'https://community.fandom.com/wiki/', isMain: true, whoIsMain: false, shortName: 'C'	}, {		text: 'Global.CSS', url: 'https://community.fandom.com/wiki/Special:MyPage/global.css', isMain: false, whoIsMain: 'C', shortName: 'CSS' },

{		text: 'Global.JS', url: 'https://community.fandom.com/wiki/Special:MyPage/global.js', isMain: false, whoIsMain: 'C', shortName: 'JS' },

{		text: 'MediaWiki', url: 'https://www.mediawiki.org/wiki/', isMain: false, whoIsMain: false, shortName: 'MW' },

];

importArticles({	type: 'script',   	articles: [        		'u:dev:MediaWiki:MassEdit/code.js',		'u:dev:MediaWiki:UCXSearchBar.js',        'u:dev:MediaWiki:MassNullEdit/code.js',		        'u:dev:MediaWiki:NullEditButton/code.js',	        'u:dev:MediaWiki:PatrolPanel.js',             'u:dev:MediaWiki:GlobalNavButtons.js',        'u:dev:MediaWiki:MobilePreview.js',        		] });

/* Scrolling functions */ $(function{	$("html").css("scroll-behavior", "smooth");	/* Add button to scroll back to top when sticky header is visible */	$("#WikiaBar").before(" ↑ ");	$(".nms-back-to-top").click(function{ document.getElementsByClassName("community-header-wrapper")[0].scrollIntoView; }); });