User:DoCheonGong/common.js

window.MessageWallUserTags = { tagColor: '#000000', txtSize: '14px', glow: true, glowSize: '14px', glowColor: '#FFFFFF', users: { 'Lefty8899': 'Founder • Bureaucrat', 'Cinnabar_The_Evil_Gem_Chemist_55555555555555555550' : 'Founder • Bureaucrat', '3primetime3': 'Bureaucrat', 'DoCheonGong': 'Bureaucrat', 'Roseturnip': 'Bureaucrat', 'Wildoneshelper': 'Bureaucrat', '--MULLIGANACEOUS--': 'Administrator', '3litecandycrusher': 'Administrator', 'Blackbird625': 'Administrator', 'Bp101697': 'Administrator', 'Catinthedark': 'Administrator', 'CC-8589934592': 'Administrator', 'Cheekian': 'Administrator', 'Cjay1997': 'Administrator', 'HM100': 'Administrator', 'Johnny.crush': 'Administrator', 'Marisa1980': 'Administrator', 'Mossy_Mos': 'Administrator', 'Not_real_name': 'Administrator', 'Storm2': 'Administrator', 'Carlsaga07': 'Content moderator • Discussions moderator', 'Courtemanche437': 'Content moderator • Discussions moderator', 'Erefix': 'Content moderator • Discussions moderator', 'Iceice33': 'Content moderator', 'Olaf-Tiffi-Odus2711': 'Content moderator • Discussions moderator', 'Overloadxyz': 'Content moderator', 'Thegreattttt': 'Content moderator', 'AWikiBoy521': 'Discussions moderator', 'Bookworm200': 'Discussions moderator', 'Emmaelise401': 'Discussions moderator • Rollback', 'Gigibaby88': 'Discussions moderator', 'LucasH181': 'Discussions moderator • Rollback', 'MazMac1': 'Discussions moderator', 'Asew54321': 'Chat moderator • Rollback', 'Felix_Vašečka': 'Chat moderator', 'Megaphantaze': 'Chat moderator', 'DoccocaubaiCAN': 'Rollback', 'Edwin91476': 'Rollback', 'Jacob5664': 'Rollback', 'NewMarioFan65': 'Rollback', 'SuperSprinter156': 'Rollback', 'AIDCG': 'Bot', 'Imamadbot': 'Bot', 'Motorola_G2': 'Bot', 'Wildonesbot': 'Bot' } };

// HM100's chat.js request

//Switch to night button var night_button = 'Candy Crush Saga Fanon Colors'; //Switch to day button var day_button = 'Default Colors'; var chatTopic = 'Go to Candy Crush Saga Fanon Wiki Chat.'; // //Color scheme for DAY Chat // //Link color var linkColorDay = '#6f027c'; //All text Color var textColorDay = '#3a3a3a'; //Self text background color var selfTextColorDay = '#f7f7f7'; //Chat background color var backgroundColorDay = '#ffffff'; //Chat foreground color var foregroundColorDay = '#e995ca'; //User stats foreground color var userStatsColorDay = 'Silver'; //END DAY Chat color scheme // //Color scheme for NIGHT Chat // //Link color var linkColorNight = '#337800'; //All text Color var textColorNight = '#3a3a3a'; //Self text background color var selfTextColorNight = '#deebca'; //Chat background color var backgroundColorNight = '#361255'; //Chat foreground color var foregroundColorNight = '#c3d167'; //User stats foreground color var userStatsColorNight = 'Silver'; //END NIGHT Chat color scheme $(function {    $('#ChatHeader .public.wordmark').prepend(' ' + chatTopic + ' ')        .find('a').attr('style', 'position:relative;text-decoration:underline;'); }); $('#ChatHeader .public.wordmark div:not(:first-child)').remove; //CCS and night color schemes //Written by Foodbandlt function addDayStyle { var styleElementDay = document.createElement('style'); styleElementDay.setAttribute("id", "day"); styleElementDay.innerHTML = 'body{background: ' + backgroundColorDay + ';}.username, .message, div.chattopic, .info .edits, .UserStatsMenu .info .since, #ChatHeader h1.private, .Write [name="message"]{color: ' + textColorDay + ';}.WikiaPage, .UserStatsMenu, .ChatHeader, .Write [name="message"]{background: ' + foregroundColorDay + ';}.Chat .you{background: ' + selfTextColorDay + ';}a{color: ' + linkColorDay + ';}.UserStatsMenu .info{background:' + userStatsColorDay + ';}'; $('head').append(styleElementDay); } function addNightStyle { var styleElement = document.createElement('style'); styleElement.setAttribute("id", "night"); styleElement.innerHTML = 'body{background: ' + backgroundColor + ';}.username, .message, div.chattopic, .info .edits, .UserStatsMenu .info .since, #ChatHeader h1.private, .Write [name="message"]{color: ' + textColor + ';}.WikiaPage, .UserStatsMenu, .ChatHeader, .Write [name="message"]{background: ' + foregroundColor + ';}.Chat .you{background: ' + selfTextColor + ';}a{color: ' + linkColor + ';}.UserStatsMenu .info{background:' + userStatsColor + ';}'; $('head').append(styleElement); } function addDayNightButton { if ($('.day-night-div').size === 0) { $('' + night_button + ' ').prependTo('.Rail'); }   if ($('style#night').size === 0 && $('style#nightUser').size === 0) { 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-div').size === 0) { addDayNightButton; }

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MessageWallUserTags/code.js',        'u:kocka:MediaWiki:Emoticons/code.js'    ] });