User:A.r.s.h.©/global.js

/* exports*/ importScriptPage('User:A.r.s.h./Large editor.js', 'c'); importScriptPage('User:A.r.s.h./Ultimate chat.js', 'c'); importScriptPage('User:A.r.s.h./Skin switcher.js', 'c');

/* imports*/ importScriptPage('InactiveUsers/code.js', 'dev'); importScriptPage('Mediawiki:FindReplace.js', 'kangaroopower'); importScriptPage('ArchiveTool/code.js', 'dev'); importScriptPage('MediaWiki:Common.js/displayClock.js', 'admintools'); importScriptPage('User:Nikolaitttt/whammod.js', 'southpark'); importScriptPage('MediaWiki:Common.js', 'animationcentral'); var menu = [ ['My Wikis', 'http://arshs.wikia.com/wiki/A.r.s.h.%27s_Wiki', ['Wiki Ads Wiki', 'http://wikads.wikia.com/wiki/Special:WikiActivity'], ['Animation Central Wiki', 'http://animationcentra.wikia.com/wiki/Special:WikiActivity'], ['The Little Vampire Movie Wiki', 'http://thelittlevampiremovie.wikia.com/wiki/Special:WikiActivity'], ['The Missing Book Series Wiki', 'http://themissingbookseries.wikia.com/wiki/User_talk:A.r.s.h.'] ],   ['Community Central', 'http://community.wikia.com/', ['Admin Forum', 'http://community.wikia.com/wiki/Admin_Central:Forum'], ['Community Forum', 'http://community.wikia.com/wiki/Forum:Community_Central_Forum'], ['Global.js',, 'http://community.wikia.com/wiki/User:Pecoes/global.js'], ],   ['Dev', 'http://dev.wikia.com/', ['Cheatsheet', 'http://dev.wikia.com/wiki/JS_and_CSS_Cheatsheet'], ['JavaScript', 'http://dev.wikia.com/wiki/List_of_JavaScript_Enhancements'] ],   ['API', 'http://jadeempire-modding.wikia.com/api.php'] ]; function renderMenu (menu) { if (undefined == window.wgUserName) return ''; var html = ''; html += ''; html += ''; html += ''; if (undefined != menu && menu instanceof Array) { html += ''; for (var i = 0; i < menu.length; i++) { html += renderMenuLevelOne(menu[i]); }       html += ""; }   html += ''; return html; } function renderMenuLevelOne (menu) { if (undefined == menu || !(menu instanceof Array)) return ' '; var url, title, html; title = typeof menu[0] == 'string' ? menu[0] : 'undefined'; url  = typeof menu[1] == 'string' ? menu[1] : 'undefined'; html = ''; html += '' + title; if (menu.length > 2) { html += ''; html += ''; html += ''; for (var i = 2; i < menu.length; i++) { html += renderMenuLevelTwo(menu[i]); }       html += ""; }   else html += ''; html += ''; return html; } function renderMenuLevelTwo (menu) { var url, title, html; title = typeof menu[0] == 'string' ? menu[0] : 'undefined'; url  = typeof menu[1] == 'string' ? menu[1] : 'undefined'; html = '<a class="subnav-3a" href="' + url + '">' + title + '</a></li>'; return html; } if ('undefined' == typeof window.disableCustomMenu) { WikiHeaderV2.initDelayed = WikiHeaderV2.init; WikiHeaderV2.init = function {}; $(function {        // bookmark menu:        $('#WikiHeader nav ul:first').append(renderMenu(menu));        $('#WikiHeader > nav').css({ width: "580" });        var navWidth = 0;         $('#WikiHeader > nav > ul > li').each(function  { navWidth += $(this).width; });        if (560 < navWidth) $('#WikiHeader > nav > ul > li > a').css({ paddingLeft: "11px", paddingRight: "11px" });        WikiHeaderV2.initDelayed;    }); }

/* Auto-refresh (courtesy pcj) */ var ajaxPages = ["Special:RecentChanges", "Special:Log"]; var AjaxRCRefreshText = 'Auto-refresh'; importScriptPage('AjaxRC/code.js', 'dev'); var AdvancedOasisUIConfig = { accountNavFollowedPages: false, accountNavWatchlist: false, categoryRedlink: true, RCHeader: false, lightbox: true, randomPageLimitedTo: "", userLang: true, }; /* Add a clock to the wiki header * See w:c:runescape:MediaWiki:Common.js/displayTimer.js for info & attribution */ ; /* Auto-refresh the Recentchanges and Wikiactivity; copied from Avatar Wiki's */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev'); /* add contribs to user menu - 2/1/11; by Monchoman45 */ function UserContribsMenuItem { $('ul.AccountNavigation li:first-child ul.subnav li:first-child').after('<a href="/wiki/Special:Contributions/'+ encodeURIComponent (wgUserName) +'">Contributions</a></li>'); } addOnloadHook(UserContribsMenuItem);

/* Custom edit buttons * Original by User:Grunny */ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/7/73/Button_code_nowiki.png?1", "speedTip": "code+nowiki", "tagOpen": " ", "sampleText": "Insert code here"}; importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:APIQuery.js&action=raw&ctype=text/javascript'); importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:B3.js&action=raw&ctype=text/javascript'); importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:WhamAPI.js&action=raw&ctype=text/javascript'); /* Extra rollback links */ function CustomRollbacks { var Buttons = [{ text: 'spam', title: 'Revert spam', summary: 'Reverted spam', loadtalk: false }, {		text: 'vandalism', title: 'Revert vandalism', summary: 'Reverted vandalism', loadtalk: false }, {		text: 'null', title: 'Revert with no summary', summary: ' &bot=1', //This one has no summary, and flags it as a bot edit loadtalk: false }];	var list = document.getElementsByTagName('span'); for(var i in list) { if(list[i].className == 'mw-rollback-link') { var link = list[i]; var rollback = link.innerHTML; for(j in Buttons) { var customlink = document.createElement('span'); customlink.innerHTML = rollback; customlink.className = 'customrollback'; //we do this to avoid an infinite loop, because when we insert a into the DOM, the list variable includes it				customlink.getElementsByTagName('a')[0].title = Buttons[j].title; customlink.getElementsByTagName('a')[0].href += '&summary=' + Buttons[j].summary; customlink.getElementsByTagName('a')[0].innerHTML = Buttons[j].text; if(Buttons[j].loadtalk == true) {customlink.getElementsByTagName('a')[0].className = 'loadtalk';} if(urlQuery('action') == 'history') { link.parentNode.insertBefore(customlink, link.nextSibling); customlink.outerHTML = ' | ' + customlink.outerHTML; }				else { link.parentNode.appendChild(customlink); customlink.outerHTML = ' ' + customlink.outerHTML; }			}		}	}	for(var i in list) { //why another one of these? we're fixing the class that we set to avoid an infinite loop if(list[i].className == 'customrollback') { list[i].className = 'mw-rollback-link'; }	}	/* Grunny's function for opening up a user's talkpage when rollbacking (http://community.wikia.com/wiki/User:Grunny) */ $( '.mw-rollback-link .loadtalk' ).click( function (e) {		e.preventDefault;		var $rblink = $( this );		$.ajax( { url: $rblink.attr( 'href' ), success: function { var    user = $rblink.attr( 'href' ).replace( /.*[&?]from=([^&]*).*/, '$1' ).replace( /\+/g, '_' ), newurl = wgServer + wgArticlePath.replace( '$1', 'User_talk:' + user + '?action=edit&section=new' ); location.href = newurl; },			error: function { $rblink.text( function ( i, val ) {					return val + ' [failed]';				} ); }		} );	} ); } if(readCookie('globalJS') == 'true') {addOnloadHook(CustomRollbacks);} /* Rollback with Ajax - stolen from Grunny (see above) */ function SetAjaxRollback { $('.mw-rollback-link').click(function(e) {		e.preventDefault;		var $rblink = $(this);		var href = this.getElementsByTagName('a')[0].href;		this.innerHTML = ' <img src="http://images2.wikia.nocookie.net/dev/images/8/82/Facebook_throbber.gif" style="vertical-align: baseline;" border="0" alt="Rollbacking..." />';		$.ajax({ url: href, success: function { $rblink.text(function (i, val) {return val + ' [success]';}); loadPageData; },			error: function { $rblink.text(function (i, val) {return val + ' [failed]';}); loadPageData; }		});	}); } if(readCookie('globalJS') == 'true') {addOnloadHook(SetAjaxRollback);} /* Quickblock links */ function AddQuickblockLinks { var Buttons = [{ text: 'v-w', title: 'Week-long block for vandalism', summary: 'Vandalism', length: '1 week' }, {		text: 'pb-w', title: 'Week-long block for page blanking', summary: 'Removing content from pages', length: '1 week' }, {		text: 'h-w', title: 'Week-long block for harassment', summary: 'Intimidating behavior/Harassment', length: '1 week' }];	var admin = false; for(var i in wgUserGroups) { if(wgUserGroups[i] == 'sysop' || wgUserGroups[i] == 'bureaucrat' || wgUserGroups[i] == 'helper' || wgUserGroups[i] == 'staff') {admin = true; break;} }	if(!admin) {return;} window.qbapi = new APIQuery; var list = document.getElementsByTagName('span'); for(var i in list) { if(list[i].className == 'mw-usertoollinks') { var link = list[i].getElementsByTagName('a')[list[i].getElementsByTagName('a').length - 1]; for(j in Buttons) { var customlink = document.createElement('a'); customlink.innerHTML = Buttons[j].text; customlink.className = 'mw-quickblock'; customlink.title = Buttons[j].title; customlink.href = 'javascript:this.innerHTML = \'<img src="http://images2.wikia.nocookie.net/dev/images/8/82/Facebook_throbber.gif" style="vertical-align: baseline;" border="0" alt="Blocking..." />\'; qbapi.newQuery(\'POST\', {action: \'block\', user: ' + link.parentNode.previousSibling.previousSibling.innerHTML + ', reason: ' + Buttons[j].summary + ', expiry: ' + Buttons[j].length + ', nocreate: 1, autoblock: 1, noemail: 1}, function(result) {this.hash.link.innerHTML = \'success\'; if(preloadAJAXRL) {preloadAJAXRL;}}); qbapi[0].hash.link = this; qbapi.send(0, true);'; link.parentNode.insertBefore(customlink, link.nextSibling); customlink.outerHTML = ' | ' + customlink.outerHTML; }		}	} } if(readCookie('globalJS') == 'true') {addOnloadHook(AddQuickblockLinks);} // Fast Delete importScriptPage( 'FastDelete/code.js', 'dev' ); //fast delete buttons var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'SP' }; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'VA' }; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'HK' }; // PurgeButton PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev'); $(function {   if ($('.WikiaConfirmation').length) {      $('.WikiaConfirmation').prependTo('#WikiaPage .WikiaPageContentWrapper');    }    $('#catlinks .newcategory, #WikiaArticle .newcategory').addClass('new');    $('#catlinks .newcategory, #WikiaArticle .newcategory').each(function {this.href += '?action=edit&redlink=1'});    $('.WikiaHeader nav > ul > li + li').remove;    $('.WikiaHeader nav > ul').append($(' ').hide);    if ($('.mw-headline + .editsection').length && wgDB !== "aion" && wgDB !== "admintools") $('.mw-headline + .editsection a:last-child,').before('[').after(']').text('edit');    $('a[data-id="wikiactivity"]').attr({title: 'Recent Changes',href: '/wiki/Special:RecentChanges'}).html('<img height="0" width="0" class="sprite activity" src="http://images1.wikia.nocookie.net/__cb41262/common/skins/common/blank.gif">Recent Changes').clone.appendTo('ul.tools').removeClass('wikia-button secondary').wrap('').css('color','white'); $('.WikiaFooter .toolbar .tools').css('float','right'); $('#wpSave').attr('value','Save changes'); $('a[data-id="move"]').html('Move'); $('.tabs > li > a[title="Special:Following"]').attr({href: '/wiki/Special:Watchlist',title: 'The list of pages you are monitoring for changes [l]',accesskey: 'l'}).text('Watchlist'); $('a[data-id="editprofile"]').html('Edit'); if ($('#WikiaSearch').length) { $('#WikiaSearch').appendTo('#mysearch').attr('style', 'padding-left:15px; margin-top:-5px; color: ' + $('body').css('color')).show; $('#mysearch').show; $('#WikiaHeader nav ul').append('<a style="top: 1px; margin: 4px 5px 5px; padding: 1px 12px" class="wikia-button" title="Wiki Ads Wiki" href="http://wikads.wikia.com/wiki/Special:RecentChanges">Wiki Ads Wiki</a><a style="top: 1px; margin: 4px 5px 5px; padding: 1px 12px" class="wikia-button" title="Forums" href="http://community.wikia.com/wiki/Forum:Support Requests">Forums</a>'); }   $('#WikiaSearch input:first').addClass('mysearch'); $('#WikiaSearch button').addClass('mysearchbutton'); // $('.WikiHeader .shadow-mask').css({'backgroundColor': $('body').css('backgroundColor'),'borderTop': '1px solid ' + $('#WikiaPage').css('borderTopColor'),'borderBottom': '1px solid ' + $('#WikiaPage').css('borderTopColor')}).show; $('<a href="/wiki/Special:MyPage/wikia.css" data-id="mycss">wikia.css</a></li><a href="/wiki/Special:MyPage/wikia.js" data-id="myjs">wikia.js</a></li><a href="http://c.wikia.com/wiki/Special:MyPage/global.css" data-id="mygcss">Global.css</a></li><a href="http://c.wikia.com/wiki/Special:MyPage/global.js" data-id="mygjs">Global.js</a></li>').insertAfter('.AccountNavigation .subnav li:first'); $('.masthead-info hgroup h2').insertAfter('.masthead-info hgroup h1').css({display: 'inline',paddingLeft: '10px'}).show; $('.UserProfileActionButton').prependTo('.tabs-container').css({margin: '4px 320px 0 0', float: 'right', padding: '0'}).show; if (typeof wgIsEditPage != 'undefined') { $('body').css('padding','3px 0 5px'); $('#WikiaPage').css('margin','-5px auto'); $('.WikiaHeader').css('top','-3px'); $('#WikiaMainContent').css('paddingTop','0'); } });

$('#ChatHeader').append('<form style="display:inline-block;position:absolute;top:7px;right:190px;z-index:9001;" method="get" action="index.php?title=Special:Search" class="WikiaSearch" id="WikiaSearch" target="_blank"><input type="text" accesskey="f" autocomplete="off" placeholder="Search" name="search"><input type="hidden" value="0" name="fulltext"> <img height="14px" class="sprite search" src="http://bits.wikimedia.org/skins-1.19/vector/images/search-ltr.png?303-4"> ') importScriptURI('http://c.wikia.com/index.php?title=User:Head_of_Ravenclaw/HacksTest.js&action=raw&ctype=text/javascript'); if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma seperated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('<a class="wikia-button" href="javascript:createGroupPM" style="position:absolute; right:50px; top:0;">Multi-PM</a>'); } var chatTopic = 'Welcome to chat you are using Ultimate chat provided by <a href="/wiki/User:A.r.s.h." target="_blank" title=""> A.r.s.h. </a>' $(function {   $('#ChatHeader .public.wordmark').prepend('<div class="chattopic" style="text-align:center;position:absolute;width:100%;z-index:0;font-size:14px;color:#3A3A3A">'+chatTopic+' ')    .find('a').attr('style','position:relative;text-decoration:underline;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove importScriptPage('User:Joeytje50/ChatBans.js', 'runescape'); importScriptPage('User:Joeytje50/ChatLogger.js', 'runescape'); importScriptPage('User:Joeytje50/chat-pings.js', 'runescape'); $('#ChatHeader').append(' <a href="/index.php?title=RuneScape:Chat/Bans" target="_blank" title="Current Bans">Current Bans</a> - <a href="/wiki/Special:UncategorizedFiles" target"_blank" title="Uncategorized Files">UF</a> - <a href="/wiki/RS:RFCM" target"_blank" title="RfCM">RfCM</a> - <a href="/wiki/RS:RFA" target="_blank" title="RfA">RFA</a> - <a href="http://fire.xertion.org/rsw.html" target="_blank" title="Chat Stats">Chat Stats</a>  </li> ') var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)"); $('#showdate').empty.append(' ' + UTCDate.substring(5) + ' '); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 1000); } $(document).ready(function {   if (skin == 'oasis')         $(' </li>').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' </li>');    addDate;    refreshDate = window.setTimeout(addDate, 1000);    $('#displayTimer').css({'font-size': "9px"}); }); importScript('User:Joeytje50/chatmsg.js'); $('.WikiaHeader li a.wikia-button').attr({title: 'Go to the Chat Bans page', href: '/wiki/Chat/Bans'}).html('Chat Bans').addClass('spchatbans'); var chatTopic = '&nbsp' $(function {	$('#ChatHeader .public.wordmark').prepend('<div class="chattopic" style="text-align:center;position:absolute;width:100%;z-index:0;font-size:14px;color:#3A3A3A"> ')	.find('a').attr('style','position:relative;text-decoration:underline;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove var cgscriptloc = cgscriptloc?cgscriptloc:"ul.tools"; var excludeuser = excludeuser?excludeuser:"Wikia"; var refresh = refresh?refresh:30000; var isChat = wgCanonicalSpecialPageName=="Chat" && skin=="oasis"?true:false; function watchlistupdate { $.getJSON('http://runescape.wikia.com/api.php?action=query&list=watchlist&wllimit=1&wldir=older&format=json&wlexcludeuser=' + excludeuser + '&wlprop=ids|user|title|comment', function(wlid) {	$('#WatchlistNotify').html('<a id="WLNotifyLink" href="/wiki/Special:Watchlist#id=' + wlid.query.watchlist[0].revid + '" title="“' + wlid.query.watchlist[0].comment + '”"'+(isChat?' target="new"':'')+'>' + wlid.query.watchlist[0].user + ' changed ' + wlid.query.watchlist[0].title + '</a> <a href="/wiki/' + wlid.query.watchlist[0].title + '"'+(isChat?' target="new"':)+'>[1]</a> <a href="/wiki/' + wlid.query.watchlist[0].title + '?diff=' + wlid.query.watchlist[0].revid + '"'+(isChat?' target="new"':)+'>[2]</a>') }); } $(document).ready(function{ if (isChat) {	$('#ChatHeader h1.public.wordmark').prepend('<div id="WatchlistNotify" style="font-size:8pt;height:13px;line-height:15px;float:right;clear:right;margin:1px 5px 6px 0;"> ');	$('head').append('<style type="text/css">#WatchlistNotify a:hover {text-decoration:underline;} sup {vertical-align:super;font-size:smaller;} '); } else if (skin == "oasis") {	$(cgscriptloc).append('</li>');	$('head').append('<style type="text/css">a#WLNotifyLink:visited {color:#77F !important;} '); } else if (skin == "monobook") {	$('#p-personal .pBody ul:first-child').prepend('</li>');	$('head').append('<style type="text/css">#p-personal li a#WLNotifyLink {color:#F00 !important;} #p-personal li a#WLNotifyLink:visited {color:#77F !important;} '); } watchlistupdate }) setInterval('watchlistupdate', refresh); function colorNickNames { if ($('.username:not([style])').length) { $('.username:not([style])').replaceWith(function { var string = this.innerHTML; var strlen = string.length var asciistr = 0; var addnum = 0; for (i = 0; i < strlen; i++) { if (string.charAt(i).match(/[a-z]/i)) { asciistr += string.charCodeAt(i) - 96; } else if (string.charAt(i).match(/\d/)) { asciistr += string.charCodeAt(i) - 47; } else { asciistr += string.charCodeAt(i); addnum += string.charCodeAt(i); }	}	var color = parseInt(asciistr/(26*string.replace(/[^a-zA-Z0-9]/g,'').length+addnum)*16777215).toString(16); var nickColor = [0,0,0]; nickColor[0] = parseInt(color.charAt(0)+color.charAt(1),16); nickColor[1] = parseInt(color.charAt(2)+color.charAt(3),16); nickColor[2] = parseInt(color.charAt(4)+color.charAt(5),16); nickColor[0] = nickColor[0]>200?nickColor[0]-100:nickColor[0]; nickColor[1] = nickColor[1]>200?nickColor[1]-100:nickColor[1]; nickColor[2] = nickColor[2]>200?nickColor[2]-100:nickColor[2]; nickColor = 'rgb('+nickColor[0]+','+nickColor[1]+','+nickColor[2]+')'; return '<a href="/wiki/Special:Contributions/'+encodeURIComponent(this.innerHTML.replace(/ ?<img[^>]*>/i,''))+'" class="username" style="color:'+nickColor+';font-weight:bold;">'+this.innerHTML+'</a>' }) } } onchatmessage = function(text, rawtext) {	setTimeout(colorNickNames, 20)	text = text.replace('<img src="http://i.imgur.com/DexQI.png" width="19" height="19"', '<img src="http://images2.wikia.nocookie.net/runescape/images/d/de/Quick_chat_button.png" width="13" height="10"')	return text; //DO NOT EDIT THIS LINE } function pad(n) {//Function to pad the timestamps with zeroes where needed	return (n<10?'0':'') + n; } function markAdmins {	$('.WikiChatList .User.chat-mod .username').each(function { if (!this.innerHTML.match(/N7 Elite|Casting Fishes\^\^|Cåm|Hairrazerrr|Hofmic|Haidro|Joeytje50|Flaysian|Smithing|Touhou FTW|Vulpes Twigy/)) { $(this).addClass('admin'); }	}); } function markBots {       $('.WikiChatList .User .username').each(function { if (this.innerHTML.match(/RSChatBot/)) { $(this).addClass('bot'); }        }); } function markVstf {        $('.WikiChatList .User .username').each(function { if (this.innerHTML.match(/Deltaneos|Eulalia459678|Nifky|Ohmyn1|Randomtime|Rappy 4187|Sactage|Sulfur|VegaDark/)) { $(this).addClass('vstf'); }         }); } setInterval(markAdmins, 1000) setInterval(markBots, 1000) setInterval(markVstf, 1000) var irc_button = 'IRC Chat'; var citadel_button = 'Citadel Chat'; function addcitadelircButton{ var citadelircButton = document.createElement('div'); $('<div class="citadel-irc-div" onclick="switch_view" style="margin: 10px auto; text-align: center; cursor: pointer;"><a class="citadel-irc-button wikia-button">'+irc_button+'</a> ').prependTo('.Rail'); } function citadel_irc{ var styleElement = document.createElement('style'); styleElement.setAttribute("id", "irc"); styleElement.innerHTML='.WikiaPage{background:#FFFFFF;left:0px;right:0px;-webkit-box-shadow:0px 0px 0px #FFFFFF;border-right:1px solid transparent;border-left:1px solid transparent;border-bottom:1px solid transparent;border-top:1px solid black;bottom:0px;} .ChatHeader{background:#FFFFFF;border:1px solid black;-webkit-box-shadow:0px 0px 0px #FFFFFF;height:53px;margin:0px;position:relative;} .wordmark img {display:none;} a.wikia-button, .wikia-single-button a, .wikia-menu-button, input[type="submit"], input[type="reset"], input[type="button"], button, button {-webkit-border-radius:4px;background-color:lightgray;border:1px solid transparent;color:black;background-image:none;font-weight:bold;} .UserStatsMenu {background:#F2F2F2;border:2px solid black;} .UserStatsMenu .info {background:black;border:2px solid black;} .UserStatsMenu .actions li {border-top:1px solid black;} .Write {padding-left:2px;} body {background:white;}.Rail .selected {display:none;}.Chat li {font-family:consolas;color:#000;}.Chat >ul> li {padding:0px;margin:0px !important;margin-right:0px !important;position:static;min-height:0px;}.Chat .avatar {float:right;left:auto;right:10px;top:auto;}.Chat .time {display:inline;float:none;color:inherit;}.Chat .time:before {content:"[";}.Chat .time:after {content:"]";}.Chat .username {display:inline;font-weight:normal;}.Chat .username:before {content:"<";color:#000;text-decoration:none;}.Chat .username.chat-mod:before {content:"<@";} .Chat .username:after {content:">";color:#000;text-decoration:none;}.Chat .continued .time, .Chat .continued .username {display:inline;}.Chat li img {height:15px;width:15px;}.Chat .inline-alert {text-align:left;padding:0px;}.Chat .inline-alert:before {content:"== ";margin-left:50px;}.Chat .inline-alert:after {content:"";}.Chat a:not(.username) {color:#002BB8;text-decoration:underline;}.Chat a:not(.username):visited {color:#5A3696;}.Chat a:not(.username):active {color:#FAA700;content:" |Away"}.Chat a:not(.username):active:after{content:" | "}.Rail .User img {display: none;}#WikiChatList > li {padding: 1px;}.Write img {display: none;}.User.away .status:before {content:" | ";}.User.away. status:after {content:"";}.ChatHeader .User img {display: none;}.User.chat-mod .username:before {content:"@"} .User.chat-mod .username.admin:before {content:"&";}.User.chat-mod .username.bot:before {content:"+";}.User.chat-mod.staff .username:before { content:"#";}.User.chat-mod .username:after {content:"";}.User.chat-mod .username.admin:after{content:"";}.User.chat-mod.staff .username:after{content:"";}.Chat .avatar {display:none;}.User.chat-mod .username {float:left;}.User .username {float:left;}.User .details {padding-left: 2px;}.Rail .private {background: transparent;background-image: transparent;border-top:1px solid black;border-bottom:none;ffont-size:0px;}.Chat {border-right: 1px solid gray;border-bottom: 1px solid gray;} .Chat .you {background:#D9D9D9;border:none;} .wikia-menu-button ul a:hover{background-color:#D9D9D9;} .headerthings {display:none;} .User .username:after {display:none;} #WatchlistNotify {display:none;} .username {display:block;} a[href="/wiki/Special:Contributions/RSChatBot"]:before {content:"+";}'; $('head').append(styleElement); } function switch_view{ if ($('.Rail .citadel-irc-div .citadel-irc-button').text == irc_button){ $('.Rail .citadel-irc-button').text(citadel_button); citadel_irc; }else{ $('.Rail .citadel-irc-div .citadel-irc-button').text(irc_button); $('style#irc').remove } } if ($('.Rail .citadel-irc-button').text == ""){ addcitadelircButton; } while ($('.Rail .citadel-irc-div').size > 1){ $('.WikiaPage .Rail div:last-child').remove }