MediaWiki:Chat.js

// ChatAnnouncements window.chatAnnouncementsAnonymous = true; // ChatBlockButton window.chatBlockReason = "Sockpuppet"; window.chatBlockExpiry = "infinite"; // ChatTags window.chatags = { images: true, videos: true }; // Switch to IRC button var irc_button = 'Go to IRC Chat'; // Switch to citadel button var citadel_button = 'Switch to 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='.Rail .selected {display:none;}.Chat li {font-family:consolas;color:#000;}.Chat >ul> li {padding:0px;margin:0px !important;margin-right:20px !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.staff .username:before { content:"+";}.User.chat-mod .username: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;}'; $('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; } var loadedTester = setInterval(function {  if(typeof mainRoom !== "undefined") {       importScriptPage("MediaWiki:JacobsLadderSuite.js","d97"); // Import the API       setTimeout(function { importScriptPage("MediaWiki:TitleNotifications.js","d97"); },500);      clearInterval(loadedTester);   } },100); // Imports importArticles({   type: 'script',    articles: [        'u:dev:!ban/code.js',        'u:dev:!kick/code.js',        'u:dev:!mods/code.js',        'u:dev:ChatAnnouncements/code.js',        'u:dev:ChatAwayButton/code.js',        'u:dev:ChatBlockButton/code.2.js',        'u:dev:ChatLinkPreview.js',        'u:dev:ChatSyntaxHighlight.js',        'u:dev:ChatUserPageButton.js',         'u:dev:EmoticonsWindow/code.js',        'u:dev:ExtendedPrivateMessaging/code.js',        'u:dev:FixChatEscaping.js',        'u:dev:FixChatWhitespace.js',        'u:dev:IsTyping.js',        'u:dev:NewMessageCount.js',        'u:dev:Pings.js',        'u:dev:PrivateMessageAlert/code.js',        'u:dev:Tabinsert.js',        'u:kocka:CustomUndoLink.js',        'u:shining-armor:ChatTags/code.js',        'u:electroboom:ChatTagsLink.js',    ] });