User:Mix Gerder/global.js

importArticles({   type: 'script',    articles: [        'u:dev:DifferentSkinEditor/code.js',        'u:dev:QuickIW/code.js',        'u:dev:MassProtect/code.js',        'u:dev:RailWAM/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:MultiUpload/code.js',        'u:dev:RedirectManagement/code.js',        'u:dev:GlobalChatJS.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:QuickToolsv2/code.js',        'u:dev:Nuke/code.js',        'u:dev:AdminDropdown.js',        'u:dev:AjaxBatchDelete/code.2.js',        'u:dev:Rollback/code.2.js',        'u:dev:AjaxBatchUndelete/code.js',        'u:dev:ConsistentModules/code.js',        'u:dev:VanguardTools.js',        'u:dev:CommentPreview/code.js',        'u:dev:UploadInPage/code.js',        'u:dev:RefreshThreads/code.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:RollbackSpamUserContribs/code.js',        'u:dev:PageCreator/code2.js' ] }); /////////////////////////////////////////////// ///        Викификатор /////////////////////////////////////////////// function addWikifButton {	var toolbar = document.getElementById('toolbar')	if (!toolbar) return	var i = document.createElement('img')	i.src = '//upload.wikimedia.org/wikisource/ru/d/d1/Button-wikifikator.png'	i.alt = i.title = 'Викификатор'	i.onclick = Wikify	i.style.cursor = 'pointer'	toolbar.appendChild(i) } if (wgAction == 'edit' || wgAction == 'submit') {	importScriptURI('//ru.wikipedia.org/w/index.php?title=MediaWiki:Wikificator.js&action=raw&ctype=text/javascript')	addOnloadHook(addWikifButton) }

//Created by Noemon from Dead Space Wiki function hideFade { // hide #backtotop first $( "#backtotop" ).hide ; // fade in #backtotop $( function {		$( window ).scroll( function  { if ( $( this ).scrollTop > ButtonStart ) { $( '#backtotop' ).fadeIn ; } else { $( '#backtotop' ).fadeOut ; }		});	}); }

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/2/26/Button_latinas.png", "speedTip": "Кавычки", "tagOpen": "«", "tagClose": "»", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/e/eb/EN.png", "speedTip": "+en", "tagOpen": "en:",		"tagClose": "", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/mixgerder/images/6/60/RU.png/revision/latest?cb=20180619061136&path-prefix=ru", "speedTip": "+ru", "tagOpen": "ru:",		"tagClose": "", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://vignette.wikia.nocookie.net/mixgerder/images/0/07/UK.png/revision/latest?cb=20180619061122&path-prefix=ru", "speedTip": "+uk", "tagOpen": "uk:",		"tagClose": "", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png", "speedTip": "Разделитель", "tagOpen": "|", "tagClose": "", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/a/a4/H-line_icon.png", "speedTip": "Длинное тире", "tagOpen": "—", "tagClose": "", "sampleText": "" }; function goToTop { // scroll body to 0px on click $( 'body,html' ).animate ({		scrollTop: 0	}, ScrollSpeed ); return false; } function addBackToTop { if( skin == 'oasis' ) { $('Наверх ').appendTo('#WikiaBarWrapper .toolbar > .tools'); hideFade ; }	} var ButtonStart = 800; var ScrollSpeed = 600; if( !window.BackToTop ) { $( document ).ready( function { 		addBackToTop ; 	}); } var BackToTop = true; // prevent duplication

// Показывать/Скрыть удалённые комментарии в темах if ((wgNamespaceNumber == '1200' || wgNamespaceNumber == '1201') && $('.hide').length) { $('.follow').before('Показать '); $('.ShowMessages').click(function {       if ($('.hide').length) {            $('.hide').removeClass('hide');            $('.ShowMessages').text('Скрыть');        } else {            $('.message-removed').addClass('hide');            $('.ShowMessages').text('Показать');        }    }); }

/*******************************/ /*** Убирает предложение в голубой рамочке о переходе на вики на русском языке ***/ /*******************************/ $(function {    var waitToRemoveNotif = setInterval(function  { if ($('.banner-notification:contains("также доступна на русском языке.")').length) { $('.banner-notification:contains("также доступна на русском языке.")').remove; clearInterval(waitToRemoveNotif); }   }, 500); });

EditIntroButtonText = 'Редактировать преамбулу';