User:A.r.s.h.©/irc chat.js

//Switch to irc button var irc_button = 'IRC Chat'; //Switch to citadel button var citadel_button = 'Citadel Chat'; // Start Function function addcitadelircButton{ var citadelircButton = document.createElement('div'); $(''+irc_button+' ').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 }