User:Prince(ss) Platinum/global.js

//Importing Global.js from GitHub importScriptURI('https://raw.github.com/PrincessPlatinum/Personal/master/Global.js');

//Import recent changes module //importScriptURI('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/RecentChanges.js');

//Import AjaxTemp. importScriptURI('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Template.js');

//Import AjaxUnsigned importScriptURI('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Unsigned.js');

//Edit count tab $(function {   var loc = window.location.href;    var username = (wgTitle == "Contributions") ? loc.substring(loc.lastIndexOf("/")+1) : wgTitle;    $('.tabs-container > ul.tabs').append('Editcount'); });

//RC module RecentChangesModule = { refresh: 10000, };

(function (window, $, mw) {   'use strict';	window.RecentChangesModule = function (my) {        if ('undefined' === my.refresh) { my.refresh   = 30000; }        if ('undefined' === my.bot) { my.bot = false; }		if ('undefined' === my.minor) { my.minor = false; }	};

if (my.bot === false) { var bot = '!bot'; } else { var bot = 'bot'; }

if (my.minor === false) { var minor = '!minor'; } else { var minor = 'minor'; }

function updateRC { $.getJSON(mw.config.get('wgServer') + '/api.php?action=query&list=recentchanges&rclimit=10&rctype=edit&rcprop=user|timestamp|title|ids|' + encodeURIComponent(bot) + '|' + encodeURIComponent(bot) + '&format=json', function (data) {           var rc = data.query.recentchanges;            $('#rc-list li').each(function (i) { $(this).html('Page: ' + rc[i].title + ' (Diff) User: ' + rc[i].user + ''); });       });    }    $(function  {        var rcModule = ' Recent Changes       </li> </li> </li> </li> </li></ul> ';        $('#WikiaRail').prepend(rcModule);        updateRC;        window.setInterval(function  { updateRC; }, my.refresh);   }); }(this, this.jQuery, this.mediaWiki));