Board Thread:Support Requests - Designing Your Wiki/@comment-5917694-20140125194543

I followed what the the wikia js instructions said... I added this in Chat-welcome-message

  Then I added the rest in Chat.js  *Courtesy of the Runescape Wiki*/ //Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking.var chatTopic = 'Welcome to the World Meeting! Go over the the chat rules here or get out.'  $(function { $('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ') .find('a').attr('style','position:relative;text-decoration:underline;')})$('#ChatHeader .public.wordmark div:not(:first-child)').remove  /*Tab Insert*/importScriptPage('User:Joeytje50/tabinsert.js','runescape') //Everything from this point down was taken from the My Little Pony Wiki. //Clean everything function addClearChatText{   if ($('.clearChatText').length <= 0) {      var clearChatText = document.createElement('span');      $('Clear chat ').prependTo('.Rail');   }} function clearChat{   $('.Chat li').remove;} window.onload=addClearChatText; //END Clear chat button //Switch to night buttonvar night_button = 'Default chat theme'; //Switch to day buttonvar day_button = '2p Hetalia Chat';  ////Color scheme for DAY Chat//  //Link color    var linkColorDay = '#FFFFFF';   //All text Color    var textColorDay = '#f9e747';   //Self text background color    var selfTextColorDay = '#9b0000';   //Chat background color    var backgroundColorDay = '#000000';   //Chat foreground color    var foregroundColorDay = '#c10000';   //User stats foreground color    var userStatsColorDay = '#9b0000'; //END DAY Chat color scheme ////Color scheme for 2p!Hetalia Chat//  //Link color    var linkColor = '#FF0000';   //All text Color    var textColor = '#62DE72';   //Self text background color    var selfTextColor = '#AD0909';   //Chat background color    var backgroundColor = '#08733C';   //Chat foreground color    var foregroundColor = '#D14747';   //User stats foreground color    var userStatsColor = '#25B82A'; //END NIGHT Chat color scheme //Day and night color schemes//Written by Foodbandlt function addDayStyle{var styleElementDay = document.createElement('style'); styleElementDay.setAttribute("id", "day");styleElementDay.innerHTML='body{}.username, .message, div.chattopic, .info .edits, .UserStatsMenu .info .since, #ChatHeader h1.private, .Write [name="message"]{color: '+textColorDay+';}.WikiaPage, .UserStatsMenu, .ChatHeader, .Write [name="message"]{}.Chat .you{background: '+selfTextColorDay+';}a{color: '+linkColorDay+';}.UserStatsMenu .info{}';$('head').append(styleElementDay);}  function addNightStyle{var styleElement = document.createElement('style'); styleElement.setAttribute("id", "night");styleElement.innerHTML='body{}.username, .message, div.chattopic, .info .edits, .UserStatsMenu .info .since, #ChatHeader h1.private, .Write [name="message"]{color: '+textColor+';}.WikiaPage, .UserStatsMenu, .ChatHeader, .Write [name="message"]{}.Chat .you{background: '+selfTextColor+';}a{color: '+linkColor+';}.UserStatsMenu .info{}';$('head').append(styleElement);}   function addDayNightButton{ $(''+night_button+' ').prependTo('.Rail');if ($('style#night').size < 1 && $('style#nightUser').size < 1){addDayStyle;}} function day_night(which){if (which == "night"){$('style#day').remove;$('.Rail .day-night-div .day-night-button').text(day_button); addNightStyle; }else{$('style#night').remove;$('.Rail .day-night-div .day-night-button').text(night_button); addDayStyle;}}  function switch_view{if ($('.Rail .day-night-div .day-night-button').text == night_button){day_night("night");}else{day_night("day");}}  if ($('.Rail .day-night-button').text == ""){addDayNightButton;} while ($('.Rail .day-night-div').size > 1){$('.WikiaPage .Rail div:last-child').remove}  And I added this in Load.js  var b=document.createElement('script');b.innerHTML='\nfunction importScript(b){var a=wgScript+"?title="+encodeURIComponent(b.replace(/ /g,"_")).replace(/%2F/ig,"/").replace(/%3A/ig,":")+"&action=raw&ctype=text/javascript";return importScriptURI(a)}\nfunction importScriptURI(a){var b=document.createElement("script");b.setAttribute("src",a);b.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(b);return b}\nfunction importScriptPage(b,d){var a="/index.php?title="+encodeURIComponent(b.replace(/ /g,"_")).replace("%2F","/").replace("%3A",":")+"&action=raw&ctype=text/javascript";if(typeof d=="string"){if(d.indexOf("://")==-1){a="http://"+d+".wikia.com"+a}else{a=d+a}}return importScriptURI(a)}\nfunction importStylesheet(a){return importStylesheetURI(wgScript+"?action=raw&ctype=text/css&title="+encodeURIComponent(a.replace(/ /g,"_")))}\nfunction importStylesheetURI(b,d){var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=b;if(d){a.media=d}document.getElementsByTagName("head")[0].appendChild(a);return a}\nfunction importStylesheetPage(b,d){var a="/index.php?title="+encodeURIComponent(b.replace(/ /g,"_")).replace("%2F","/").replace("%3A",":")+"&action=raw&ctype=text/css";if(typeof d=="string"){if(d.indexOf("://")==-1){a="http://"+d+".wikia.com"+a}else{a=d+a}}return importStylesheetURI(a)}\nfunction addOnloadHook(func) {$(func);}\n';document.getElementsByTagName('head')[0].appendChild(b);if (wgPageName == "Special:Chat"){    importScript('MediaWiki:Chat.js');    importScript('User:'+wgUserName+'/chat.js');    importStylesheet('MediaWiki:Chat.css');    importStylesheet('User:'+wgUserName+'/chat.css');}   Oh yeah, also this in Chat.css    /* Replace chatmod star with Italy (also make chatmod stars actually work) */ /*Remove existing mod star*/.User.chat-mod .username:after{    background-image:none;} /*Add new mod stars*/.User.chat-mod .username.modday:after {    content: url("http://www.google.com/imgres?imgurl=http://upload.wikimedia.org/wikipedia/en/0/03/Flag_of_Italy.svg&imgrefurl=http://en.wikipedia.org/wiki/Italy&h=183&w=275&sz=1&tbnid=iJUkypRzcKdJiM:&tbnh=151&tbnw=227&zoom=1&usg=__f02C3UY60uulxQ6Jzy72rXwKPsM=&docid=acD86tVkV9MWnM&itg=1&sa=X&ei=PtrjUumtOOqgsQTp6oDIAw&ved=0CL8BEPwdMBI");} .User.chat-mod .username.modnight:after {    content: url("http://www.foodsubs.com/Photos/bratwurst.jpg");} .User.chat-mod.staff .username:after {    content:url('http://www.google.com/imgres?imgurl=http://upload.wikimedia.org/wikipedia/en/0/03/Flag_of_Italy.svg&imgrefurl=http://en.wikipedia.org/wiki/Italy&h=183&w=275&sz=1&tbnid=iJUkypRzcKdJiM:&tbnh=151&tbnw=227&zoom=1&usg=__f02C3UY60uulxQ6Jzy72rXwKPsM=&docid=acD86tVkV9MWnM&itg=1&sa=X&ei=PtrjUumtOOqgsQTp6oDIAw&ved=0CL8BEPwdMBI'); } .User .username.bot:after {    content: url("http://www.google.com/imgres?imgurl=http://upload.wikimedia.org/wikipedia/en/0/03/Flag_of_Italy.svg&imgrefurl=http://en.wikipedia.org/wiki/Italy&h=183&w=275&sz=1&tbnid=iJUkypRzcKdJiM:&tbnh=151&tbnw=227&zoom=1&usg=__f02C3UY60uulxQ6Jzy72rXwKPsM=&docid=acD86tVkV9MWnM&itg=1&sa=X&ei=PtrjUumtOOqgsQTp6oDIAw&ved=0CL8BEPwdMBI");}  /* Fixing avatar size bug */ .Chat .avatar {    height: 28px;    width: 28px;}  /* Improving spacing for avatar fix */ .Chat li {    padding: 18px 15px 20px 49px;} .Chat {    line-height: 1.2em;}  /* Night-themed chat */ .chattopic {    text-align:center;    position:absolute;    width:100%;    z-index:0;    font-size:14px;    color:#3A3A3A;    line-height: 145%;} .day-night-div {margin: 10px auto;text-align: center; cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-khtml-user-select: none;user-select: none;} .Rail .public .chevron {    top: 47px;} .Rail .public .chevron.closed {    top: 44px;} .Rail .public span.splotch {    top: 43px;} .PrivateChatList .splotch{    top:10px;}   But they don't work. What do I do? is my Javascript blocked/old/or new update?  