MediaWiki:ChatParty.js

/* CSS for ChatParty - will be removed soon. */ $('head').append('#partyTrigger,#partyMenuButton,#partyHelp,#partyInfo{margin:0 !important;font-size:16px;cursor:pointer;vertical-align:top;color:white;}#partyTrigger,#partyHelp,#partyTech,#partyInfo{padding:0 10px;}#ChatHeader{z-index:1;}#partyTech{margin:0 !important;font-size:10px;vertical-align:top;color:white;line-height:10px;display:inline-block;padding-top:5px;} ');

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; });

var cpVersion = "1.2.7"; var chatParty = false; var holiday = false; var holidayName = ""; var holidayFont = ""; var holidayStyle = "";

if ((navigator.info[0] == "Chrome") || (navigator.info[0] == "MSIE" && navigator.info[1] >= 10) || (navigator.info[0] == "Firefox" && navigator.info[1] >= 5) || (navigator.info[0] == "Safari" && navigator.platform == "Mac") || (navigator.info[0] == "Safari" && navigator.platform == "iPad")) { $('#ChatHeader .public').append('Party Mode'); console.log('ChatParty v' + cpVersion + ' initialized in Chrome ' + navigator.info[1]); //inlineAlert('ChatParty successfully initialized.'); chatParty = true; } else { $('#ChatHeader .public').append('HelpTech Browser: ' + navigator.info[0] + 'Version: ' + navigator.info[1] + 'OS: ' + navigator.platform + ' '); $('#partyInfo').click(function {       $(this).hide;        $('#partyTech').show;    }); inlineAlert('ChatParty was not initialized successfully. Please update your browser, or see the "Help" button for a list of supported browsers.'); }

function shell { partyLink1 = "http://vignette1.wikia.nocookie.net/legomessageboards/images/8/87/Sheppard_-_Geronimo.ogg"; partyLinkIE1 = ""; partyLinkText1 = "Geronimo - Sheppard"; partyLink2 = "http://vignette3.wikia.nocookie.net/legomessageboards/images/9/9a/Caramelldansen_Swedish_Original.ogg"; partyLinkIE2 = ""; partyLinkText2 = "Caramelldansen"; partyLink3 = "http://legomessageboards.wikia.com/wiki/File:Viva_La_Vida.ogg"; partyLinkIE3 = "http://k007.kiwi6.com/hotlink/1q82nrxp54/viva_la_vida.mp3"; partyLinkText3 = "Viva La Vida - Coldplay"; $('#partyTrigger').toggle(function {           $('.ChatWindow').append('    <div class="light red" style="top: 5%; animation-delay: 4s; -moz-animation-delay: 4s; -webkit-animation-delay: 4s; -ms-animation-delay: 4s; background: white; box-shadow: 0 0 20px 20px white;"> <div class="light green" style="top: 25%; animation-delay: 1s; -moz-animation-delay: 1s; -webkit-animation-delay: 1s; -ms-animation-delay: 1s; background: white; box-shadow: 0 0 20px 20px white;"> <div class="light yellow" style="top: 25%; animation-delay: 3s; -moz-animation-delay: 3s; -webkit-animation-delay: 3s; -ms-animation-delay: 3s; background: white; box-shadow: 0 0 20px 20px white;"> <div class="light blue" style="top: 25%; animation-delay: 5s; -moz-animation-delay: 5s; -webkit-animation-delay: 5s; -ms-animation-delay: 5s; background: white; box-shadow: 0 0 20px 20px white;"> <div class="light orange" style="top: 45%; 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 20px 20px white;"> <div class="light red" style="top: 45%; 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 20px 20px white;"> <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 20px 20px 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 20px 20px 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 20px 20px 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 20px 20px 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 20px 20px 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 20px 20px 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 20px 20px white;">   <form id="skin" style="padding: 0 10px; font-size: 14px; margin-top: 5px;"><p style="margin-bottom: -15px; font-weight: bold;">Skin </a><a href="/wiki/Lego_Message_Boards_Wiki:Chat/Party_Mode" target="_blank" id="partyHelp">Help</a><a id="partyInfo">Tech</a> Browser: ' + navigator.info[0] + '</li>Version: ' + navigator.info[1] + '</li>OS: ' + navigator.platform + '</li></ul> '); 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 20px 20px white' });           });            $('#colored').click(function {                $('#discoBall').show;                $('.light.blue').css({ 'background': 'blue', 'boxShadow': '0 0 20px 20px blue' });               $('.light.orange').css({ 'background': 'orange', 'boxShadow': '0 0 20px 20px orange' });               $('.light.red').css({ 'background': 'red', 'boxShadow': '0 0 20px 20px red' });               $('.light.green').css({ 'background': 'green', 'boxShadow': '0 0 20px 20px green' });               $('.light.yellow').css({ 'background': 'yellow', 'boxShadow': '0 0 20px 20px yellow' });           });            $('#off').click(function {                $('#discoBall').hide;            }); $('#music input').click(function {               $('#music span').css('textShadow', 'none');                $(this).next('span').css('textShadow', '0 0 4px white');            }); $('#lights input').click(function {               $('#lights span').css('textShadow', 'none');                $(this).next('span').css('textShadow', '0 0 4px white');            }); $('#skin input').click(function {               $('#skin 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 {}            }); if (navigator.info[0] == "MSIE") { $.get('/index.php', {                   action: 'raw',                    title: 'User:' + wgUserName + '/Party-link-ie-1'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.customLink1 = data;                        $('#option-1-group').show;                    }                }); $.get('/index.php', {                   action: 'raw',                    title: 'User:' + wgUserName + '/Party-link-ie-2'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.customLink2 = data;                        $('#option-2-group').show;                    }                }); $.get('/index.php', {                   action: 'raw',                    title: 'User:' + wgUserName + '/Party-link-ie-3'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.customLink3 = data;                        $('#option-3-group').show;                    }                }); $.get('/index.php', {                   action: 'raw',                    title: 'MediaWiki:Party-special-ie'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.specialLink = data;                        $('#option-special-group').show;                    }                }); } else { $.get('/index.php', {                   action: 'raw',                    title: 'User:' + wgUserName + '/Party-link-1'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.customLink1 = data;                        $('#option-1-group').show;                    }                }); $.get('/index.php', {                   action: 'raw',                    title: 'User:' + wgUserName + '/Party-link-2'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.customLink2 = data;                        $('#option-2-group').show;                    }                }); $.get('/index.php', {                   action: 'raw',                    title: 'User:' + wgUserName + '/Party-link-3'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.customLink3 = data;                        $('#option-3-group').show;                    }                }); $.get('/index.php', {                   action: 'raw',                    title: 'MediaWiki:Party-special'                }, function success(data) {                    if (data.substring(0, 7) == 'http://') {                        window.specialLink = data;                        $('#option-special-group').show;                    }                }); }           $.get('/index.php', {                action: 'raw',                title: 'User:' + wgUserName + '/Party-link-1-text'            }, function success(data) {                $('#option-4').next('span').text(data);            }); $.get('/index.php', {               action: 'raw',                title: 'User:' + wgUserName + '/Party-link-2-text'            }, function success(data) {                $('#option-5').next('span').text(data);            }); $.get('/index.php', {               action: 'raw',                title: 'User:' + wgUserName + '/Party-link-3-text'            }, function success(data) {                $('#option-6').next('span').text(data);            }); $.get('/index.php', {               action: 'raw',                title: 'MediaWiki:Party-special-text'            }, function success(data) {                $('#option-special').next('span').text(data);            }); $.get('/index.php', {               action: 'raw',                title: 'MediaWiki:Party-special-descrip'            }, function success(data) {                $('#option-special-descrip').text(data);            }); $('#option-4').on('click', function {               source = $('#partyMode source').attr('src');                if (source != customLink1) {                    $('#partyMode audio').remove;                    if (navigator.info[0] == "MSIE") {                        $('#partyMode').append(' <source src="' + customLink1 + '" type="audio/mpeg"> ');                    } else {                        $('#partyMode').append(' <source src="' + customLink1 + '" type="audio/ogg"> ');                    }                }            }); $('#option-5').on('click', function {               source = $('#partyMode source').attr('src');                if (source != customLink2) {                    $('#partyMode audio').remove;                    if (navigator.info[0] == "MSIE") {                        $('#partyMode').append(' <source src="' + customLink2 + '" type="audio/mpeg"> ');                    } else {                        $('#partyMode').append(' <source src="' + customLink2 + '" type="audio/ogg"> ');                    }                }            }); $('#option-6').on('click', function {               source = $('#partyMode source').attr('src');                if (source != customLink3) {                    $('#partyMode audio').remove;                    if (navigator.info[0] == "MSIE") {                        $('#partyMode').append(' <source src="' + customLink3 + '" type="audio/mpeg"> ');                    } else {                        $('#partyMode').append(' <source src="' + customLink3 + '" type="audio/ogg"> ');                    }                }            }); $('#option-special').on('click', function {               source = $('#partyMode source').attr('src');                if (source != specialLink) {                    $('#partyMode audio').remove;                    if (navigator.info[0] == "MSIE") {                        $('#partyMode').append(' <source src="' + specialLink + '" type="audio/mpeg"> ');                    } else {                        $('#partyMode').append(' <source src="' + specialLink + '" type="audio/ogg"> ');                    }                }            }); $('#option-7').on('click', function {               if ($('#partyMode audio')[0]) {                    $('#partyMode audio').remove;                    if (navigator.info[0] == "MSIE" || navigator.info[0] == "Firefox") {} else {                        $('#partyMode').append('  ');                    }                }            }); $('#inverted').click(function {               $('#style style').remove;                skinInverted;            }); $('#neon').click(function {               $('#style style').remove;                $('#style').append('<style type="text/css">.ChatWindow{background:black;}#ChatHeader{border-radius:0 !important;background:black !important;box-shadow:0 0 10px 5px #00E6E6;z-index:1;}#WikiaPage{background:black;border-radius:0 !important;box-shadow:0 0 10px 5px #E6E600 !important;top:65px !important;}#WikiaPage .Chat span{color:white;text-shadow:0 0 10px #00E6E6;}#WikiaPage .Chat .you{background:black;}#WikiaPage .Chat .you span{text-shadow:0 0 10px #E600E6 !important;}#Write .message{border:none !important;border-radius:0 !important;background:black !important;padding:8px;}#Write textarea{box-shadow:0 0 10px 5px #E600E6;color:white;padding:2px;}#Rail .User{color:white;}#Rail .User.away{color:#828282;}#Rail .selected{background:none !important;box-shadow:0 0 10px 5px #00E6E6 inset !important;}#Rail .User:hover{background:none !important;text-shadow:0 0 10px #00E6E6;}#UserStatsMenu{background:black !important;border:none !important;border-radius:0 !important;box-shadow:0 0 10px 5px #E6E600 !important;color:white !important;}#UserStatsMenu .info li{color:white !important;}#UserStatsMenu .actions span{color:white !important;}#UserStatsMenu .actions li:hover{background:none !important;text-shadow:0 0 10px #E6E600;}.ChatWindow #Rail .private{background:none !important;box-shadow: 0 0 10px 5px #E600E6 inset;}#ChatHeader .public.wordmark>a:not(#partyMenuButton):hover,#partyMenuButton>span:hover{background:none !important;box-shadow:0 0 10px 5px #E6E600 inset;text-shadow:0 0 5px #E6E600;}#partyMenu{background:black;box-shadow:0 0 10px 5px #E600E6 inset;}#partyMenuButton.active>span{box-shadow:0 0 10px 5px #E600E6 inset;}#partyMenuButton.active>span:hover{text-shadow:0 0 5px #E600E6;}#ChatHeader #partyMenuButton:hover{background:none !important;} '); });           $('#glass').click(function { $('#style style').remove; $('#style').append('<style type="text/css">.ChatWindow{background:black;}#ChatHeader{border-radius:100%/10px !important;background:rgba(152,192,192,.4) url(http://images4.wikia.nocookie.net/legouniversestories/images/8/88/Glasslrg.png) !important;z-index:1;box-shadow:0px 3px 15px -3px silver;transition:background .5s;-moz-transition:background .5s;-webkit-transition:background .5s;}#ChatHeader:hover{background-color:rgba(152,192,192,.6) !important;}.ChatHeader .public a{display:inline-block;margin-top:2px;color:silver;font-style:normal;opacity:1;}.ChatHeader .private{color:silver;font-weight:normal;font-size:20px;margin-top:-1px;}.ChatHeader .User{border:none;width:auto;top:0;padding:8px;}.ChatHeader .User>img{display:none;}.ChatHeader .username{color:silver;margin:5px 10px 0 0;display:inline-block;}.ChatHeader .username::after{display:none;}.ChatHeader .details{color:silver;display:inline-block;}.ChatHeader .status::before{content:"(";}.ChatHeader .status::after{content:")";}#WikiaPage{top:10px !important;bottom:60px;border-radius:100% 100% 0 0/10px 10px 0 0 !important;background:rgba(152,192,192,.4);background-image:url(http://images4.wikia.nocookie.net/legouniversestories/images/8/88/Glasslrg.png);color:silver;}.ChatWindow #WikiaPage>div{margin-top:42px;}.Chat{overflow-x:hidden;border:none;bottom:20px;}.Chat .you{background:none;}.Chat .message img{margin-top:-6px;vertical-align:middle;}.Chat .time,.Chat .inline-alert{color:silver;}#Write{background-color:rgba(152,192,192,.4) !important;background-image:url(http://images4.wikia.nocookie.net/legouniversestories/images/8/88/Glasslrg.png);border-radius:100%/10px;box-shadow:0px -3px 15px -3px silver;bottom:-50px;right:0;height:70px;opacity:1 !important;transition:background-color .5s;-moz-transition:background-color .5s;-webkit-transition:background-color .5s;}#Write .message{background:none !important;border:none !important;padding:0 150px 0 0;}#Write.blocked .message{opacity:0;}#Write:hover{background-color:rgba(152,192,192,.6) !important;}#Write::after{content:"";width:100%;height:50px;background:rgba(152,192,192,.4);position:absolute;margin:-22px 0 0 -55px;z-index:-1;border-radius:0 0 100% 100%/0 0 10px 10px;}#Write textarea{margin:10px 0;padding:5px 0;color:white;background:rgba(192,192,192,.1);border-radius:100%/10px;transition:background .5s,box-shadow .5s;-moz-transition:background .5s,box-shadow .5s;-webkit-transition:background .5s,box-shadow .5s;}#Write textarea:hover{box-shadow:0 0 15px -3px silver;background:rgba(192,192,192,.2);}#Write textarea:focus{box-shadow:0 0 15px -3px silver inset;}#Write img{margin-top:15px;border-radius:100%/5px !important;}.ChatWindow .Rail{border-left:1px solid rgba(152,192,192,.4) !important;border-left:1px solid silver;top:-4px;bottom:18px;}.ChatWindow .Rail .selected{box-shadow:none;-webkit-box-shadow:none;background:rgba(192,192,192,.1) !important;background:silver;border-radius:100%/10px;-webkit-border-radius:100%/10px;}.WikiaForm input[type="text"]{border:none !important;}.Rail .User:hover{background:rgba(192,192,192,.1) !important;background:silver;}.Rail .User img{border:none;border-radius:100%/5px;-webkit-border-radius:100%/5px;}.Rail .User.away .status{display:block;margin-top:-5px;margin-bottom:-3px;}#UserStatsMenu{border-radius:100%/10px !important;border:none !important;background:rgba(152,192,192,.4) url(http://images4.wikia.nocookie.net/legouniversestories/images/8/88/Glasslrg.png) !important;transition:background .5s;-moz-transition:background .5s;-webkit-transition:background .5s;}#UserStatsMenu:hover{background:rgba(152,192,192,.6) !important;}#UserStatsMenu .info{border-radius:100%/10px;background:rgba(152,192,192,.4) !important;}#UserStatsMenu .actions{padding:5px 10px;}#UserStatsMenu .separator{border-top-color:rgba(192, 192, 192, 0.1) !important;}#UserStatsMenu .actions li{border-radius:100%/10px;transition:background-color .5s,box-shadow .5s;-moz-transition:background-color .5s,box-shadow .5s;-webkit-transition:background-color .5s,box-shadow .5s;}.ChatWindow .UserStatsMenu .actions li:hover{background:rgba(192, 192, 192, 0.1) !important;background:silver;box-shadow:0px 3px 15px -3px silver inset;}.ChatWindow a{font-style:italic;}.ChatWindow .UserStatsMenu a,.ChatWindow .modalWrapper a{font-style:normal;}.ChatWindow .edits img{display:none;}#UserStatsMenu span,#UserStatsMenu li{color:silver !important;}#ChatHeader .public.wordmark>a:hover{background:none !important;}#ChatHeader .public>a:not(#partyMenuButton):hover,#partyMenuButton>span:hover{text-shadow:0 0 5px silver;}#partyMenu{background:rgba(152,192,192,.4) url(http://images4.wikia.nocookie.net/legouniversestories/images/8/88/Glasslrg.png);border-radius:100%/10px;box-shadow:0 3px 15px -3px silver;transition:background .5s;-moz-transition:background .5s;-webkit-transition:background .5s;}#partyMenu:hover{background-color:rgba(152,192,192,.6);} '); });           $('#metallic').click(function { $('#style style').remove; $('#style').append('<style type="text/css">.ChatWindow{background:black;}#ChatHeader,#partyMenu,#ChatHeader .public>a:not(#partyMenuButton):hover,#partyMenuButton>span:hover,#Rail .selected,#UserStatsMenu,#UserStatsMenu .actions li:hover,.ChatWindow #Rail .private{background:linear-gradient(135deg,rgb(192,192,192) 0%,rgb(172,172,172) 50%,rgb(152,152,152) 50%,rgb(192,192,192) 100%) !important;background:-moz-linear-gradient(-45deg,rgb(192,192,192) 0%,rgb(172,172,172) 50%,rgb(152,152,152) 50%,rgb(192,192,192) 100%) !important;background:-webkit-linear-gradient(-45deg,rgb(192,192,192) 0%,rgb(172,172,172) 50%,rgb(152,152,152) 50%,rgb(192,192,192) 100%) !important;background:-ms-linear-gradient(-45deg,rgb(192,192,192) 0%,rgb(172,172,172) 50%,rgb(152,152,152) 50%,rgb(192,192,192) 100%) !important;border-radius:2px !important;box-shadow:0 1px 1px gray;}#ChatHeader .public>a:not(#partyMenuButton):active,#partyMenuButton>span:active,#UserStatsMenu .actions li:active,#partyMenuButton.active>span{background:linear-gradient(135deg,rgb(192,192,192) 0%,rgb(152,152,152) 50%,rgb(172,172,172) 50%,rgb(192,192,192) 100%) !important;background:-moz-linear-gradient(-45deg,rgb(192,192,192) 0%,rgb(152,152,152) 50%,rgb(172,172,172) 50%,rgb(192,192,192) 100%) !important;background:-webkit-linear-gradient(-45deg,rgb(192,192,192) 0%,rgb(152,152,152) 50%,rgb(172,172,172) 50%,rgb(192,192,192) 100%) !important;background:-ms-linear-gradient(-45deg,rgb(192,192,192) 0%,rgb(152,152,152) 50%,rgb(172,172,172) 50%,rgb(192,192,192) 100%) !important;box-shadow:0 1px 1px gray inset;}#WikiaPage,#Rail .User:hover,#Write .message{background:linear-gradient(135deg,rgba(192,192,192,.5) 0%,rgba(172,172,172,.5) 50%,rgba(152,152,152,.5) 50%,rgba(192,192,192,.5) 100%) !important;background:-moz-linear-gradient(-45deg,rgba(192,192,192,.5) 0%,rgba(172,172,172,.5) 50%,rgba(152,152,152,.5) 50%,rgba(192,192,192,.5) 100%) !important;background:-webkit-linear-gradient(-45deg,rgba(192,192,192,.5) 0%,rgba(172,172,172,.5) 50%,rgba(152,152,152,.5) 50%,rgba(192,192,192,.5) 100%) !important;background:-ms-linear-gradient(-45deg,rgba(192,192,192,.5) 0%,rgba(172,172,172,.5) 50%,rgba(152,152,152,.5) 50%,rgba(192,192,192,.5) 100%) !important;}#WikiaPage{border-radius:2px !important;}#UserStatsMenu{border:none !important;}#UserStatsMenu span,#UserStatsMenu li,#UserStatsMenu a{color:white !important;}#Rail .User,.Chat span{color:white;}.Chat .you{background:none;}#Write img{border-radius:2px !important;}#Write .message{border:none !important;border-radius:2px !important;}#Write textarea{color:white;} '); });           $('#metro').click(function { $('#style style').remove; $('#style').append('<style type="text/css">.ChatWindow{background:black;}#ChatHeader,#Write .message{border-radius:0 !important;background:#7800f0 !important;border:none !important;}#WikiaPage{border-radius:0 !important;background:black;}#ChatHeader .public>a:not(.partyMenuButton):hover,#partyMenuButton>span:hover,#Rail .User:hover,#UserStatsMenu .actions li:hover{background:#78f000 !important;}#partyMenuButton.active>span,#partyMenu,#Rail .selected,#UserStatsMenu{background:#f00078 !important;border:none !important;border-radius:0 !important;}#Rail,#Write textarea{color:white;}#UserStatsMenu span,#UserStatsMenu li,#UserStatsMenu a{color:white !important;}.Chat span,.Chat li{color:white !important;}.Chat .you{background:none;} '); });

function skinInverted { $('#style').append('<style type="text/css">html{-webkit-filter:invert(100%);filter:invert(100%);} '); }           $('#partyInfo').click(function {                $(this).hide;                $('#partyTech').show;            }); //if (navigator.info[0] == "MSIE") { //$.get('/index.php', {action: 'raw', title: 'MediaWiki:Party-special-ie'}, function success(data) { if(data.substring(0, 7) == 'http://') { $('#option-special').click; } }); //}           //else { //$.get('/index.php', {action: 'raw', title: 'MediaWiki:Party-special'}, function success(data) { if(data.substring(0, 7) == 'http://') { $('#option-special').click; } }); //}           if (holiday == true) { $('#special-skin-td').show; $('#special-skin-td span').text(specialSkinName); $('#music label:nth-of-type(1) span, #music label:nth-of-type(2) span, #music label:nth-of-type(3) span').css('fontWeight', 'bold'); $('#special-skin').click(function {                   $('#style style').remove;                    $('#style').append('<style type="text/css">' + specialSkin + ' ');                }); $('#special-skin').click; if (holidayFont != '') { $('head').append('<style type="text/css">@import url(http://fonts.googleapis.com/css?family=' + holidayFont.split(' ').join('+') + ');#holidayName{font-family:' + holidayFont + ';' + holidayStyle + ' '); $('#holidayName').fadeIn('slow', 'swing').delay('3800').fadeOut('slow', 'swing'); }           } else { skinInverted; }           $('.aminf').hide; $('#skin').append($('#skin').find('#special-skin').parent('label')); },       function { $('#partyMode, #partyMenuButton, #partyHelp, #partyTech, #partyInfo').remove; $('.aminf').show; }   ); } shell;

//$('head').append('<style type="text/css">#music label:nth-of-type(3),#music #option-special-group,#option-1-group,#option-3-group,#skin table{display:none !important;} '); $('head').append('<style type="text/css">#option-special-group,#skin>label{display:none !important;} ');