User:Meztinos/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:Wikimarks/code.js',        'u:dev:MediaWiki:Rollback/code.js',        'u:dev:AjaxCommentDelete/code.js',   ] });

importScriptPage('WHAM/ru/code.2.js', 'dev');

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('Показать');        }    }); }