User:Dropbearemma/global.js

// Automatic theme switcher by User:01miki10 mw.loader.using( 'mediawiki.api', function {	var d = new Date;	var api = new mw.Api;	if ( ( d.getHours >= 21 || d.getHours < 9 ) ) {		api.saveOption( 'theme', 'dark' );	} else {		api.saveOption( 'theme', 'light' );	} } );

//mobile edit tools importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MobileEdittools.js',    ]});

//mobile skin colours importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MobileWikiTheme.js',    ]});

//sticky summary importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:StickySummary.js',    ] });

//link preview importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:LinkPreview/code.js',    ] });

//copy source importArticles({   	type: 'script',    	articles: [        		'u:dev:MediaWiki:CopySectionSource.js',    		] });

//to do list importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:ToDoList.js',    ] }); window.toDoList = { page: 'User:Dropbearemma/To do', height: '35em', width: 400 };

//copy title importArticles({   	type: 'script',    	articles: [        		'u:dev:MediaWiki:CopyTitle.js',    		] });

//edit conflict alert importArticles({   	type: 'script',    	articles: [        		'u:dev:MediaWiki:EditConflictAlert/code.js',    		] });

//navbar main importArticles({   	type: 'script',    	articles: [        		'u:dev:MediaWiki:GlobalNavButtons.js',    		] });

//navbar config https://dev.fandom.com/wiki/GlobalNavButtons window.globalNavButtons = [ {		text: 'Layout Guide', url: mw.util.getUrl('Wookieepedia:Layout_Guide/In-universe'), isMain: false, whoIsMain: false, shortName: 'Layout' },	{		text: 'Manual of Style', url: mw.util.getUrl('Wookieepedia:Manual of Style'), isMain: false, whoIsMain: false, shortName: 'Style' },	{		text: 'SANs', url: '', isMain: true, whoIsMain: false, shortName: 'SANs' },	{		text: 'CAN 249', url: mw.util.getUrl('Wookieepedia:Comprehensive article nominations'), isMain: false, whoIsMain: 'SANs', shortName: 'CAN' },	{		text: 'GAN 999', url: mw.util.getUrl('Wookieepedia:Good article nominations'), isMain: false, whoIsMain: 'SANs', shortName: 'GAN' },	{		text: 'FAN', url: mw.util.getUrl('Wookieepedia:Featured article nominations'), isMain: false, whoIsMain: 'SANs', shortName: 'FAN' },

{		text: 'Sources', url: mw.util.getUrl('Wookieepedia:Template messages/Sources of articles#Appearance templates'), isMain: false, whoIsMain: false, shortName: 'Sources' },				{		text: 'Markup', url: 'https://starwars.fandom.com/wiki/Wookieepedia_Help:Editing#Wiki_markup', isMain: false, whoIsMain: false, shortName: 'Markup' },			{		text: 'Profile', url: mw.util.getUrl('User:Dropbearemma'), isMain: false, whoIsMain: false, shortName: 'Profile' },			{		text: 'Virgillia', url: mw.util.getUrl('Virgillia system/Legends'), isMain: false, whoIsMain: false, shortName: 'Virgillia' },		{		text: 'HNN', url: mw.util.getUrl('HoloNet News (original website)'), isMain: false, whoIsMain: false, shortName: 'HNN' }, ];