User:Jormun/global.js

// ?uselang=qqx in one click if ((location.href.indexOf('?uselang=qqx') + 1) === 0) { $qqxLink = $('').append(' QQX me! '); $('.tools').append($qqxLink); $('#qqxme').click(function {        location.href = wgServer + '/wiki/' + wgPageName + '?uselang=qqx';    }); } else { $qqxLink = $('').append(' UnQQX me! '); $('.tools').append($qqxLink); $('#qqxme').click(function {        location.href = wgServer + '/wiki/' + wgPageName;    }); }

// editcount $editCount = $('').append(' Editcount '); $('.tools').append($editCount); $('#editcount').click(function {    location.href = wgServer + '/wiki/' + 'Special:Editcount/Jormun' });

// community $communityButton = $('').append(' Community '); $('.tools').append($communityButton); $('#community').click(function {    location.href = '//community.wikia.com' });

// chat $enterChat = $('').append(' Chat '); $('.tools').append($enterChat); $('#enterchat').click(function {    location.href = wgServer + '/wiki/' + 'Special:Chat' });

//Back To Top button //Created by Noemon from Dead Space Wiki, translate from ru.elderscrolls.wikia function hideFade { // hide #backtotop first $( "#backtotop" ).hide ; // fade in #backtotop $( function {		$( window ).scroll( function  { if ( $( this ).scrollTop > ButtonStart ) { $( '#backtotop' ).fadeIn ; } else { $( '#backtotop' ).fadeOut ; }		});	}); } 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

// purge importScriptPage( 'PurgeButton/code.js', 'dev' ); // Кнопка очистки кэша страницы var PurgeButtonText = 'Обновить';

// auto update w-a var	ajaxIndicator = 'http://images.wikia.com/dev/images/8/82/Facebook_throbber.gif', ajaxTimer, ajaxRefresh = 60000, refreshText = 'Авто-Обновление', refreshHover = 'Включить авто-обновление страницы', doRefresh = true; if ( !window.ajaxPages ) { var ajaxPages = new Array ("Служебная:RecentChanges", "Служебная:WikiActivity", "Служебная:NewFiles"); } if ( !window.ajaxCallAgain ) { var ajaxCallAgain = []; } if( typeof AjaxRCRefreshText == "string" ) { refreshText = AjaxRCRefreshText; } if( typeof AjaxRCRefreshHoverText == "string" ) { refreshHover = AjaxRCRefreshHoverText; }

//WHAM importScriptPage('WHAM/code.js', 'dev'); //Импорт чего-то, связанного с WHAM importScriptPage('AjaxBatchDelete/code.js', 'dev'); //Чатхак importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); //Оповещения //importScriptPage('User:Wildream/SoundNotifications.js', 'ru.community');

//importScriptURI('https://internal.wikia-inc.com/index.php?title=MediaWiki:ForcePreview.js&action=raw&ctype=text/javascript');