User:Mix Gerder/global.js

/* Portable CSS Pad */

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

/* ChatHacks */

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

/* Викификатор */

function addWikifButton { var toolbar = document.getElementById('toolbar') if (!toolbar) return var i = document.createElement('img') i.src = 'http://img4.wikia.nocookie.net/__cb20140105201227/wikies/ru/images/a/a3/Wikia_wordmark.png' i.alt = i.title = 'Викификатор. Кликните для произведения викификации.' i.onclick = Wikify i.style.cursor = 'pointer' toolbar.appendChild(i) } if (wgAction == 'edit' || wgAction == 'submit') { importScriptURI('http://ru.wikipedia.org/w/index.php?title=MediaWiki:Wikificator.js&action=raw&ctype=text/javascript') addOnloadHook(addWikifButton) } importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js'    ] }); //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