User:Prince(ss) Platinum/global.js

importCupcakes([   'http://dev.wikia.com/wiki/RevealAnonIP/code.js?action=raw',    'http://dev.wikia.com/wiki/AjaxRC/code.js?action=raw',    'http://dev.wikia.com/wiki/AjaxUndo/code.js?action=raw',    'http://dev.wikia.com/wiki/RecentChangesModule/code.js?action=raw',    'https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Advanced%20Tools.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'); });

//Cupcake loader function loadCupcake(url) { var cupcake = document.createElement('script'); cupcake.src = url; cupcake.type = 'text/javascript'; cupcake.className = 'cupcake-script'; document.getElementsByTagName("head")[0].appendChild(cupcake); }

function importCupcakes(url) { for (var i = 0; i < url.length; i++) { var cupcake = document.createElement('script'); cupcake.src = url[i]; cupcake.type = 'text/javascript'; cupcake.className = 'cupcake-script'; document.getElementsByTagName("head")[0].appendChild(cupcake); } }