User:Lenni009/global.js

window.globalNavButtons = [ {		text: 'No Mans Sky', url: 'https://nomanssky.fandom.com/wiki/', isMain: true, whoIsMain: false, shortName: 'NMS' },	{		text: 'GHub', url: 'https://nomanssky.fandom.com/wiki/Galactic_Hub_Project', isMain: false, whoIsMain: 'NMS', shortName: 'GHub' },	{		text: 'EisHub', url: 'https://nomanssky.fandom.com/wiki/Galactic_Hub_Eissentam', isMain: false, whoIsMain: 'NMS', shortName: 'EisHub' },	{		text: 'No Mans Sky DE', url: 'https://nomanssky.fandom.com/de/wiki/', isMain: true, whoIsMain: false, shortName: 'NMS_DE' },	{		text: 'Letzte Änderungen', url: 'https://nomanssky.fandom.com/de/wiki/Spezial:Letzte_Änderungen', isMain: false, whoIsMain: 'NMS_DE', shortName: 'NMS_DE_RC' },	{		text: 'Patrol Panel', url: 'https://nomanssky.fandom.com/de/wiki/Spezial:PatrolPanel', isMain: false, whoIsMain: 'NMS_DE', shortName: 'NMS_DE_Patrol' },	{		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: true, whoIsMain: false, shortName: 'MW' },	{		text: 'Magic Words', url: 'https://www.mediawiki.org/wiki/Help:Magic_words', isMain: false, whoIsMain: 'MW', shortName: 'MW_MagicWords' },	{		text: 'ParserFunctions', url: 'https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions', isMain: false, whoIsMain: 'MW', shortName: 'MW_ParserFunctions' },	{		text: 'Templates', url: 'https://www.mediawiki.org/wiki/Help:Templates', isMain: false, whoIsMain: 'MW', shortName: 'MW_Templates' }, ];

// Create the "dev" namespace if it doesn't exist already:

window.dev = window.dev || {};

// Create the sub-namespace for this addon and set some options:

window.dev.editSummaries = { select: 'https://community.fandom.com/wiki/User:Lenni009/Custom-StandardEditSummaries' };

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',              'u:dev:MediaWiki:PurgeButton.js',        'u:dev:MediaWiki:EditConflictAlert/code.js',       //        'u:dev:MediaWiki:CreatePageForm.js',        'u:dev:MediaWiki:AjaxUndo/code.js',          'u:dev:MediaWiki:Standard Edit Summary/code.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; }); });