User:Vuh/global.js

importArticles({   type: 'script',    articles: [	'w:c:dev:RevealAnonIP/usercode.js',	'w:c:dev:FixMultipleUpload/code.js', //      'w:c:dev:User:UltimateSupreme/accountnav.js', //      'w:c:dev:EditIntroButton/code.js',        'w:c:dev:NoImageLightbox/code.js',      //      'w:c:dev:PortableCSSPad/code.js',	'w:c:dev:MessageBlocker/code.js',	'w:c:vstf:User:Joeyaa/wham.js',	'w:c:cod:User:Madnessfan34537/multikick.js' //	'w:c:cod:User:Madnessfan34537/redlinkfix.js'    ] });

/*Tabkey*/ var tabKeyEnabled = true; importScriptPage('User:Joeytje50/tabkey.js','rs');

importScriptPage('User:Joeytje50/ChatPMs.js','c'); importScriptPage('User:Monchoman45/ChatHacks.js','c'); importScriptPage('User:PlasmaTime/quickBlock.js','c');

/* Chat options */ var chatOptionsLoaded; if (chatOptionsLoaded != 1){ chatOptionsLoaded = 1; importScriptPage('MediaWiki:Chat.js/options.js','cod'); }

/* Czat fix */ $(setTimeout('ChatCheck', 200)); function ChatCheck { if($('.chat-join button').length != 0) { $('.chat-join button').replaceWith('Join the Chat'); } else { setTimeout('ChatCheck', 200); }   }    function OpenChatWindow { window.chatwindow = window.open('/index.php?title=Special:Chat&useskin=wikia'); window.chatwindow.onload = function { //addOnloadHook, importScript, and importStylesheet window.chatwindow.$('body').prepend(' \nfunction importScript(b){var a=wgScript+"?title="+encodeURIComponent(b.replace(/ /g,"_")).replace(/%2F/ig,"/").replace(/%3A/ig,":")+"&action=raw&ctype=text/javascript";return importScriptURI(a)}\nfunction importScriptURI(a){var b=document.createElement("script");b.setAttribute("src",a);b.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(b);return b}\nfunction importScriptPage(b,d){var a="/index.php?title="+encodeURIComponent(b.replace(/ /g,"_")).replace("%2F","/").replace("%3A",":")+"&action=raw&ctype=text/javascript";if(typeof d=="string"){if(d.indexOf("://")==-1){a="http://"+d+".wikia.com"+a}else{a=d+a}}return importScriptURI(a)}\nfunction importStylesheet(a){return importStylesheetURI(wgScript+"?action=raw&ctype=text/css&title="+encodeURIComponent(a.replace(/ /g,"_")))}\nfunction importStylesheetURI(b,d){var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=b;if(d){a.media=d}document.getElementsByTagName("head")[0].appendChild(a);return a}\nfunction importStylesheetPage(b,d){var a="/index.php?title="+encodeURIComponent(b.replace(/ /g,"_")).replace("%2F","/").replace("%3A",":")+"&action=raw&ctype=text/css";if(typeof d=="string"){if(d.indexOf("://")==-1){a="http://"+d+".wikia.com"+a}else{a=d+a}}return importStylesheetURI(a)}\n//This isn\'t the same as the regular addOnloadHook, because the regular one runs from a script tag in the body that I don\'t feel like appending. It\'s easier to just make it $(function), which is essentially equivalent\nfunction addOnloadHook(func) {$(func);}\n ');                   //global.js                    window.chatwindow.importScriptURI('http://community.wikia.com/index.php?title=User:' + wgUserName + '/global.js&action=raw&ctype=text/javascript');                    //chat.js                    window.chatwindow.importScriptURI(wgServer + '/index.php?title=User:' + wgUserName + '/chat.js&action=raw&ctype=text/javascript');                    //global.css                    window.chatwindow.importStylesheetURI('http://community.wikia.com/index.php?title=User:' + wgUserName + '/global.css&action=raw&ctype=text/css');                    //chat.css                    window.chatwindow.importStylesheetURI(wgServer + '/index.php?title=User:' + wgUserName + '/chat.css&action=raw&ctype=text/css');            }    }

/* Logs */ if ( wgPageName == "Special:WikiActivity" || wgPageName == "Special:WikiActivity/watchlist" || wgPageName == "Special:WikiActivity/activity" || wgPageName == "Specjalna:Aktywność_na_wiki" || wgPageName == "Specjalna:Aktywność_na_wiki/watchlist" || wgPageName == "Specjalna:Aktywność_na_wiki/activity" ) { appTo = ( $( '#WikiaPageHeader' ).length ) ? $( '#WikiaPageHeader .activity-nav ul' ) : ( $( '#AdminDashboardHeader' ).length ? $( '#AdminDashboardHeader > h1' ) : $( '.firstheading' ) ); appTo.append( 'Rejestr' ); } else if ( wgPageName == "Special:Log" || wgPageName == "Special:RecentChanges" ) { appTo = ( $( '#WikiaPageHeader' ).length ) ? $( '#WikiaPageHeader > h2' ) : ( $( '#AdminDashboardHeader' ).length ? $( '#AdminDashboardHeader > h1' ) : $( '.firstheading' ) ); appTo.append( 'Aktywność' ); } switch (wgPageName) { case 'Special:B3': case 'Special:Chatbot': case 'Special:Tasks': case 'Special:Maintenance': case 'Special:CVN': importScriptPage('MediaWiki:B3.js', 'monchbox'); };

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1b/Button_miss_signature.png", "speedTip": "Niepodpisany post", "tagOpen": "", "sampleText": "Nazwa użytkownika lub IP"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/21/Button_invalid_template.png", "speedTip": "Bez formatowania Wiki", "tagOpen": " ", "tagClose": " ", "sampleText": ""}; // 	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png", "speedTip": "Podpis", "tagOpen": "", "tagClose": "", "sampleText": ""}; // }

$('#ChatHeader').append('  ') $('#WikiaBarWrapper ').append(' '); $('#playerSwitch').toggle(function {	removePlayer;	$('#frostivusPlayer').remove;	$.cookie('frostivusPlayer','removed',{expires: 30}); },	function {		createPlayer;		$(this).attr('title','turn off music player');		$.removeCookie('frostivusPlayer');	} ); /* var playerCookie = $.cookie('frostivusPlayer'); if(playerCookie == "removed") { removePlayer; } else { createPlayer; } function removePlayer { $(this).attr('title','turn on music player'); } function createPlayer { $('#WikiaBarWrapper ').append('<audio controls autoplay loop id="frostivusPlayer" style="position:fixed;bottom:0;left:-270px;transition: left .5s;-moz-transition: left .5s;-webkit-transition: left .5s;-o-transition: left .5s"><source src="http://dl.dropbox.com/s/6r150a5x65ny3is/Masayoshi_Minoshima_-_Bad_Apple.MP3" type="audio/mp3"> <style type="text/css">#frostivusPlayer:hover{left:0 !important} '); } var playerCookie = $.cookie('frostivusPlayer'); if(playerCookie == "removed") { removePlayer; } else { createPlayer; } function removePlayer { $(this).attr('title','turn on music player'); } function createPlayer { $('#WikiaBarWrapper ').append('<div id="frostivusPlayer" style="background: #000;border-radius: 8px;padding: 6px 60px 6px 6px;bottom: 50px;left: -200px;position:fixed;transition: left .5s;-moz-transition: left .5s;-webkit-transition: left .5s;-o-transition: left .5s"> <a href="/wiki/MediaWiki:Gadgets-definition" target="_blank">MediaWiki:Gadgets-definition</a>  <a href="/wiki/Special:Gadgets" target="_blank">Special:Gadgets</a>   <a href="/wiki/MediaWiki:Common.js" target="_blank">MediaWiki:Common.js</a>  <a href="/wiki/MediaWiki:Wikia.js" target="_blank">MediaWiki:Wikia.js</a>  <a href="/wiki/MediaWiki:Monobook.js" target="_blank">Monobook.js</a>  <a href="/wiki/MediaWiki:Common.css" target="_blank">MediaWiki:Common.css</a>  <a href="/wiki/MediaWiki:Wikia.css" target="_blank">MediaWiki:Wikia.css</a>  <a href="/wiki/MediaWiki:Monobook.css" target="_blank">MediaWiki:Monobook.css</a>  <style type="text/css">#frostivusPlayer:hover{left:0 !important} '); }