User:GreenWithin/global.js

importArticles({   type: 'script',    articles: [    	'u:dev:MediaWiki:CustomizeAce.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:PurgeButton/code.js',        'u:dev:MediaWiki:Stella.js',        'u:dev:MediaWiki:DecodeURI/code.js',        'u:dev:MediaWiki:FastCreate.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:InterwikisOnSpecialPages.js',        'u:dev:MediaWiki:RestoreRevButton.js',        'u:dev:MediaWiki:AjaxEditPreview.js',        'u:dev:MediaWiki:MarkBlocked.js',        'u:dev:MediaWiki:ThemeToggler.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:ProtectionIcons.js',        'u:dev:MediaWiki:DiscussionsActivity.js',        'u:dev:MediaWiki:UploadMultipleFiles.js',        'u:dev:MediaWiki:DisableCode/code.js'    ] });

// Sticky rail button $( function {   $('aside.page__right-rail').prepend( $(' ', { id: 'stickyRightRailButton'} ).prepend(           $("button.right-rail-toggle").css({'position':'sticky', 'top':'58px'})        ).css({'position':'absolute', 'right':'0', 'height':'100%', 'padding-bottom':'430px', 'padding-top':'15px'}) ); });

// FandomMobile shortcut $( function {	$('#p-views.page-header__actions #p-cactions > ul.wds-list.wds-is-linked').append( $('').append(			$('',{ href: mw.util.getUrl(mw.config.get('wgPageName')) + '?useskin=fandommobile', text: 'FandomMobile' })		)	);	});

// Mark AjaxUndo edits as minor edits always window.AjaxUndoMinor = true;

// FastCreate config var lang = mw.config.get('wgContentLanguage'); window.FCButtons = [ {       label: 'Create user page', target: 'User:GreenWithin', summary: 'Creating userpage (script)', content: '', alwaysDisplay: true, placement: '.global-navigation__bottom .wds-dropdown .wds-list', prepend: true },   {        label: 'Crear página de usuario', target: 'Usuario:GreenWithin', summary: 'Generando página de usuario (script)', content: '', alwaysDisplay: true, placement: '.global-navigation__bottom .wds-dropdown .wds-list', prepend: true, require: lang === 'es' }, ];

// CustomizeAce config / Credits to Rail, I just wooped his code self.isDarkWiki = function { const isFDDarkTheme = document.body.classList.contains( 'theme-fandomdesktop-dark' ); return isFDDarkTheme; }; window.aceCustomSettings = { theme: ( self.isDarkWiki				? 'dracula'				: 'dawn'			), wrap: true, showInvisibles: false };

// NKCH ThemeToggler script (props to Не кочан) mw.loader.getScript('https://community.fandom.com/wiki/User:GreenWithin/ThemeToggler.js?action=raw&ctype=text/javascript').then(function { });