User:Mix Gerder/global.js

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); importScriptPage('User:Wildream/ContributionsCalculator.js', 'ru.community');

importArticles({   type: 'script',    articles: [        'u:dev:DifferentSkinEditor/code.js',        'u:dev:QuickIW/code.js',        'u:dev:FindAndReplace/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: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:MonobookHighlight.js',        'u:dev:AjaxBatchUndelete/code.js',        'u:dev:IsTyping/code.js',        'u:dev:ConsistentModules/code.js',        'u:dev:CommentPreview/code.js',        'u:dev:UploadInPage/code.js',        'u:dev:RefreshThreads/code.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://upload.wikimedia.org/wikipedia/commons/e/eb/EN.png", "speedTip": "+ru", "tagOpen": "ru:",		"tagClose": "", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/e/eb/EN.png", "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 = 'Редактировать преамбулу';