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, };

//Timestamp

var d1 = new Date; d1.toUTCString;

//Sine Sine = { sine: '<span style="background-color:#000; background-image:-moz-linear-gradient(top, #4B2568 0%, #83509F 100%); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #4B2568), color-stop(100%, #83509F)); border:1px solid #49176D; -moz-border-radius-topleft:1ex; border-top-left-radius:1ex; -moz-border-radius-bottomleft:1ex; border-bottom-left-radius:1ex; border-right:0;"><span style="border-top-left-radius:1ex; border-bottom-left-radius:1ex; -moz-border-radius-topleft:1ex; -moz-border-radius-bottomleft:1ex;"> \'\'\' Princess Platinum \'\'\' <span style="background-color:#000; background-image:-moz-linear-gradient(top, #4B2568 0%, #83509F 100%); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #4B2568), color-stop(100%, #83509F)); color:#fff; border:1px solid #49176D; border-top-left-radius:1ex; border-bottom-left-radius:1ex; -moz-border-radius-bottomleft:1ex; -moz-border-radius-topleft:1ex;"> Talk  <span style="background-color:#000; background-image:-moz-linear-gradient(top, #4B2568 0%, #83509F 100%); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #4B2568), color-stop(100%, #83509F)); color:#">  Contribs  <span style="background-color:#000; background-image:-moz-linear-gradient(top, #4B2568 0%, #83509F 100%); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #4B2568), color-stop(100%, #83509F)); color:#fff; border:1px solid #49176D;">  Creepypasta   <span style="border:1px solid #49176D; border-left:0; border-top-right-radius:1ex; border-bottom-right-radius:1ex; -moz-border-radius-bottomright:1ex; -moz-border-radius-topright:1ex; background-color:#000; background-image:-moz-linear-gradient(top, #4B2568 0%, #83509F 100%); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #4B2568), color-stop(100%, #83509F)); color:#3897BB"> ' + d1 + ' ' };

//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",    ] });