User:-Price-/global.js

/* Special:Chat Extension */

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

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

/* ######################################################## */ /* ################### Party Chat Theme ################### */ /* ###################### Taken from ###################### */ /* ############## Lego Universe Stories Wiki ############## */ /* ################## Modified by Yuzura ################## */ /* ######################################################## */ var partyLink1 = "http://images.wikia.com/legouniversestories/images/a/a5/Song_of_time_-_Dance_Remix.ogg"; //link to first song in ogg var partyLinkIE1 = "http://images.wikia.com/legouniversestories/images/a/a5/Song_of_time_-_Dance_Remix.ogg"; //link to first song in mp3 var partyLinkText1 = "Song of Time (Dance Remix)"; //text for first song var partyLink2 = "http://images.wikia.com/yuzura/images/5/57/Fullmetal_Alchemist_and_the_Broken_Angel_OST_-_fight_it_out%21.ogg"; //link to second song in ogg var partyLinkIE2 = "http://images.wikia.com/yuzura/images/5/57/Fullmetal_Alchemist_and_the_Broken_Angel_OST_-_fight_it_out%21.ogg"; //link to second song in mp3 var partyLinkText2 = "Fullmetal Alchemist"; //text for second song var partyLink3 = "http://images.wikia.com/nexusadventures/images/d/d0/Nyan_Cat.ogg"; //link to third song in ogg var partyLinkIE3 = "http://images.wikia.com/nexusadventures/images/d/d0/Nyan_Cat.ogg"; //link to third song in mp3 var partyLinkText3 = "Nyan Cat"; //text for third song var partyLink4 = "http://images.wikia.com/yuzura/images/8/89/Daft_Punk_-_Get_Lucky_%28Full_Video%29.ogg"; //link to fourth song in ogg var partyLinkIE4 = "http://images.wikia.com/yuzura/images/8/89/Daft_Punk_-_Get_Lucky_%28Full_Video%29.ogg"; //link to fourth song in mp3 var partyLinkText4 = "Get Lucky - Daft Punk"; //text for fourth song $('head').append('#partyTrigger,#partyMenuButton{margin:0 !important;font-size:16px;cursor:pointer;vertical-align:top;color:silver;display:inline-block;}#partyTrigger{padding:0 10px;}#WikiaPage,#partyMenu{transition:background .5s;-moz-transition:background .5s;-webkit-transition:background .5s;-ms-transition:background .5s;} '); navigator.info = (function {	var N = navigator.appName, ua = navigator.userAgent, tem;	var M = ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);	if (M && (tem = ua.match(/version\/([\.\d]+)/i))!== null) M[2] = tem[1];	M = M? [M[1], M[2]] : [N, navigator.appVersion, '-?'];	return M; } ); if (navigator.info[0] == "Chrome") { $('#ChatHeader .public').append(' Party Mode'); console.log('ChatParty initialized'); } else if (navigator.info[0] == "MSIE" && navigator.info[1] >= 10) { $('#ChatHeader .public').append(' Party Mode'); console.log('ChatParty initialized'); } else if (navigator.info[0] == "Firefox" && navigator.info[1] >= 5) { $('#ChatHeader .public').append(' Party Mode'); console.log('ChatParty initialized'); } else if (navigator.info[0] == "Safari" && navigator.platform == "Mac" || "iPad" ) { $('#ChatHeader .public').append(' Party Mode'); console.log('ChatParty initialized'); } else { } $('#partyTrigger').toggle(function {	$('.ChatWindow').append('         <div class="light green" style="top: 45%; animation-delay: 7.5s; -moz-animation-delay: 7.5s; -webkit-animation-delay: 7.5s; -ms-animation-delay: 7.5s; background: white; box-shadow: 0 0 80px 40px white;"> <div class="light yellow" style="top: 65%; animation-delay: 0.5s; -moz-animation-delay: 0.5s; -webkit-animation-delay: 0.5s; -ms-animation-delay: 0.5s; background: white; box-shadow: 0 0 80px 40px white;"> <div class="light blue" style="top: 65%; animation-delay: 2.5s; -moz-animation-delay: 2.5s; -webkit-animation-delay: 2.5s; -ms-animation-delay: 2.5s; background: white; box-shadow: 0 0 80px 40px white;"> <div class="light orange" style="top: 65%; animation-delay: 4.5s; -moz-animation-delay: 4.5s; -webkit-animation-delay: 4.5s; -ms-animation-delay: 4.5s; background: white; box-shadow: 0 0 80px 40px white;"> <div class="light red" style="top: 85%; animation-delay: 1.5s; -moz-animation-delay: 1.5s; -webkit-animation-delay: 1.5s; -ms-animation-delay: 1.5s; background: white; box-shadow: 0 0 80px 40px white;"> <div class="light green" style="top: 85%; animation-delay: 3.5s; -moz-animation-delay: 3.5s; -webkit-animation-delay: 3.5s; -ms-animation-delay: 3.5s; background: white; box-shadow: 0 0 80px 40px white;"> <div class="light yellow" style="top: 85%; animation-delay: 5.5s; -moz-animation-delay: 5.5s; -webkit-animation-delay: 5.5s; -ms-animation-delay: 5.5s; background: white; box-shadow: 0 0 80px 40px white;">   <form id="skin" class="group" style="padding: 0 10px; font-size: 14px; margin-top: 5px;"><p style="margin-bottom: -15px; font-weight: bold;">Skin </a>'); skinDarkNexus; if (navigator.info[0] == "MSIE") { $('#partyMode source[type="audio/ogg"]').remove; $('#partyMode audio').append('<source src="' + partyLinkIE1 + '" type="audio/mpeg">'); }	$('#partyMenuButton > span').click(function {		$('#partyMenuButton').toggleClass('active');		$('#partyMenu').toggle; }	); $('#white').click(function {		$('#discoBall').show;		$('.light').css({'background':'white','boxShadow':'0 0 80px 40px white'}); }	); $('#colored').click(function {		$('#discoBall').show;		$('.light.blue').css({'background':'blue','boxShadow':'0 0 80px 40px blue'});		$('.light.orange').css({'background':'orange','boxShadow':'0 0 80px 40px orange'});		$('.light.red').css({'background':'red','boxShadow':'0 0 80px 40px red'});		$('.light.green').css({'background':'green','boxShadow':'0 0 80px 40px green'});		$('.light.yellow').css({'background':'yellow','boxShadow':'0 0 80px 40px yellow'}); }	); $('#off').click(function {		$('#discoBall').hide; }	); $('#partyMenu input').click(function {		$(this).parents('.group').find('span').css('textShadow','none');		$(this).next('span').css('textShadow','0 0 4px white'); }	); $('#option-1').on('click',function {		source = $('#partyMode source').attr('src');		if (navigator.info[0] == "MSIE" && source != partyLinkIE1) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLinkIE1 + '" type="audio/mpeg"> ');		}		else if (navigator.info[0] == "Firefox" && source != partyLink1) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLink1 + '" type="audio/ogg"> ');		}		else if (source != partyLink1) {			$('#partyMode source').remove;			$('#partyMode audio').append('<source src="' + partyLink1 + '" type="audio/ogg">');		}		else {		} }	); $('#option-2').on('click',function {		source = $('#partyMode source').attr('src');		if (navigator.info[0] == "MSIE" && source != partyLinkIE2) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLinkIE2 + '" type="audio/mpeg"> ');		}		else if (navigator.info[0] == "Firefox" && source != partyLink2) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLink2 + '" type="audio/ogg"> ');		}		else if (source != partyLink2) {			$('#partyMode source').remove;			$('#partyMode audio').append('<source src="' + partyLink2 + '" type="audio/ogg">');		}		else {		} }	); $('#option-3').on('click',function {		source = $('#partyMode source').attr('src');		if (navigator.info[0] == "MSIE" && source != partyLinkIE3) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLinkIE3 + '" type="audio/mpeg"> ');		}		else if (navigator.info[0] == "Firefox" && source != partyLink3) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLink3 + '" type="audio/ogg"> ');		}		else if (source != partyLink3) {			$('#partyMode source').remove;			$('#partyMode audio').append('<source src="' + partyLink3 + '" type="audio/ogg">');		}		else {		} }	); $('#option-4').on('click',function {		source = $('#partyMode source').attr('src');		if (navigator.info[0] == "MSIE" && source != partyLinkIE4) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLinkIE4 + '" type="audio/mpeg"> ');		}		else if (navigator.info[0] == "Firefox" && source != partyLink4) {			$('#partyMode audio').remove;			$('#partyMode').append(' <source src="' + partyLink4 + '" type="audio/ogg"> ');		}		else if (source != partyLink4) {			$('#partyMode source').remove;			$('#partyMode audio').append('<source src="' + partyLink4 + '" type="audio/ogg">');		}		else {		} }	); $('#option-5:not(:checked)').on('click',function {		$('#partyMode audio').remove;		if (navigator.info[0] == "MSIE" || navigator.info[0] == "Firefox") {		}		else {			$('#partyMode').append(' ');		} }	); $('#skinDarkNexus').click(function {		$('#style style').remove;		skinDarkNexus; }	); $('#skinAssembly').click(function {		$('#style style').remove;		$('#style').append('<style type="text/css">.ChatWindow{background-color:black !important;background-image:url(http://images3.wikia.nocookie.net/yuzura/images/8/85/Hell_background2.jpg) !important;}#ChatHeader,.ChatWindow #WikiaPage,.ChatWindow #Write,.ChatWindow #UserStatsMenu,.ChatWindow #UserStatsMenu .info,#partyMenu{background-color:rgba(89,44,1,.7) !important;}.ChatHeader:hover,.ChatWindow #Write:hover,.ChatWindow #UserStatsMenu:hover,#partyMenu:hover{background-color:rgba(89,44,1,.9) !important;}.ChatWindow .Write::after{background:rgba(89,44,1,.7);}.ChatWindow .Rail{border-left:1px solid rgba(89,44,1,.7) !important;} '); }	); $('#skinVenture').click(function {		$('#style style').remove;		$('#style').append('<style type="text/css">.ChatWindow{background-color:black !important;background-image:url(http://images3.wikia.nocookie.net/__cb20130210152827/yuzura/images/c/c4/Dragons_background.jpg) !important;}#ChatHeader,.ChatWindow #WikiaPage,.ChatWindow #Write,.ChatWindow #UserStatsMenu,.ChatWindow #UserStatsMenu .info,#partyMenu{background-color:rgba(46,89,1,.7) !important;}.ChatHeader:hover,.ChatWindow #Write:hover,.ChatWindow #UserStatsMenu:hover,#partyMenu:hover{background-color:rgba(46,89,1,.9) !important;}.ChatWindow .Write::after{background:rgba(46,89,1,.7);}.ChatWindow .Rail{border-left:1px solid rgba(46,89,1,.7) !important;} '); }	); $('#skinSentinels').click(function {		$('#style style').remove;		$('#style').append('<style type="text/css">.ChatWindow{background-color:black !important;background-image:url(http://images3.wikia.nocookie.net/__cb20130210152827/yuzura/images/9/98/FGT_Ichigo_wallpaper.jpg) !important;}#ChatHeader,.ChatWindow #WikiaPage,.ChatWindow #Write,.ChatWindow #UserStatsMenu,.ChatWindow #UserStatsMenu .info,#partyMenu{background-color:rgba(1,2,89,.7) !important;}.ChatHeader:hover,.ChatWindow #Write:hover,.ChatWindow #UserStatsMenu:hover,#partyMenu:hover{background-color:rgba(1,2,89,.9) !important;}.ChatWindow .Write::after{background:rgba(1,2,89,.7);}.ChatWindow .Rail{border-left:1px solid rgba(1,2,89,.7) !important;} '); }	); $('#skinParadox').click(function {		$('#style style').remove;		$('#style').append('<style type="text/css">.ChatWindow{background-color:black !important;background-image:url(http://images4.wikia.nocookie.net/__cb20130210152826/yuzura/images/0/0c/Mortal_Kombat_background.jpg) !important;}#ChatHeader,.ChatWindow #WikiaPage,.ChatWindow #Write,.ChatWindow #UserStatsMenu,.ChatWindow #UserStatsMenu .info,#partyMenu{background-color:rgba(89,1,2,.7) !important;}.ChatHeader:hover,.ChatWindow #Write:hover,.ChatWindow #UserStatsMenu:hover,#partyMenu:hover{background-color:rgba(89,1,2,.9) !important;}.ChatWindow .Write::after{background:rgba(89,1,2,.7);}.ChatWindow .Rail{border-left:1px solid rgba(89,1,2,.7) !important;} '); }	); function skinDarkNexus { $('#style').append('<style type="text/css">.ChatWindow{background-color:black !important;} '); } },	function { $('#partyMode audio').off; $('#partyMode, #partyMenuButton').remove; } );