User:Prince(ss) Platinum/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

//Extra Commands $('[name="message"]').keypress(function (e) {   if (e.which == 32 || e.which == 13) {        switch (this.value) {        case '/coppa':            this.value = 'http://coppa.org - You must be 13 or older to legally have an account on Wikia.';            break;        case '/blocks':            this.value = wgSiteName + ' chat is not the place to discuss blocks/bans on this or another wiki. If you have a problem then it is best to contact Wikia staff: Special:Contact/general or Special:Contact/blocked';            break;        case '/spam':            this.value = 'If your wiki is being spammed or vandalized you need to contact the VSTF immediately';            break;        case '/change':            this.value = 'If you would like to request that your account be renamed please see Special:Contact/rename-account';            break;        case '/greet':            this.value = 'Hello and welcome to ' + wgSiteName + ' chat!'; break; }   } });

//Toolbar links $('.toolbar').find('ul').append('AbuseFilterAbuseLogChat');

//Auto Userpage var qtEnableUserPageOverwrite = true;

//Recent Changes Module //Author: Princess Platinum

var rcModule = ' ' + 'Recent Changes' + ' ' + '     </li> </li> </li> </li> </li> </li> </li></ul> ' + ' '; $('#WikiaRail').prepend(rcModule);

updateRC setInterval(function {updateRC}, 30000);

function updateRC { "use strict"; $.getJSON(wgServer + '/api.php?action=query&list=recentchanges&rclimit=10&rctype=edit&format=json', function(data) {       var rc = data.query.recentchanges;        $('#ch1').html('<a href="/wiki/' + rc[0].title + '">' + rc[0].title + '</a>');        $('#ch2').html('<a href="/wiki/' + rc[1].title + '">' + rc[1].title + '</a>');        $('#ch3').html('<a href="/wiki/' + rc[2].title + '">' + rc[2].title + '</a>');        $('#ch4').html('<a href="/wiki/' + rc[3].title + '">' + rc[3].title + '</a>');        $('#ch5').html('<a href="/wiki/' + rc[4].title + '">' + rc[4].title + '</a>');        $('#ch6').html('<a href="/wiki/' + rc[5].title + '">' + rc[5].title + '</a>');        $('#ch7').html('<a href="/wiki/' + rc[6].title + '">' + rc[6].title + '</a>');        $('#ch8').html('<a href="/wiki/' + rc[7].title + '">' + rc[7].title + '</a>');        $('#ch9').html('<a href="/wiki/' + rc[8].title + '">' + rc[8].title + '</a>'); $('#ch10').html('<a href="/wiki/' + rc[9].title + '">' + rc[9].title + '</a>'); }); } //AjaxRC variables var ajaxPages = ["Special:RecentChanges", "Special:Watchlist", "Special:Log", "Special:Contributions", "Special:WikiActivity"]; var ajaxRefresh = 15000;

//AOUI window.AdvancedOasisUI = { accountNavFollowedPages: false, accountNavWatchlist: false, categoryRedlink: true, RCHeader: true, lightbox: true, randomPageLimitedTo: '', activity2RC: false, userLang: true, };

//Sine Sine = { sine: 'Princess Platinum (Talk) or (Message Wall)' };

//Articles import importArticles({   type: "script",    articles: [        "w:c:dev:RevealAnonIP/code.js",        "w:c:dev:AjaxRC/code.js",        "w:c:dev:AjaxUndo/code.js",        "w:c:dev:MarkForDeletion/code.js",        "w:c:dev:AdvancedOasisUI/code.js",        "w:c:dev:Sine/code.js",        "w:c:dev:QuickCreateUserPage/code.js",        "w:c:c:User:Princess_Platinum/commands.js",    ] });