User:Akodone/global.js

//hide notifications informing about using FandomDesktop $('.wds-banner-notification__container').each(	function {		if ($(this).find('.wds-banner-notification__text').html==="\n\t\tTeraz używasz FandomDesktop, nowego wyglądu Fandomu.\n\t") {			$(this).css('display','none');		} });

/* All scripts under this comment are from Dev and/or written by Rail */ /* Opis przy usuwaniu */ if (mw.config.get('wgAction') === 'delete' && !!document.getElementById('wpReason')) { document.getElementById('wpReason').value = ''; }

// Quick theme changer mw.loader.using( ['mediawiki.api', 'mediawiki.util'], function {	if ( mw.config.get( 'skin' ) !== 'fandomdesktop' ) {		return;	}	function themeSwitch( theme ) {		new mw.Api.saveOption( 'theme', theme ).done( function( d ) { if ( d.options === 'success' ) { location.reload; }		} );	}	$( '.fandom-community-header__community-name-wrapper' ).append( $( ' ', { class: 'quick-theme-switcher' } ).append(			$( '', { text: '(light)', href: '#', click: function { themeSwitch( 'light' ); }			} ), ' ',			$( '', { text: '(dark)', href: '#', click: function { themeSwitch( 'dark' ); }			} ), ' ',			$( '', { text: '(wiki)', href: '#', click: function { themeSwitch( 'wiki' ); }			} )		)	); } );

/* Skrypty z Dev */ window.fdButtons = [ {       summary: 'Nieużywany plik', label: 'NU' },   {        summary: 'Brak licencji', label: 'BL' },   {        summary: 'Niedziałający film', label: 'F'   }, {       summary: 'Niepotrzebna strona', label: 'NP' },   {        summary: 'Niepotrzebny szablon', label: 'NS' },   {        summary: 'Zbędne przekierowanie', label: 'ZP' },   {        summary: 'Wandalizm', label: 'W'   }, {       summary: 'Spam', label: 'S'   }, {       summary: 'Prośba autora', label: 'PA' } ];

/* Importy */ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:FastDelete/code.js',        'u:dev:MediaWiki:SyntaxHighlight.js',        'u:dev:MediaWiki:MassPatrol/code.js'    ] });